1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: globals.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
41 class SvIdlWorkingBase
;
43 struct SvGlobalHashNames
45 SvStringHashEntryRef MM_Name
;
46 SvStringHashEntryRef MM_module
;
47 SvStringHashEntryRef MM_interface
;
48 SvStringHashEntryRef MM_in
;
49 SvStringHashEntryRef MM_out
;
50 SvStringHashEntryRef MM_inout
;
51 SvStringHashEntryRef MM_String
;
52 SvStringHashEntryRef MM_UCHAR
;
53 SvStringHashEntryRef MM_USHORT
;
54 SvStringHashEntryRef MM_uuid
;
55 SvStringHashEntryRef MM_HelpContext
;
56 SvStringHashEntryRef MM_HelpText
;
57 SvStringHashEntryRef MM_void
;
58 SvStringHashEntryRef MM_shell
;
59 SvStringHashEntryRef MM_Get
;
60 SvStringHashEntryRef MM_Set
;
61 SvStringHashEntryRef MM_SlotId
;
62 SvStringHashEntryRef MM_HasCoreId
;
63 SvStringHashEntryRef MM_Cachable
;
64 SvStringHashEntryRef MM_Volatile
;
65 SvStringHashEntryRef MM_Toggle
;
66 SvStringHashEntryRef MM_AutoUpdate
;
67 SvStringHashEntryRef MM_Synchron
;
68 SvStringHashEntryRef MM_Asynchron
;
69 SvStringHashEntryRef MM_RecordPerSet
;
70 SvStringHashEntryRef MM_RecordPerItem
;
71 SvStringHashEntryRef MM_RecordManual
;
72 SvStringHashEntryRef MM_NoRecord
;
73 SvStringHashEntryRef MM_RecordAbsolute
;
74 SvStringHashEntryRef MM_enum
;
75 SvStringHashEntryRef MM_UINT16
;
76 SvStringHashEntryRef MM_INT16
;
77 SvStringHashEntryRef MM_UINT32
;
78 SvStringHashEntryRef MM_INT32
;
79 SvStringHashEntryRef MM_int
;
80 SvStringHashEntryRef MM_BOOL
;
81 SvStringHashEntryRef MM_char
;
82 SvStringHashEntryRef MM_BYTE
;
83 SvStringHashEntryRef MM_float
;
84 SvStringHashEntryRef MM_double
;
85 SvStringHashEntryRef MM_item
;
86 SvStringHashEntryRef MM_PseudoSlots
;
87 SvStringHashEntryRef MM_map
;
88 SvStringHashEntryRef MM_Default
;
89 SvStringHashEntryRef MM_HelpFile
;
90 SvStringHashEntryRef MM_Version
;
91 SvStringHashEntryRef MM_import
;
92 SvStringHashEntryRef MM_SlotIdFile
;
93 SvStringHashEntryRef MM_SvName
;
94 SvStringHashEntryRef MM_SbxName
;
95 SvStringHashEntryRef MM_ItemName
;
96 SvStringHashEntryRef MM_OdlName
;
97 SvStringHashEntryRef MM_include
;
98 SvStringHashEntryRef MM_ExecMethod
;
99 SvStringHashEntryRef MM_StateMethod
;
100 SvStringHashEntryRef MM_GroupId
;
101 SvStringHashEntryRef MM_HasDialog
;
102 SvStringHashEntryRef MM_TypeLibFile
;
103 SvStringHashEntryRef MM_Export
;
104 SvStringHashEntryRef MM_Automation
;
105 SvStringHashEntryRef MM_PseudoPrefix
;
106 SvStringHashEntryRef MM_define
;
107 SvStringHashEntryRef MM_MenuConfig
;
108 SvStringHashEntryRef MM_ToolBoxConfig
;
109 SvStringHashEntryRef MM_StatusBarConfig
;
110 SvStringHashEntryRef MM_AccelConfig
;
111 SvStringHashEntryRef MM_AllConfig
;
112 SvStringHashEntryRef MM_FastCall
;
113 SvStringHashEntryRef MM_SbxObject
;
114 SvStringHashEntryRef MM_Container
;
115 SvStringHashEntryRef MM_ImageRotation
;
116 SvStringHashEntryRef MM_ImageReflection
;
117 SvStringHashEntryRef MM_IsCollection
;
118 SvStringHashEntryRef MM_ReadOnlyDoc
;
119 SvStringHashEntryRef MM_ConfigName
;
120 SvStringHashEntryRef MM_union
;
121 SvStringHashEntryRef MM_struct
;
122 SvStringHashEntryRef MM_typedef
;
123 SvStringHashEntryRef MM_Readonly
;
124 SvStringHashEntryRef MM_SlotType
;
125 SvStringHashEntryRef MM_ModulePrefix
;
126 SvStringHashEntryRef MM_DisableFlags
;
127 SvStringHashEntryRef MM_Hidden
;
128 SvStringHashEntryRef MM_Description
;
129 SvStringHashEntryRef MM_UnoName
;
137 SvStringHashTable
* pHashTable
;
138 SvClassManager
* pClassMgr
;
139 SvGlobalHashNames
* pGlobalNames
;
145 IdlDll
* GetIdlApp();
146 #define IDLAPP GetIdlApp()
148 #define SV_GLOBAL_HASH_ACCESS( Name ) \
149 if( !IDLAPP->pGlobalNames ) \
150 IDLAPP->pGlobalNames = new SvGlobalHashNames(); \
151 return IDLAPP->pGlobalNames->MM_##Name;
153 #define HASH_INLINE( Name ) \
154 inline SvStringHashEntry * SvHash_##Name() { SV_GLOBAL_HASH_ACCESS( Name ) }
158 HASH_INLINE(interface
)
166 HASH_INLINE(HelpContext
)
167 HASH_INLINE(HelpText
)
173 HASH_INLINE(HasCoreId
)
174 HASH_INLINE(Cachable
)
175 HASH_INLINE(Volatile
)
177 HASH_INLINE(AutoUpdate
)
178 HASH_INLINE(Synchron
)
179 HASH_INLINE(Asynchron
)
180 HASH_INLINE(RecordPerItem
)
181 HASH_INLINE(RecordPerSet
)
182 HASH_INLINE(RecordManual
)
183 HASH_INLINE(NoRecord
)
184 HASH_INLINE(RecordAbsolute
)
195 HASH_INLINE(PseudoSlots
)
198 HASH_INLINE(HelpFile
)
201 HASH_INLINE(SlotIdFile
)
204 HASH_INLINE(ItemName
)
207 HASH_INLINE(ExecMethod
)
208 HASH_INLINE(StateMethod
)
212 HASH_INLINE(HasDialog
)
213 HASH_INLINE(TypeLibFile
)
215 HASH_INLINE(Automation
)
216 HASH_INLINE(PseudoPrefix
)
218 HASH_INLINE(MenuConfig
)
219 HASH_INLINE(ToolBoxConfig
)
220 HASH_INLINE(StatusBarConfig
)
221 HASH_INLINE(AccelConfig
)
222 HASH_INLINE(AllConfig
)
223 HASH_INLINE(FastCall
)
224 HASH_INLINE(SbxObject
)
225 HASH_INLINE(Container
)
226 HASH_INLINE(ImageRotation
)
227 HASH_INLINE(ImageReflection
)
228 HASH_INLINE(IsCollection
)
229 HASH_INLINE(ReadOnlyDoc
)
230 HASH_INLINE(ConfigName
)
234 HASH_INLINE(Readonly
)
235 HASH_INLINE(SlotType
)
236 HASH_INLINE(ModulePrefix
)
237 HASH_INLINE(DisableFlags
)
239 HASH_INLINE(Description
)
243 #endif // IDL_COMPILER
244 #endif // _GLOBALS_HXX