1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
25 typedef tools::SvRef
<SvStringHashEntry
> SvStringHashEntryRef
;
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
;
77 SvStringHashTable
* pHashTable
;
78 SvGlobalHashNames
* pGlobalNames
;
86 #define HASH_INLINE( Name ) \
87 inline SvStringHashEntry * SvHash_##Name() \
89 if( !GetIdlApp().pGlobalNames ) \
90 GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \
91 return GetIdlApp().pGlobalNames->MM_##Name.get(); \
95 HASH_INLINE(interface
)
98 HASH_INLINE(AutoUpdate
)
99 HASH_INLINE(Asynchron
)
100 HASH_INLINE(RecordPerItem
)
101 HASH_INLINE(RecordPerSet
)
102 HASH_INLINE(NoRecord
)
103 HASH_INLINE(RecordAbsolute
)
112 HASH_INLINE(PseudoSlots
)
114 HASH_INLINE(SlotIdFile
)
116 HASH_INLINE(ExecMethod
)
117 HASH_INLINE(StateMethod
)
122 HASH_INLINE(PseudoPrefix
)
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
)
132 HASH_INLINE(SlotType
)
133 HASH_INLINE(DisableFlags
)
136 #endif // INCLUDED_IDL_INC_GLOBALS_HXX
138 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */