merge the formfield patch from ooo-build
[ooovba.git] / idl / inc / globals.hxx
blobca0d879286e7e65d77e61d9f71b57afd190f2172
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: globals.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
31 #ifndef _GLOBALS_HXX
32 #define _GLOBALS_HXX
34 #ifdef IDL_COMPILER
35 #include <hash.hxx>
37 #ifdef ICC
38 #undef _Export
39 #endif
41 class SvIdlWorkingBase;
42 class SvClassManager;
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;
131 SvGlobalHashNames();
134 class IdlDll
136 public:
137 SvStringHashTable * pHashTable;
138 SvClassManager * pClassMgr;
139 SvGlobalHashNames * pGlobalNames;
141 IdlDll();
142 ~IdlDll();
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 ) }
156 HASH_INLINE(Name)
157 HASH_INLINE(module)
158 HASH_INLINE(interface)
159 HASH_INLINE(in)
160 HASH_INLINE(out)
161 HASH_INLINE(inout)
162 HASH_INLINE(String)
163 HASH_INLINE(UCHAR)
164 HASH_INLINE(USHORT)
165 HASH_INLINE(uuid)
166 HASH_INLINE(HelpContext)
167 HASH_INLINE(HelpText)
168 HASH_INLINE(void)
169 HASH_INLINE(shell)
170 HASH_INLINE(Get)
171 HASH_INLINE(Set)
172 HASH_INLINE(SlotId)
173 HASH_INLINE(HasCoreId)
174 HASH_INLINE(Cachable)
175 HASH_INLINE(Volatile)
176 HASH_INLINE(Toggle)
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)
185 HASH_INLINE(enum)
186 HASH_INLINE(UINT16)
187 HASH_INLINE(INT16)
188 HASH_INLINE(UINT32)
189 HASH_INLINE(INT32)
190 HASH_INLINE(int)
191 HASH_INLINE(BOOL)
192 HASH_INLINE(char)
193 HASH_INLINE(BYTE)
194 HASH_INLINE(item)
195 HASH_INLINE(PseudoSlots)
196 HASH_INLINE(map)
197 HASH_INLINE(Default)
198 HASH_INLINE(HelpFile)
199 HASH_INLINE(Version)
200 HASH_INLINE(import)
201 HASH_INLINE(SlotIdFile)
202 HASH_INLINE(SvName)
203 HASH_INLINE(SbxName)
204 HASH_INLINE(ItemName)
205 HASH_INLINE(OdlName)
206 HASH_INLINE(include)
207 HASH_INLINE(ExecMethod)
208 HASH_INLINE(StateMethod)
209 HASH_INLINE(GroupId)
210 HASH_INLINE(float)
211 HASH_INLINE(double)
212 HASH_INLINE(HasDialog)
213 HASH_INLINE(TypeLibFile)
214 HASH_INLINE(Export)
215 HASH_INLINE(Automation)
216 HASH_INLINE(PseudoPrefix)
217 HASH_INLINE(define)
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)
231 HASH_INLINE(union)
232 HASH_INLINE(struct)
233 HASH_INLINE(typedef)
234 HASH_INLINE(Readonly)
235 HASH_INLINE(SlotType)
236 HASH_INLINE(ModulePrefix)
237 HASH_INLINE(DisableFlags)
238 HASH_INLINE(Hidden)
239 HASH_INLINE(Description)
240 HASH_INLINE(UnoName)
243 #endif // IDL_COMPILER
244 #endif // _GLOBALS_HXX