1*724893d4SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*724893d4SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*724893d4SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*724893d4SAndrew Rist * distributed with this work for additional information 6*724893d4SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*724893d4SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*724893d4SAndrew Rist * "License"); you may not use this file except in compliance 9*724893d4SAndrew Rist * with the License. You may obtain a copy of the License at 10*724893d4SAndrew Rist * 11*724893d4SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*724893d4SAndrew Rist * 13*724893d4SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*724893d4SAndrew Rist * software distributed under the License is distributed on an 15*724893d4SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*724893d4SAndrew Rist * KIND, either express or implied. See the License for the 17*724893d4SAndrew Rist * specific language governing permissions and limitations 18*724893d4SAndrew Rist * under the License. 19*724893d4SAndrew Rist * 20*724893d4SAndrew Rist *************************************************************/ 21*724893d4SAndrew Rist 22*724893d4SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_idl.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir /****************** I N C L U D E S **************************************/ 28cdf0e10cSrcweir #include <tools/shl.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir #include <globals.hxx> 31cdf0e10cSrcweir #include <database.hxx> 32cdf0e10cSrcweir 33cdf0e10cSrcweir /****************** G L O B A L S ****************************************/ 34cdf0e10cSrcweir IdlDll * GetIdlApp() 35cdf0e10cSrcweir { 36cdf0e10cSrcweir if( !(*(IdlDll**)GetAppData(SHL_IDL)) ) 37cdf0e10cSrcweir { 38cdf0e10cSrcweir (*(IdlDll**)GetAppData(SHL_IDL)) = new IdlDll(); 39cdf0e10cSrcweir // Temporaer, sonst nur wenn Compiler 40cdf0e10cSrcweir //GetIdlApp()->pHashTable = new SvStringHashTable( 2801 ); 41cdf0e10cSrcweir //GetIdlApp()->pGlobalNames = new SvGlobalHashNames(); 42cdf0e10cSrcweir } 43cdf0e10cSrcweir return (*(IdlDll**)GetAppData(SHL_IDL)); 44cdf0e10cSrcweir } 45cdf0e10cSrcweir 46cdf0e10cSrcweir IdlDll::IdlDll() 47cdf0e10cSrcweir : pHashTable( NULL ) 48cdf0e10cSrcweir , pClassMgr( NULL ) 49cdf0e10cSrcweir , pGlobalNames( NULL ) 50cdf0e10cSrcweir 51cdf0e10cSrcweir { 52cdf0e10cSrcweir pClassMgr = new SvClassManager(); 53cdf0e10cSrcweir // File OBJECT.HXX: 54cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaAttribute ); 55cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaClass ); 56cdf0e10cSrcweir //File SLOT.HXX: 57cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaSlot ); 58cdf0e10cSrcweir //File MODULE.HXX: 59cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaModule ); 60cdf0e10cSrcweir //File BASOBJ.HXX: 61cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaObject ); 62cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaName ); 63cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaExtern ); 64cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaReference ); 65cdf0e10cSrcweir //File TYPES.HXX: 66cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaType ); 67cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaTypeString ); 68cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaEnumValue ); 69cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaTypeEnum ); 70cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvMetaTypevoid ); 71cdf0e10cSrcweir pClassMgr->SV_CLASS_REGISTER( SvClassElement ); 72cdf0e10cSrcweir } 73cdf0e10cSrcweir 74cdf0e10cSrcweir IdlDll::~IdlDll() 75cdf0e10cSrcweir { 76cdf0e10cSrcweir delete pGlobalNames; 77cdf0e10cSrcweir delete pClassMgr; 78cdf0e10cSrcweir delete pHashTable; 79cdf0e10cSrcweir } 80cdf0e10cSrcweir 81cdf0e10cSrcweir /************************************************************************* 82cdf0e10cSrcweir |* 83cdf0e10cSrcweir |* SvGlobalHashNames::SvGlobalHashNames() 84cdf0e10cSrcweir |* 85cdf0e10cSrcweir |* Beschreibung 86cdf0e10cSrcweir |* Ersterstellung MM 08.08.91 87cdf0e10cSrcweir |* Letzte Aenderung MM 08.08.91 88cdf0e10cSrcweir |* 89cdf0e10cSrcweir *************************************************************************/ 90cdf0e10cSrcweir inline SvStringHashEntry * INS( const ByteString & rName ) 91cdf0e10cSrcweir { 92cdf0e10cSrcweir sal_uInt32 nIdx; 93cdf0e10cSrcweir IDLAPP->pHashTable->Insert( rName, &nIdx ); 94cdf0e10cSrcweir return (SvStringHashEntry * )IDLAPP->pHashTable->Get( nIdx ); 95cdf0e10cSrcweir } 96cdf0e10cSrcweir #define A_ENTRY( Name ) , MM_##Name( INS( #Name ) ) 97cdf0e10cSrcweir 98cdf0e10cSrcweir SvGlobalHashNames::SvGlobalHashNames() 99cdf0e10cSrcweir : MM_Name( INS( "Name" ) ) 100cdf0e10cSrcweir , MM_module( INS( "module" ) ) 101cdf0e10cSrcweir , MM_interface( INS( "interface" ) ) 102cdf0e10cSrcweir , MM_in( INS( "in" ) ) 103cdf0e10cSrcweir , MM_out( INS( "out" ) ) 104cdf0e10cSrcweir , MM_inout( INS( "inout" ) ) 105cdf0e10cSrcweir , MM_String( INS( "String" ) ) 106cdf0e10cSrcweir , MM_UCHAR( INS( "UCHAR" ) ) 107cdf0e10cSrcweir , MM_USHORT( INS( "USHORT" ) ) 108cdf0e10cSrcweir , MM_uuid( INS( "uuid" ) ) 109cdf0e10cSrcweir , MM_HelpContext( INS( "HelpContext" ) ) 110cdf0e10cSrcweir , MM_HelpText( INS( "HelpText" ) ) 111cdf0e10cSrcweir , MM_void( INS( "void" ) ) 112cdf0e10cSrcweir , MM_shell( INS( "shell" ) ) 113cdf0e10cSrcweir , MM_Get( INS( "Get" ) ) 114cdf0e10cSrcweir , MM_Set( INS( "Set" ) ) 115cdf0e10cSrcweir , MM_SlotId( INS( "SlotId" ) ) 116cdf0e10cSrcweir , MM_HasCoreId( INS( "HasCoreId" ) ) 117cdf0e10cSrcweir , MM_Cachable( INS( "Cachable" ) ) 118cdf0e10cSrcweir // , MM_Volatile( INS( "Volatile" ) ) 119cdf0e10cSrcweir , MM_Toggle( INS( "Toggle" ) ) 120cdf0e10cSrcweir , MM_AutoUpdate( INS( "AutoUpdate" ) ) 121cdf0e10cSrcweir , MM_Synchron( INS( "Synchron" ) ) 122cdf0e10cSrcweir , MM_Asynchron( INS( "Asynchron" ) ) 123cdf0e10cSrcweir A_ENTRY(RecordPerSet) 124cdf0e10cSrcweir A_ENTRY(RecordPerItem) 125cdf0e10cSrcweir A_ENTRY(RecordManual) 126cdf0e10cSrcweir A_ENTRY(NoRecord) 127cdf0e10cSrcweir A_ENTRY(RecordAbsolute) 128cdf0e10cSrcweir A_ENTRY(enum) 129cdf0e10cSrcweir A_ENTRY(UINT16) 130cdf0e10cSrcweir A_ENTRY(INT16) 131cdf0e10cSrcweir A_ENTRY(UINT32) 132cdf0e10cSrcweir A_ENTRY(INT32) 133cdf0e10cSrcweir A_ENTRY(int) 134cdf0e10cSrcweir A_ENTRY(BOOL) 135cdf0e10cSrcweir A_ENTRY(char) 136cdf0e10cSrcweir A_ENTRY(BYTE) 137cdf0e10cSrcweir A_ENTRY(float) 138cdf0e10cSrcweir A_ENTRY(double) 139cdf0e10cSrcweir A_ENTRY(item) 140cdf0e10cSrcweir A_ENTRY(PseudoSlots) 141cdf0e10cSrcweir A_ENTRY(map) 142cdf0e10cSrcweir A_ENTRY(Default) 143cdf0e10cSrcweir A_ENTRY(HelpFile) 144cdf0e10cSrcweir A_ENTRY(Version) 145cdf0e10cSrcweir A_ENTRY(import) 146cdf0e10cSrcweir A_ENTRY(SlotIdFile) 147cdf0e10cSrcweir A_ENTRY(SvName) 148cdf0e10cSrcweir A_ENTRY(SbxName) 149cdf0e10cSrcweir A_ENTRY(ItemName) 150cdf0e10cSrcweir A_ENTRY(OdlName) 151cdf0e10cSrcweir A_ENTRY(include) 152cdf0e10cSrcweir A_ENTRY(ExecMethod) 153cdf0e10cSrcweir A_ENTRY(StateMethod) 154cdf0e10cSrcweir A_ENTRY(GroupId) 155cdf0e10cSrcweir A_ENTRY(HasDialog) 156cdf0e10cSrcweir A_ENTRY(TypeLibFile) 157cdf0e10cSrcweir A_ENTRY(Export) 158cdf0e10cSrcweir A_ENTRY(Automation) 159cdf0e10cSrcweir A_ENTRY(PseudoPrefix) 160cdf0e10cSrcweir A_ENTRY(define) 161cdf0e10cSrcweir A_ENTRY(MenuConfig) 162cdf0e10cSrcweir A_ENTRY(ToolBoxConfig) 163cdf0e10cSrcweir A_ENTRY(StatusBarConfig) 164cdf0e10cSrcweir A_ENTRY(AccelConfig) 165cdf0e10cSrcweir A_ENTRY(AllConfig) 166cdf0e10cSrcweir A_ENTRY(FastCall) 167cdf0e10cSrcweir A_ENTRY(SbxObject) 168cdf0e10cSrcweir A_ENTRY(Container) 169cdf0e10cSrcweir A_ENTRY(ImageRotation) 170cdf0e10cSrcweir A_ENTRY(ImageReflection) 171cdf0e10cSrcweir A_ENTRY(IsCollection) 172cdf0e10cSrcweir A_ENTRY(ReadOnlyDoc) 173cdf0e10cSrcweir A_ENTRY(ConfigName) 174cdf0e10cSrcweir A_ENTRY(union) 175cdf0e10cSrcweir A_ENTRY(struct) 176cdf0e10cSrcweir A_ENTRY(typedef) 177cdf0e10cSrcweir A_ENTRY(Readonly) 178cdf0e10cSrcweir A_ENTRY(SlotType) 179cdf0e10cSrcweir A_ENTRY(ModulePrefix) 180cdf0e10cSrcweir A_ENTRY(DisableFlags) 181cdf0e10cSrcweir A_ENTRY(Hidden) 182cdf0e10cSrcweir A_ENTRY(Description) 183cdf0e10cSrcweir A_ENTRY(UnoName) 184cdf0e10cSrcweir {} 185cdf0e10cSrcweir 186