1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_RSC_INC_RSCALL_H
20 #define INCLUDED_RSC_INC_RSCALL_H
22 #include <rsctools.hxx>
25 #include <rschash.hxx>
26 #include <rtl/alloc.h>
28 /******************* T y p e s *******************************************/
29 typedef char * CLASS_DATA
; // Zeiger auf die Daten einer Klasse
31 /******************* C l a s s e s F o r w a r d s *********************/
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
;
55 /******************* D e f i n e s ***************************************/
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 PRELOAD_FLAG 0x0200 // Alle Resourcen Preloaden
65 #define SRSDEFAULT_FLAG 0x1000 // immer der Default geschrieben
66 #define NOSYSRESTEST_FLAG 0x2000 // ueberprueft nicht die Richtigkeit von (bmp, ico, cur)
69 /******************* T y p e s *******************************************/
70 enum RSCCLASS_TYPE
{ RSCCLASS_BOOL
, RSCCLASS_STRING
, RSCCLASS_NUMBER
,
71 RSCCLASS_CONST
, RSCCLASS_COMPLEX
, RSCCLASS_ENUMARRAY
};
73 typedef void (* VarEnumCallbackProc
)( void * pData
, RSCCLASS_TYPE
, Atom
);
75 /******************* S t r u c t s ***************************************/
81 RSCINST(){ pClass
= NULL
; pData
= NULL
; }
82 RSCINST( RscTop
* pCl
, CLASS_DATA pClassData
)
87 bool IsInst() const { return( pData
!= NULL
); }
90 /********************** S U B I N F O S T R U C T ************************/
93 SUBINFO_STRUCT(){ nPos
= 0; pClass
= NULL
; };
94 RscId aId
; // Identifier der Resource
95 sal_uInt32 nPos
; // Position der Resource
96 RscTop
* pClass
; // Klasse des Eintrages
99 /******************* F u n c t i o n *************************************/
100 void InitRscCompiler();
102 #endif // INCLUDED_RSC_INC_RSCALL_H
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */