LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - navicfg.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 11 36 30.6 %
Date: 2015-06-13 12:38:46 Functions: 7 12 58.3 %
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_SW_SOURCE_UIBASE_INC_NAVICFG_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_NAVICFG_HXX
      21             : 
      22             : #include <unotools/configitem.hxx>
      23             : 
      24             : class SwNavigationConfig : public utl::ConfigItem
      25             : {
      26             :     sal_Int32   nRootType;      //RootType
      27             :     sal_Int32   nSelectedPos;   //SelectedPosition
      28             :     sal_Int32   nOutlineLevel;  //OutlineLevel
      29             :     sal_Int32   nRegionMode;    //InsertMode
      30             :     sal_Int32   nActiveBlock;   //ActiveBlock//Expand/CollapsState
      31             :     bool    bIsSmall;       //ShowListBox
      32             :     bool    bIsGlobalActive; //GlobalDocMode// global view for GlobalDoc valid?
      33             : 
      34             :     static com::sun::star::uno::Sequence<OUString> GetPropertyNames();
      35             : 
      36             :     virtual void ImplCommit() SAL_OVERRIDE;
      37             : 
      38             : public:
      39             :     SwNavigationConfig();
      40             :     virtual ~SwNavigationConfig();
      41             : 
      42             :     virtual void Notify( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) SAL_OVERRIDE;
      43             : 
      44           7 :     sal_Int32   GetRootType()const {return nRootType;}
      45           0 :     void        SetRootType(sal_Int32 nSet){
      46           0 :                         if(nRootType != nSet)
      47             :                         {
      48           0 :                             SetModified();
      49           0 :                             nRootType = nSet;
      50             :                         }
      51           0 :                     }
      52             : 
      53             :     sal_Int32   GetSelectedPos()const {return nSelectedPos;}
      54             :     void        SetSelectedPos(sal_Int32 nSet){
      55             :                         if(nSelectedPos != nSet)
      56             :                         {
      57             :                             SetModified();
      58             :                             nSelectedPos = nSet;
      59             :                         }
      60             :                     }
      61             : 
      62           7 :     sal_Int32   GetOutlineLevel()const {return nOutlineLevel;}
      63           7 :     void        SetOutlineLevel(sal_Int32 nSet){
      64           7 :                         if(nOutlineLevel != nSet)
      65             :                         {
      66           0 :                             SetModified();
      67           0 :                             nOutlineLevel = nSet;
      68             :                         }
      69           7 :                     }
      70             : 
      71           7 :     sal_Int32   GetRegionMode()const {return nRegionMode;}
      72           7 :     void        SetRegionMode(sal_Int32 nSet){
      73           7 :                     if(nRegionMode != nSet)
      74             :                     {
      75           0 :                         SetModified();
      76           0 :                         nRegionMode = nSet;
      77             :                     }
      78           7 :                 }
      79             : 
      80           8 :     sal_Int32   GetActiveBlock()const {return nActiveBlock;}
      81           0 :     void        SetActiveBlock(sal_Int32 nSet){
      82           0 :                         if(nActiveBlock != nSet)
      83             :                         {
      84           0 :                             SetModified();
      85           0 :                             nActiveBlock = nSet;
      86             :                         }
      87           0 :                     }
      88             : 
      89           0 :     bool    IsSmall() const {return bIsSmall;}
      90           0 :     void        SetSmall(bool bSet){
      91           0 :                         if(bIsSmall != bSet)
      92             :                         {
      93           0 :                             SetModified();
      94           0 :                             bIsSmall = bSet;
      95             :                         }
      96           0 :                     }
      97             : 
      98           8 :     bool    IsGlobalActive() const {return bIsGlobalActive;}
      99           0 :     void        SetGlobalActive(bool bSet){
     100           0 :                         if(bIsGlobalActive != bSet)
     101             :                         {
     102           0 :                             SetModified();
     103           0 :                             bIsGlobalActive = bSet;
     104             :                         }
     105           0 :                     }
     106             : };
     107             : 
     108             : #endif
     109             : 
     110             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11