1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _RSCALL_H 28 #define _RSCALL_H 29 30 #include <tools/string.hxx> 31 #include <rsctools.hxx> 32 #include <rscerror.h> 33 #include <rscdef.hxx> 34 #include <rschash.hxx> 35 #include <rtl/alloc.h> 36 37 /******************* T y p e s *******************************************/ 38 typedef char * CLASS_DATA; // Zeiger auf die Daten einer Klasse 39 40 /******************* C l a s s e s F o r w a r d s *********************/ 41 class RscCompiler; 42 class RscTop; 43 class RscTypCont; 44 class RscIncList; 45 46 /******************* G l o b a l V a r i a b l e s *********************/ 47 extern ByteString* pStdParType; 48 extern ByteString* pStdPar1; 49 extern ByteString* pStdPar2; 50 extern ByteString* pWinParType; 51 extern ByteString* pWinPar1; 52 extern ByteString* pWinPar2; 53 extern sal_uInt32 nRefDeep; 54 extern sal_uInt32 nRsc_XYMAPMODEId; 55 extern sal_uInt32 nRsc_WHMAPMODEId; 56 extern sal_uInt32 nRsc_X; 57 extern sal_uInt32 nRsc_Y; 58 extern sal_uInt32 nRsc_WIDTH; 59 extern sal_uInt32 nRsc_HEIGHT; 60 extern sal_uInt32 nRsc_DELTALANG; 61 extern sal_uInt32 nRsc_DELTASYSTEM; 62 extern sal_uInt32 nRsc_EXTRADATA; 63 extern AtomContainer* pHS; 64 65 /******************* D e f i n e s ***************************************/ 66 67 #define HELP_FLAG 0x0001 // Hilfe anzeigen 68 #define NOPREPRO_FLAG 0x0002 // kein Preprozesor 69 #define NOSYNTAX_FLAG 0x0004 // keine Syntaxanalyse 70 #define NOLINK_FLAG 0x0008 // nicht linken 71 #define NORESFILE_FLAG 0x0010 // keine .res-Datei erzeugen 72 #define DEFINE_FLAG 0x0020 // es wurde Definitionen angegeben 73 #define INCLUDE_FLAG 0x0040 // der Include-Pfad wurde erweitert 74 #define MSCPREPRO_FLAG 0x0080 // spezial Preprozessor 75 #define PRINTSYNTAX_FLAG 0x0100 // Syntax ausgeben 76 #define PRELOAD_FLAG 0x0200 // Alle Ressourcen Preloaden 77 #define SMART_FLAG 0x0400 // abgekuertze Name 78 #define SRSDEFAULT_FLAG 0x1000 // immer der Default geschrieben 79 #define NOSYSRESTEST_FLAG 0x2000 // ueberprueft nicht die Richtigkeit von (bmp, ico, cur) 80 81 82 /******************* T y p e s *******************************************/ 83 enum RSCCLASS_TYPE { RSCCLASS_BOOL, RSCCLASS_STRING, RSCCLASS_NUMBER, 84 RSCCLASS_CONST, RSCCLASS_COMPLEX, RSCCLASS_ENUMARRAY }; 85 86 typedef void (* VarEnumCallbackProc)( void * pData, RSCCLASS_TYPE, Atom ); 87 88 /******************* S t r u c t s ***************************************/ 89 struct RSCINST { 90 RscTop * pClass; 91 CLASS_DATA pData; 92 93 RSCINST(){ pClass = NULL; pData = NULL; } 94 RSCINST( RscTop * pCl, CLASS_DATA pClassData ){ 95 pClass = pCl; 96 pData = pClassData; 97 } 98 sal_Bool IsInst() const { return( pData != NULL ); } 99 }; 100 101 /********************** S U B I N F O S T R U C T ************************/ 102 struct SUBINFO_STRUCT { 103 SUBINFO_STRUCT(){ nPos = 0; pClass = NULL; }; 104 RscId aId; // Identifier der Resource 105 sal_uInt32 nPos; // Position der Resource 106 RscTop * pClass; // Klasse des Eintrages 107 }; 108 109 /******************* F u n c t i o n *************************************/ 110 void InitRscCompiler(); 111 112 #endif // _RSCALL_H 113