LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/basic - sbmeth.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 11 18.2 %
Date: 2012-08-25 Functions: 6 16 37.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 17 17.6 %

           Branch data     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                 :            : class SbMethodImpl;
      30                 :            : 
      31                 :            : class BASIC_DLLPUBLIC SbMethod : public SbxMethod
      32                 :            : {
      33                 :            :     friend class SbiRuntime;
      34                 :            :     friend class SbiFactory;
      35                 :            :     friend class SbModule;
      36                 :            :     friend class SbClassModuleObject;
      37                 :            :     friend class SbiCodeGen;
      38                 :            :     friend class SbJScriptMethod;
      39                 :            :     friend class SbIfaceMapperMethod;
      40                 :            : 
      41                 :            :     SbMethodImpl* mpSbMethodImpl;           // Impl data
      42                 :            :     SbxVariable* mCaller;                   // caller
      43                 :            :     SbModule* pMod;
      44                 :            :     sal_uInt16    nDebugFlags;
      45                 :            :     sal_uInt16    nLine1, nLine2;
      46                 :            :     sal_uInt32    nStart;
      47                 :            :     sal_Bool      bInvalid;
      48                 :            :     SbxArrayRef refStatics;
      49                 :            :     BASIC_DLLPRIVATE SbMethod( const String&, SbxDataType, SbModule* );
      50                 :            :     BASIC_DLLPRIVATE SbMethod( const SbMethod& );
      51                 :            :     virtual sal_Bool LoadData( SvStream&, sal_uInt16 );
      52                 :            :     virtual sal_Bool StoreData( SvStream& ) const;
      53                 :            :     virtual ~SbMethod();
      54                 :            : 
      55                 :            : public:
      56                 :          0 :     SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_BASICMETHOD,2);
      57                 :            :     TYPEINFO();
      58                 :            :     virtual SbxInfo* GetInfo();
      59                 :            :     SbxArray* GetStatics();
      60                 :            :     void      ClearStatics();
      61                 :          0 :     SbModule* GetModule()                { return pMod;        }
      62                 :            :     sal_uInt32    GetId() const              { return nStart;      }
      63                 :        944 :     sal_uInt16    GetDebugFlags()            { return nDebugFlags; }
      64                 :          0 :     void      SetDebugFlags( sal_uInt16 n )  { nDebugFlags = n;    }
      65                 :            :     void      GetLineRange( sal_uInt16&, sal_uInt16& );
      66                 :            : 
      67                 :            :     // Interface to execute a method from the applications
      68                 :            :     virtual ErrCode Call( SbxValue* pRet = NULL,  SbxVariable* pCaller = NULL );
      69                 :            :     virtual void Broadcast( sal_uIntPtr nHintId );
      70                 :            : };
      71                 :            : 
      72                 :            : #ifndef __SB_SBMETHODREF_HXX
      73                 :            : #define __SB_SBMETHODREF_HXX
      74      [ +  -  # ]:       1978 : SV_DECL_IMPL_REF(SbMethod)
         [ +  - ][ #  # ]
         [ #  # ][ +  - ]
                 [ #  # ]
      75                 :            : #endif
      76                 :            : 
      77                 :            : class BASIC_DLLPUBLIC SbIfaceMapperMethod : public SbMethod
      78                 :            : {
      79                 :            :     friend class SbiRuntime;
      80                 :            : 
      81                 :            :     SbMethodRef mxImplMeth;
      82                 :            : 
      83                 :            : public:
      84                 :            :     TYPEINFO();
      85                 :          0 :     SbIfaceMapperMethod( const String& rName, SbMethod* pImplMeth )
      86                 :          0 :         : SbMethod( rName, pImplMeth->GetType(), NULL )
      87 [ #  # ][ #  # ]:          0 :         , mxImplMeth( pImplMeth )
      88                 :          0 :     {}
      89                 :            :     virtual ~SbIfaceMapperMethod();
      90                 :          0 :     SbMethod* getImplMethod( void )
      91                 :          0 :         { return mxImplMeth; }
      92                 :            : };
      93                 :            : 
      94                 :            : #endif
      95                 :            : 
      96                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10