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