1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
38 SvNamePos( const SvGlobalName
& rName
, sal_uInt32 nPos
)
42 DECLARE_LIST( SvNamePosList
, SvNamePos
*)
44 /******************** class SvMetaModule *********************************/
45 class SvMetaModule
: public SvMetaExtern
47 SvMetaClassMemberList aClassList
;
48 SvMetaTypeMemberList aTypeList
;
49 SvMetaAttributeMemberList aAttrList
;
52 SvString aHelpFileName
;
54 SvString aTypeLibFile
;
55 SvString aModulePrefix
;
58 sal_Bool bImported
: 1,
60 SvGlobalName aBeginName
;
61 SvGlobalName aEndName
;
62 SvGlobalName aNextName
;
64 virtual void ReadAttributesSvIdl( SvIdlDataBase
&, SvTokenStream
& rInStm
);
65 virtual void WriteAttributesSvIdl( SvIdlDataBase
& rBase
, SvStream
& rOutStm
, sal_uInt16 nTab
);
66 virtual void ReadContextSvIdl( SvIdlDataBase
&, SvTokenStream
& rInStm
);
67 virtual void WriteContextSvIdl( SvIdlDataBase
& rBase
, SvStream
& rOutStm
, sal_uInt16 nTab
);
70 SV_DECL_META_FACTORY1( SvMetaModule
, SvMetaExtern
, 13 )
73 const String
& GetIdlFileName() const { return aIdlFileName
; }
74 const ByteString
& GetModulePrefix() const { return aModulePrefix
; }
76 virtual sal_Bool
SetName( const ByteString
& rName
, SvIdlDataBase
* = NULL
);
78 const ByteString
& GetHelpFileName() const { return aHelpFileName
; }
79 const ByteString
& GetTypeLibFileName() const { return aTypeLibFile
; }
81 const SvMetaAttributeMemberList
& GetAttrList() const { return aAttrList
; }
82 const SvMetaTypeMemberList
& GetTypeList() const { return aTypeList
; }
83 const SvMetaClassMemberList
& GetClassList() const { return aClassList
; }
86 SvMetaModule( const String
& rIdlFileName
,
89 sal_Bool
FillNextName( SvGlobalName
* );
90 sal_Bool
IsImported() const { return bImported
; }
91 sal_Bool
IsModified() const { return bIsModified
; }
93 virtual sal_Bool
ReadSvIdl( SvIdlDataBase
&, SvTokenStream
& rInStm
);
94 virtual void WriteSvIdl( SvIdlDataBase
& rBase
, SvStream
& rOutStm
, sal_uInt16 nTab
);
96 virtual void WriteAttributes( SvIdlDataBase
& rBase
,
97 SvStream
& rOutStm
, sal_uInt16 nTab
,
98 WriteType
, WriteAttribute
= 0 );
99 // virtual void WriteSbx( SvIdlDataBase & rBase, SvStream & rOutStm, SvNamePosList & rList );
100 virtual void Write( SvIdlDataBase
& rBase
, SvStream
& rOutStm
, sal_uInt16 nTab
,
101 WriteType
, WriteAttribute
= 0 );
102 virtual void WriteSfx( SvIdlDataBase
& rBase
, SvStream
& rOutStm
);
103 virtual void WriteHelpIds( SvIdlDataBase
& rBase
, SvStream
& rOutStm
,
105 virtual void WriteSrc( SvIdlDataBase
& rBase
, SvStream
& rOutStm
,
108 virtual void WriteCxx( SvIdlDataBase
& rBase
, SvStream
& rOutStm
, sal_uInt16 nTab
);
109 virtual void WriteHxx( SvIdlDataBase
& rBase
, SvStream
& rOutStm
, sal_uInt16 nTab
);
112 SV_DECL_IMPL_REF(SvMetaModule
)
113 SV_DECL_IMPL_PERSIST_LIST(SvMetaModule
,SvMetaModule
*)
116 #endif // _MODULE_HXX