build fix
[LibreOffice.git] / idl / inc / globals.hxx
blobad8aee0c2e450eda17c4cc4e01ef03e0929c2580
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_IDL_INC_GLOBALS_HXX
21 #define INCLUDED_IDL_INC_GLOBALS_HXX
23 #include <hash.hxx>
25 typedef tools::SvRef<SvStringHashEntry> SvStringHashEntryRef;
27 class SvClassManager;
28 struct SvGlobalHashNames
30 SvStringHashEntryRef MM_module;
31 SvStringHashEntryRef MM_interface;
32 SvStringHashEntryRef MM_shell;
33 SvStringHashEntryRef MM_Toggle;
34 SvStringHashEntryRef MM_AutoUpdate;
35 SvStringHashEntryRef MM_Asynchron;
36 SvStringHashEntryRef MM_RecordPerSet;
37 SvStringHashEntryRef MM_RecordPerItem;
38 SvStringHashEntryRef MM_NoRecord;
39 SvStringHashEntryRef MM_RecordAbsolute;
40 SvStringHashEntryRef MM_enum;
41 SvStringHashEntryRef MM_UINT16;
42 SvStringHashEntryRef MM_INT16;
43 SvStringHashEntryRef MM_UINT32;
44 SvStringHashEntryRef MM_INT32;
45 SvStringHashEntryRef MM_BOOL;
46 SvStringHashEntryRef MM_BYTE;
47 SvStringHashEntryRef MM_float;
48 SvStringHashEntryRef MM_double;
49 SvStringHashEntryRef MM_item;
50 SvStringHashEntryRef MM_PseudoSlots;
51 SvStringHashEntryRef MM_import;
52 SvStringHashEntryRef MM_SlotIdFile;
53 SvStringHashEntryRef MM_include;
54 SvStringHashEntryRef MM_ExecMethod;
55 SvStringHashEntryRef MM_StateMethod;
56 SvStringHashEntryRef MM_GroupId;
57 SvStringHashEntryRef MM_Export;
58 SvStringHashEntryRef MM_PseudoPrefix;
59 SvStringHashEntryRef MM_define;
60 SvStringHashEntryRef MM_MenuConfig;
61 SvStringHashEntryRef MM_ToolBoxConfig;
62 SvStringHashEntryRef MM_AccelConfig;
63 SvStringHashEntryRef MM_FastCall;
64 SvStringHashEntryRef MM_SbxObject;
65 SvStringHashEntryRef MM_Container;
66 SvStringHashEntryRef MM_ReadOnlyDoc;
67 SvStringHashEntryRef MM_struct;
68 SvStringHashEntryRef MM_SlotType;
69 SvStringHashEntryRef MM_DisableFlags;
71 SvGlobalHashNames();
74 class IdlDll
76 public:
77 SvStringHashTable * pHashTable;
78 SvGlobalHashNames * pGlobalNames;
80 IdlDll();
81 ~IdlDll();
84 IdlDll & GetIdlApp();
86 #define HASH_INLINE( Name ) \
87 inline SvStringHashEntry * SvHash_##Name() \
88 { \
89 if( !GetIdlApp().pGlobalNames ) \
90 GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \
91 return GetIdlApp().pGlobalNames->MM_##Name.get(); \
94 HASH_INLINE(module)
95 HASH_INLINE(interface)
96 HASH_INLINE(shell)
97 HASH_INLINE(Toggle)
98 HASH_INLINE(AutoUpdate)
99 HASH_INLINE(Asynchron)
100 HASH_INLINE(RecordPerItem)
101 HASH_INLINE(RecordPerSet)
102 HASH_INLINE(NoRecord)
103 HASH_INLINE(RecordAbsolute)
104 HASH_INLINE(enum)
105 HASH_INLINE(UINT16)
106 HASH_INLINE(INT16)
107 HASH_INLINE(UINT32)
108 HASH_INLINE(INT32)
109 HASH_INLINE(BOOL)
110 HASH_INLINE(BYTE)
111 HASH_INLINE(item)
112 HASH_INLINE(PseudoSlots)
113 HASH_INLINE(import)
114 HASH_INLINE(SlotIdFile)
115 HASH_INLINE(include)
116 HASH_INLINE(ExecMethod)
117 HASH_INLINE(StateMethod)
118 HASH_INLINE(GroupId)
119 HASH_INLINE(float)
120 HASH_INLINE(double)
121 HASH_INLINE(Export)
122 HASH_INLINE(PseudoPrefix)
123 HASH_INLINE(define)
124 HASH_INLINE(MenuConfig)
125 HASH_INLINE(ToolBoxConfig)
126 HASH_INLINE(AccelConfig)
127 HASH_INLINE(FastCall)
128 HASH_INLINE(SbxObject)
129 HASH_INLINE(Container)
130 HASH_INLINE(ReadOnlyDoc)
131 HASH_INLINE(struct)
132 HASH_INLINE(SlotType)
133 HASH_INLINE(DisableFlags)
136 #endif // INCLUDED_IDL_INC_GLOBALS_HXX
138 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */