LCOV - code coverage report
Current view: top level - rsc/inc - rscall.h (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 6 8 75.0 %
Date: 2015-06-13 12:38:46 Functions: 3 5 60.0 %
Legend: Lines: hit not hit

          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 INCLUDED_RSC_INC_RSCALL_H
      20             : #define INCLUDED_RSC_INC_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 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)
      67             : 
      68             : 
      69             : /******************* T y p e s *******************************************/
      70             : enum RSCCLASS_TYPE  { RSCCLASS_BOOL, RSCCLASS_STRING, RSCCLASS_NUMBER,
      71             :                       RSCCLASS_CONST, RSCCLASS_COMPLEX, RSCCLASS_ENUMARRAY };
      72             : 
      73             : typedef void (* VarEnumCallbackProc)( void * pData, RSCCLASS_TYPE, Atom );
      74             : 
      75             : /******************* S t r u c t s ***************************************/
      76             : struct RSCINST
      77             : {
      78             :     RscTop *    pClass;
      79             :     CLASS_DATA  pData;
      80             : 
      81     2742015 :                 RSCINST(){ pClass = NULL; pData = NULL; }
      82       57129 :                 RSCINST( RscTop * pCl, CLASS_DATA pClassData )
      83             :                     {
      84       57129 :                         pClass = pCl;
      85       57129 :                         pData = pClassData;
      86       57129 :                     }
      87     1527259 :     bool        IsInst() const { return( pData != NULL ); }
      88             : };
      89             : 
      90             : /********************** S U B I N F O S T R U C T ************************/
      91           0 : struct SUBINFO_STRUCT
      92             : {
      93           0 :     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
      97             : };
      98             : 
      99             : /******************* F u n c t i o n *************************************/
     100             : void InitRscCompiler();
     101             : 
     102             : #endif // INCLUDED_RSC_INC_RSCALL_H
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11