LCOV - code coverage report
Current view: top level - rsc/inc - rscmgr.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 3 4 75.0 %
Date: 2014-11-03 Functions: 4 5 80.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_RSCMGR_HXX
      20             : #define INCLUDED_RSC_INC_RSCMGR_HXX
      21             : 
      22             : #include <rscall.h>
      23             : #include <rscerror.h>
      24             : #include <rschash.hxx>
      25             : #include <rsctop.hxx>
      26             : #include <rscclass.hxx>
      27             : 
      28             : /******************* R s c M g r *****************************************/
      29         838 : class RscMgr : public RscClass
      30             : {
      31           0 :     struct RscMgrInst
      32             :     {
      33             :         RscId   aRefId; // nRefId = Referenz Identifier
      34             :         bool    bDflt;  // Ist Default
      35       44162 :         void Create(){ aRefId.Create(); bDflt = true; }
      36       44162 :         void Destroy(){ aRefId.Destroy(); }
      37             :     };
      38             :     ERRTYPE         IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep = 0 );
      39             : public:
      40             :                     RscMgr( Atom nId, sal_uInt32 nTypId, RscTop * pSuperCl );
      41             : 
      42             :     void            SetToDefault( const RSCINST & rInst ) SAL_OVERRIDE;
      43             :     bool            IsDefault( const RSCINST & rInst ) SAL_OVERRIDE;
      44             :     bool            IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE;
      45             : 
      46             :     RSCINST         Create( RSCINST * pInst, const RSCINST & rDflt, bool ) SAL_OVERRIDE;
      47             :     void            Destroy( const RSCINST & rInst ) SAL_OVERRIDE;
      48             :     sal_uInt32      Size() SAL_OVERRIDE;
      49             :     void            WriteSrcHeader( const RSCINST & aInst, FILE * fOutput,
      50             :                                     RscTypCont * pTC, sal_uInt32 nTab,
      51             :                                     const RscId & rId, const char * ) SAL_OVERRIDE;
      52             : 
      53             :     void            WriteSrc( const RSCINST & rInst, FILE * fOutput,
      54             :                               RscTypCont * pTC, sal_uInt32 nTab, const char * ) SAL_OVERRIDE;
      55             :     ERRTYPE         WriteRcHeader( const RSCINST & rInst, RscWriteRc & aMem,
      56             :                                    RscTypCont * pTC, const RscId & rId,
      57             :                                    sal_uInt32, bool bExtra ) SAL_OVERRIDE;
      58             :     ERRTYPE         WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
      59             :                              RscTypCont * pTC, sal_uInt32, bool bExtra ) SAL_OVERRIDE;
      60             :     bool            IsConsistent( const RSCINST & rInst ) SAL_OVERRIDE;
      61             :     ERRTYPE         GetRef( const RSCINST & rInst, RscId * ) SAL_OVERRIDE;
      62             :     ERRTYPE         SetRef( const RSCINST & rInst, const RscId & rRefId ) SAL_OVERRIDE;
      63             : };
      64             : 
      65             : #endif // INCLUDED_RSC_INC_RSCMGR_HXX
      66             : 
      67             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10