LCOV - code coverage report
Current view: top level - rsc/inc - rscall.h (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 6 8 75.0 %
Date: 2012-08-25 Functions: 3 5 60.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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 rtl::OString* pStdParType;
      38                 :            : extern rtl::OString* pStdPar1;
      39                 :            : extern rtl::OString* pStdPar2;
      40                 :            : extern rtl::OString* pWinParType;
      41                 :            : extern rtl::OString* pWinPar1;
      42                 :            : extern rtl::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 SMART_FLAG        0x0400  // abgekuertze Name
      68                 :            : #define SRSDEFAULT_FLAG   0x1000  // immer der Default geschrieben
      69                 :            : #define NOSYSRESTEST_FLAG 0x2000  // ueberprueft nicht die Richtigkeit von (bmp, ico, cur)
      70                 :            : 
      71                 :            : 
      72                 :            : /******************* T y p e s *******************************************/
      73                 :            : enum RSCCLASS_TYPE  { RSCCLASS_BOOL, RSCCLASS_STRING, RSCCLASS_NUMBER,
      74                 :            :                         RSCCLASS_CONST, RSCCLASS_COMPLEX, RSCCLASS_ENUMARRAY };
      75                 :            : 
      76                 :            : typedef void (* VarEnumCallbackProc)( void * pData, RSCCLASS_TYPE, Atom );
      77                 :            : 
      78                 :            : /******************* S t r u c t s ***************************************/
      79                 :            : struct RSCINST {
      80                 :            :     RscTop *    pClass;
      81                 :            :     CLASS_DATA  pData;
      82                 :            : 
      83                 :   21385902 :                 RSCINST(){ pClass = NULL; pData = NULL; }
      84                 :     127770 :                 RSCINST( RscTop * pCl, CLASS_DATA pClassData ){
      85                 :     127770 :                     pClass = pCl;
      86                 :     127770 :                     pData = pClassData;
      87                 :     127770 :                 }
      88                 :   10535626 :     sal_Bool        IsInst() const { return( pData != NULL ); }
      89                 :            : };
      90                 :            : 
      91                 :            : /********************** S U B I N F O S T R U C T ************************/
      92                 :          0 : struct SUBINFO_STRUCT {
      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 // _RSCALL_H
     103                 :            : 
     104                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10