1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
30 #include <tools/shl.hxx>
32 #include <globals.hxx>
33 #include <database.hxx>
37 if( !(*(IdlDll
**)GetAppData(SHL_IDL
)) )
39 (*(IdlDll
**)GetAppData(SHL_IDL
)) = new IdlDll();
41 return (*(IdlDll
**)GetAppData(SHL_IDL
));
47 , pGlobalNames( NULL
)
50 pClassMgr
= new SvClassManager();
52 pClassMgr
->SV_CLASS_REGISTER( SvMetaAttribute
);
53 pClassMgr
->SV_CLASS_REGISTER( SvMetaClass
);
55 pClassMgr
->SV_CLASS_REGISTER( SvMetaSlot
);
57 pClassMgr
->SV_CLASS_REGISTER( SvMetaModule
);
59 pClassMgr
->SV_CLASS_REGISTER( SvMetaObject
);
60 pClassMgr
->SV_CLASS_REGISTER( SvMetaName
);
61 pClassMgr
->SV_CLASS_REGISTER( SvMetaExtern
);
62 pClassMgr
->SV_CLASS_REGISTER( SvMetaReference
);
64 pClassMgr
->SV_CLASS_REGISTER( SvMetaType
);
65 pClassMgr
->SV_CLASS_REGISTER( SvMetaTypeString
);
66 pClassMgr
->SV_CLASS_REGISTER( SvMetaEnumValue
);
67 pClassMgr
->SV_CLASS_REGISTER( SvMetaTypeEnum
);
68 pClassMgr
->SV_CLASS_REGISTER( SvMetaTypevoid
);
69 pClassMgr
->SV_CLASS_REGISTER( SvClassElement
);
79 inline SvStringHashEntry
* INS( const rtl::OString
& rName
)
82 IDLAPP
->pHashTable
->Insert( rName
, &nIdx
);
83 return (SvStringHashEntry
* )IDLAPP
->pHashTable
->Get( nIdx
);
85 #define A_ENTRY( Name ) , MM_##Name( INS( #Name ) )
87 SvGlobalHashNames::SvGlobalHashNames()
88 : MM_Name( INS( "Name" ) )
89 , MM_module( INS( "module" ) )
90 , MM_interface( INS( "interface" ) )
91 , MM_in( INS( "in" ) )
92 , MM_out( INS( "out" ) )
93 , MM_inout( INS( "inout" ) )
94 , MM_String( INS( "String" ) )
95 , MM_UCHAR( INS( "UCHAR" ) )
96 , MM_USHORT( INS( "USHORT" ) )
97 , MM_uuid( INS( "uuid" ) )
98 , MM_HelpContext( INS( "HelpContext" ) )
99 , MM_HelpText( INS( "HelpText" ) )
100 , MM_void( INS( "void" ) )
101 , MM_shell( INS( "shell" ) )
102 , MM_Get( INS( "Get" ) )
103 , MM_Set( INS( "Set" ) )
104 , MM_SlotId( INS( "SlotId" ) )
105 , MM_HasCoreId( INS( "HasCoreId" ) )
106 , MM_Cachable( INS( "Cachable" ) )
107 , MM_Toggle( INS( "Toggle" ) )
108 , MM_AutoUpdate( INS( "AutoUpdate" ) )
109 , MM_Synchron( INS( "Synchron" ) )
110 , MM_Asynchron( INS( "Asynchron" ) )
111 A_ENTRY(RecordPerSet
)
112 A_ENTRY(RecordPerItem
)
113 A_ENTRY(RecordManual
)
115 A_ENTRY(RecordAbsolute
)
147 A_ENTRY(PseudoPrefix
)
150 A_ENTRY(ToolBoxConfig
)
151 A_ENTRY(StatusBarConfig
)
157 A_ENTRY(ImageRotation
)
158 A_ENTRY(ImageReflection
)
159 A_ENTRY(IsCollection
)
167 A_ENTRY(ModulePrefix
)
168 A_ENTRY(DisableFlags
)
174 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */