Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef _RSCALL_H
20 : #define _RSCALL_H
21 :
22 : #include <rsctools.hxx>
23 : #include <rscerror.h>
24 : #include <rscdef.hxx>
25 : #include <rschash.hxx>
26 : #include <rtl/alloc.h>
27 :
28 : /******************* T y p e s *******************************************/
29 : typedef char * CLASS_DATA; // Zeiger auf die Daten einer Klasse
30 :
31 : /******************* C l a s s e s F o r w a r d s *********************/
32 : class RscCompiler;
33 : class RscTop;
34 : class RscTypCont;
35 :
36 : /******************* G l o b a l V a r i a b l e s *********************/
37 : extern OString* pStdParType;
38 : extern OString* pStdPar1;
39 : extern OString* pStdPar2;
40 : extern OString* pWinParType;
41 : extern OString* pWinPar1;
42 : extern OString* pWinPar2;
43 : extern sal_uInt32 nRefDeep;
44 : extern sal_uInt32 nRsc_XYMAPMODEId;
45 : extern sal_uInt32 nRsc_WHMAPMODEId;
46 : extern sal_uInt32 nRsc_X;
47 : extern sal_uInt32 nRsc_Y;
48 : extern sal_uInt32 nRsc_WIDTH;
49 : extern sal_uInt32 nRsc_HEIGHT;
50 : extern sal_uInt32 nRsc_DELTALANG;
51 : extern sal_uInt32 nRsc_DELTASYSTEM;
52 : extern sal_uInt32 nRsc_EXTRADATA;
53 : extern AtomContainer* pHS;
54 :
55 : /******************* D e f i n e s ***************************************/
56 :
57 : #define HELP_FLAG 0x0001 // Hilfe anzeigen
58 : #define NOPREPRO_FLAG 0x0002 // kein Preprozesor
59 : #define NOSYNTAX_FLAG 0x0004 // keine Syntaxanalyse
60 : #define NOLINK_FLAG 0x0008 // nicht linken
61 : #define NORESFILE_FLAG 0x0010 // keine .res-Datei erzeugen
62 : #define DEFINE_FLAG 0x0020 // es wurde Definitionen angegeben
63 : #define INCLUDE_FLAG 0x0040 // der Include-Pfad wurde erweitert
64 : #define MSCPREPRO_FLAG 0x0080 // spezial Preprozessor
65 : #define PRINTSYNTAX_FLAG 0x0100 // Syntax ausgeben
66 : #define PRELOAD_FLAG 0x0200 // Alle Resourcen Preloaden
67 : #define SRSDEFAULT_FLAG 0x1000 // immer der Default geschrieben
68 : #define NOSYSRESTEST_FLAG 0x2000 // ueberprueft nicht die Richtigkeit von (bmp, ico, cur)
69 :
70 :
71 : /******************* T y p e s *******************************************/
72 : enum RSCCLASS_TYPE { RSCCLASS_BOOL, RSCCLASS_STRING, RSCCLASS_NUMBER,
73 : RSCCLASS_CONST, RSCCLASS_COMPLEX, RSCCLASS_ENUMARRAY };
74 :
75 : typedef void (* VarEnumCallbackProc)( void * pData, RSCCLASS_TYPE, Atom );
76 :
77 : /******************* S t r u c t s ***************************************/
78 : struct RSCINST
79 : {
80 : RscTop * pClass;
81 : CLASS_DATA pData;
82 :
83 7785580 : RSCINST(){ pClass = NULL; pData = NULL; }
84 62609 : RSCINST( RscTop * pCl, CLASS_DATA pClassData )
85 : {
86 62609 : pClass = pCl;
87 62609 : pData = pClassData;
88 62609 : }
89 3912358 : bool IsInst() const { return( pData != NULL ); }
90 : };
91 :
92 : /********************** S U B I N F O S T R U C T ************************/
93 0 : struct SUBINFO_STRUCT
94 : {
95 0 : SUBINFO_STRUCT(){ nPos = 0; pClass = NULL; };
96 : RscId aId; // Identifier der Resource
97 : sal_uInt32 nPos; // Position der Resource
98 : RscTop * pClass; // Klasse des Eintrages
99 : };
100 :
101 : /******************* F u n c t i o n *************************************/
102 : void InitRscCompiler();
103 :
104 : #endif // _RSCALL_H
105 :
106 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|