LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/basic - sbmeth.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 11 27.3 %
Date: 2013-07-09 Functions: 7 16 43.8 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef _SB_SBMETH_HXX
      21             : #define _SB_SBMETH_HXX
      22             : 
      23             : #include <tools/errcode.hxx>
      24             : #include <basic/sbxmeth.hxx>
      25             : #include <basic/sbdef.hxx>
      26             : #include "basicdllapi.h"
      27             : 
      28             : class SbModule;
      29             : 
      30             : class BASIC_DLLPUBLIC SbMethod : public SbxMethod
      31             : {
      32             :     friend class SbiRuntime;
      33             :     friend class SbiFactory;
      34             :     friend class SbModule;
      35             :     friend class SbClassModuleObject;
      36             :     friend class SbiCodeGen;
      37             :     friend class SbJScriptMethod;
      38             :     friend class SbIfaceMapperMethod;
      39             : 
      40             :     SbxVariable*  mCaller;                   // caller
      41             :     SbModule*     pMod;
      42             :     sal_uInt16    nDebugFlags;
      43             :     sal_uInt16    nLine1, nLine2;
      44             :     sal_uInt32    nStart;
      45             :     sal_Bool      bInvalid;
      46             :     SbxArrayRef   refStatics;
      47             :     BASIC_DLLPRIVATE SbMethod( const OUString&, SbxDataType, SbModule* );
      48             :     BASIC_DLLPRIVATE SbMethod( const SbMethod& );
      49             :     virtual sal_Bool LoadData( SvStream&, sal_uInt16 );
      50             :     virtual sal_Bool StoreData( SvStream& ) const;
      51             :     virtual ~SbMethod();
      52             : 
      53             : public:
      54           0 :     SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_BASICMETHOD,2);
      55             :     TYPEINFO();
      56             :     virtual SbxInfo* GetInfo();
      57             :     SbxArray*  GetStatics();
      58             :     void       ClearStatics();
      59           2 :     SbModule*  GetModule()                { return pMod;        }
      60             :     sal_uInt32 GetId() const              { return nStart;      }
      61        1444 :     sal_uInt16 GetDebugFlags()            { return nDebugFlags; }
      62           0 :     void       SetDebugFlags( sal_uInt16 n )  { nDebugFlags = n;    }
      63             :     void       GetLineRange( sal_uInt16&, sal_uInt16& );
      64             : 
      65             :     // Interface to execute a method from the applications
      66             :     virtual ErrCode Call( SbxValue* pRet = NULL,  SbxVariable* pCaller = NULL );
      67             :     virtual void    Broadcast( sal_uIntPtr nHintId );
      68             : };
      69             : 
      70        3562 : SV_DECL_IMPL_REF(SbMethod)
      71             : 
      72             : class BASIC_DLLPUBLIC SbIfaceMapperMethod : public SbMethod
      73             : {
      74             :     friend class SbiRuntime;
      75             : 
      76             :     SbMethodRef mxImplMeth;
      77             : 
      78             : public:
      79             :     TYPEINFO();
      80           0 :     SbIfaceMapperMethod( const OUString& rName, SbMethod* pImplMeth )
      81           0 :         : SbMethod( rName, pImplMeth->GetType(), NULL )
      82           0 :         , mxImplMeth( pImplMeth )
      83           0 :     {}
      84             :     virtual ~SbIfaceMapperMethod();
      85           0 :     SbMethod* getImplMethod( void )
      86           0 :         { return mxImplMeth; }
      87             : };
      88             : 
      89             : #endif
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10