LCOV - code coverage report
Current view: top level - libreoffice/unotools/inc/unotools - itemholderbase.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 4 100.0 %
Date: 2012-12-27 Functions: 3 3 100.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             : 
      20             : #ifndef INCLUDED_unotools_ITEMHOLDERBASE_HXX_
      21             : #define INCLUDED_unotools_ITEMHOLDERBASE_HXX_
      22             : 
      23             : #include <vector>
      24             : #include <osl/mutex.hxx>
      25             : 
      26             : namespace utl { namespace detail { class Options; } }
      27             : 
      28             : 
      29          64 : struct ItemHolderMutexBase
      30             : {
      31             :     ::osl::Mutex m_aLock;
      32             : };
      33             : 
      34             : enum EItem
      35             : {
      36             :     E_ACCELCFG                      ,   //
      37             :     E_ACCESSIBILITYOPTIONS          ,   // 2
      38             :     E_ADDXMLTOSTORAGEOPTIONS        ,   //
      39             :     E_APEARCFG                      ,   // 2
      40             : 
      41             :     E_CJKOPTIONS                    ,   // 2
      42             :     E_CMDOPTIONS                    ,   //
      43             :     E_COLORCFG                      ,   // 2
      44             :     E_COMPATIBILITY                 ,   //
      45             :     E_CTLOPTIONS                    ,   // 2
      46             : 
      47             :     E_DEFAULTOPTIONS                ,   //
      48             :     E_DYNAMICMENUOPTIONS            ,   //
      49             : 
      50             :     E_EVENTCFG                      ,   //
      51             :     E_EXTENDEDSECURITYOPTIONS       ,   //
      52             : 
      53             :     E_FLTRCFG                       ,   //
      54             :     E_FONTOPTIONS                   ,   //
      55             :     E_FONTSUBSTCONFIG               ,   // 2
      56             : 
      57             :     E_HELPOPTIONS                   ,   // 2
      58             :     E_HISTORYOPTIONS                ,   //
      59             : 
      60             :     E_INTERNALOPTIONS               ,   //
      61             : 
      62             :     E_JAVAOPTIONS                   ,   //
      63             : 
      64             :     E_LANGUAGEOPTIONS               ,   // 2
      65             :     E_LINGUCFG                      ,   //
      66             :     E_LOCALISATIONOPTIONS           ,   //
      67             : 
      68             :     E_MENUOPTIONS                   ,   //
      69             :     E_MISCCFG                       ,   // 2
      70             :     E_MISCOPTIONS                   ,   //
      71             :     E_MODULEOPTIONS                 ,   //
      72             : 
      73             :     E_OPTIONSDLGOPTIONS             ,   //
      74             : 
      75             :     E_PATHOPTIONS                   ,   //
      76             :     E_PRINTOPTIONS                  ,   // 2
      77             :     E_PRINTFILEOPTIONS              ,   // 2
      78             :     E_PRINTWARNINGOPTIONS           ,   //
      79             : 
      80             :     E_REGOPTIONS                    ,   //
      81             : 
      82             :     E_SAVEOPTIONS                   ,   //
      83             :     E_SEARCHOPT                     ,   //
      84             :     E_SECURITYOPTIONS               ,   //
      85             :     E_SYSLOCALEOPTIONS              ,   // 2
      86             : 
      87             :     E_USEROPTIONS                   ,   // 2
      88             : 
      89             :     E_VIEWOPTIONS_DIALOG            ,   //
      90             :     E_VIEWOPTIONS_TABDIALOG         ,   //
      91             :     E_VIEWOPTIONS_TABPAGE           ,   //
      92             :     E_VIEWOPTIONS_WINDOW            ,   //
      93             : 
      94             :     E_WORKINGSETOPTIONS             ,   //
      95             : 
      96             :     E_XMLACCELCFG                       //
      97             : };
      98             : 
      99             : struct TItemInfo
     100             : {
     101         345 :     TItemInfo()
     102         345 :         : pItem(0)
     103         345 :     {}
     104             : 
     105             :     utl::detail::Options * pItem;
     106             :     EItem eItem;
     107             : };
     108             : 
     109             : typedef ::std::vector< TItemInfo > TItems;
     110             : 
     111             : #endif // INCLUDED_unotools_ITEMHOLDERBASE_HXX_
     112             : 
     113             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10