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 .
21 #include <tools/shl.hxx>
23 #include <globals.hxx>
24 #include <database.hxx>
28 if( !(*(IdlDll
**)GetAppData(SHL_IDL
)) )
30 (*(IdlDll
**)GetAppData(SHL_IDL
)) = new IdlDll();
32 return (*(IdlDll
**)GetAppData(SHL_IDL
));
38 , pGlobalNames( NULL
)
41 pClassMgr
= new SvClassManager();
43 pClassMgr
->SV_CLASS_REGISTER( SvMetaAttribute
);
44 pClassMgr
->SV_CLASS_REGISTER( SvMetaClass
);
46 pClassMgr
->SV_CLASS_REGISTER( SvMetaSlot
);
48 pClassMgr
->SV_CLASS_REGISTER( SvMetaModule
);
50 pClassMgr
->SV_CLASS_REGISTER( SvMetaObject
);
51 pClassMgr
->SV_CLASS_REGISTER( SvMetaName
);
52 pClassMgr
->SV_CLASS_REGISTER( SvMetaExtern
);
53 pClassMgr
->SV_CLASS_REGISTER( SvMetaReference
);
55 pClassMgr
->SV_CLASS_REGISTER( SvMetaType
);
56 pClassMgr
->SV_CLASS_REGISTER( SvMetaTypeString
);
57 pClassMgr
->SV_CLASS_REGISTER( SvMetaEnumValue
);
58 pClassMgr
->SV_CLASS_REGISTER( SvMetaTypeEnum
);
59 pClassMgr
->SV_CLASS_REGISTER( SvMetaTypevoid
);
60 pClassMgr
->SV_CLASS_REGISTER( SvClassElement
);
70 inline SvStringHashEntry
* INS( const OString
& rName
)
73 IDLAPP
->pHashTable
->Insert( rName
, &nIdx
);
74 return (SvStringHashEntry
* )IDLAPP
->pHashTable
->Get( nIdx
);
76 #define A_ENTRY( Name ) , MM_##Name( INS( #Name ) )
78 SvGlobalHashNames::SvGlobalHashNames()
79 : MM_Name( INS( "Name" ) )
80 , MM_module( INS( "module" ) )
81 , MM_interface( INS( "interface" ) )
82 , MM_in( INS( "in" ) )
83 , MM_out( INS( "out" ) )
84 , MM_inout( INS( "inout" ) )
85 , MM_String( INS( "String" ) )
86 , MM_UCHAR( INS( "UCHAR" ) )
87 , MM_USHORT( INS( "USHORT" ) )
88 , MM_uuid( INS( "uuid" ) )
89 , MM_HelpContext( INS( "HelpContext" ) )
90 , MM_HelpText( INS( "HelpText" ) )
91 , MM_void( INS( "void" ) )
92 , MM_shell( INS( "shell" ) )
93 , MM_Get( INS( "Get" ) )
94 , MM_Set( INS( "Set" ) )
95 , MM_SlotId( INS( "SlotId" ) )
96 , MM_HasCoreId( INS( "HasCoreId" ) )
97 , MM_Cachable( INS( "Cachable" ) )
98 , MM_Toggle( INS( "Toggle" ) )
99 , MM_AutoUpdate( INS( "AutoUpdate" ) )
100 , MM_Synchron( INS( "Synchron" ) )
101 , MM_Asynchron( INS( "Asynchron" ) )
102 A_ENTRY(RecordPerSet
)
103 A_ENTRY(RecordPerItem
)
104 A_ENTRY(RecordManual
)
106 A_ENTRY(RecordAbsolute
)
138 A_ENTRY(PseudoPrefix
)
141 A_ENTRY(ToolBoxConfig
)
142 A_ENTRY(StatusBarConfig
)
148 A_ENTRY(ImageRotation
)
149 A_ENTRY(ImageReflection
)
150 A_ENTRY(IsCollection
)
158 A_ENTRY(ModulePrefix
)
159 A_ENTRY(DisableFlags
)
165 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */