LCOV - code coverage report
Current view: top level - idl/inc - module.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 5 0.0 %
Date: 2014-04-14 Functions: 0 8 0.0 %
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 _MODULE_HXX
      21             : #define _MODULE_HXX
      22             : 
      23             : #include <slot.hxx>
      24             : #include <object.hxx>
      25             : 
      26             : struct SvNamePos
      27             : {
      28             :     SvGlobalName    aUUId;
      29             :     sal_uInt32          nStmPos;
      30             :     SvNamePos( const SvGlobalName & rName, sal_uInt32 nPos )
      31             :         : aUUId( rName )
      32             :         , nStmPos( nPos ) {}
      33             : };
      34             : 
      35           0 : class SvMetaModule : public SvMetaExtern
      36             : {
      37             :     SvMetaClassMemberList       aClassList;
      38             :     SvMetaTypeMemberList        aTypeList;
      39             :     SvMetaAttributeMemberList   aAttrList;
      40             : // browser
      41             :     OUString                aIdlFileName;
      42             :     SvString                aHelpFileName;
      43             :     SvString                aSlotIdFile;
      44             :     SvString                aTypeLibFile;
      45             :     SvString                aModulePrefix;
      46             : 
      47             :     sal_Bool                    bImported   : 1,
      48             :                             bIsModified : 1;
      49             :     SvGlobalName            aBeginName;
      50             :     SvGlobalName            aEndName;
      51             :     SvGlobalName            aNextName;
      52             : protected:
      53             :     virtual void        ReadAttributesSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) SAL_OVERRIDE;
      54             :     virtual void        WriteAttributesSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm, sal_uInt16 nTab ) SAL_OVERRIDE;
      55             :     virtual void        ReadContextSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) SAL_OVERRIDE;
      56             :     virtual void        WriteContextSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm, sal_uInt16 nTab ) SAL_OVERRIDE;
      57             : public:
      58           0 :                         SV_DECL_META_FACTORY1( SvMetaModule, SvMetaExtern, 13 )
      59             :                         SvMetaModule();
      60             : 
      61             :     const OUString &    GetIdlFileName() const { return aIdlFileName; }
      62             :     const OString& GetModulePrefix() const { return aModulePrefix.getString(); }
      63             : 
      64             :     virtual sal_Bool    SetName( const OString& rName, SvIdlDataBase * = NULL  ) SAL_OVERRIDE;
      65             : 
      66             :     const OString& GetHelpFileName() const { return aHelpFileName.getString(); }
      67             :     const OString& GetTypeLibFileName() const { return aTypeLibFile.getString(); }
      68             : 
      69             :     const SvMetaAttributeMemberList & GetAttrList() const { return aAttrList; }
      70             :     const SvMetaTypeMemberList & GetTypeList() const { return aTypeList; }
      71           0 :     const SvMetaClassMemberList & GetClassList() const { return aClassList; }
      72             : 
      73             :                         SvMetaModule( const OUString & rIdlFileName,
      74             :                                       sal_Bool bImported );
      75             : 
      76             :     sal_Bool                FillNextName( SvGlobalName * );
      77           0 :     sal_Bool                IsImported() const { return bImported; }
      78             :     sal_Bool                IsModified() const { return bIsModified; }
      79             : 
      80             :     virtual sal_Bool        ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) SAL_OVERRIDE;
      81             :     virtual void        WriteSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm, sal_uInt16 nTab ) SAL_OVERRIDE;
      82             : 
      83             :     virtual void        WriteAttributes( SvIdlDataBase & rBase,
      84             :                                         SvStream & rOutStm, sal_uInt16 nTab,
      85             :                                             WriteType, WriteAttribute = 0 ) SAL_OVERRIDE;
      86             :     virtual void        Write( SvIdlDataBase & rBase, SvStream & rOutStm, sal_uInt16 nTab,
      87             :                                     WriteType, WriteAttribute = 0 ) SAL_OVERRIDE;
      88             :     virtual void        WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm );
      89             :     virtual void        WriteHelpIds( SvIdlDataBase & rBase, SvStream & rOutStm,
      90             :                                     HelpIdTable& rTable );
      91             : };
      92             : typedef tools::SvRef<SvMetaModule> SvMetaModuleRef;
      93             : 
      94           0 : class SvMetaModuleMemberList : public SvDeclPersistList<SvMetaModule *> {};
      95             : 
      96             : 
      97             : #endif // _MODULE_HXX
      98             : 
      99             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10