1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _NAVICFG_HXX 28 #define _NAVICFG_HXX 29 30 #include <unotools/configitem.hxx> 31 /* -----------------------------08.09.00 16:27-------------------------------- 32 33 ---------------------------------------------------------------------------*/ 34 class SwNavigationConfig : public utl::ConfigItem 35 { 36 sal_Int32 nRootType; //RootType 37 sal_Int32 nSelectedPos; //SelectedPosition 38 sal_Int32 nOutlineLevel; //OutlineLevel 39 sal_Int32 nRegionMode; //InsertMode 40 sal_Int32 nActiveBlock; //ActiveBlock//Expand/CollapsState 41 sal_Bool bIsSmall; //ShowListBox 42 sal_Bool bIsGlobalActive; //GlobalDocMode// Globalansicht fuer GlobalDoc gueltig? 43 44 com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames(); 45 46 public: 47 SwNavigationConfig(); 48 ~SwNavigationConfig(); 49 50 virtual void Commit(); 51 virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); 52 53 sal_Int32 GetRootType()const {return nRootType;} 54 void SetRootType(sal_Int32 nSet){ 55 if(nRootType != nSet) 56 { 57 SetModified(); 58 nRootType = nSet; 59 } 60 } 61 62 sal_Int32 GetSelectedPos()const {return nSelectedPos;} 63 void SetSelectedPos(sal_Int32 nSet){ 64 if(nSelectedPos != nSet) 65 { 66 SetModified(); 67 nSelectedPos = nSet; 68 } 69 } 70 71 72 sal_Int32 GetOutlineLevel()const {return nOutlineLevel;} 73 void SetOutlineLevel(sal_Int32 nSet){ 74 if(nOutlineLevel != nSet) 75 { 76 SetModified(); 77 nOutlineLevel = nSet; 78 } 79 } 80 81 sal_Int32 GetRegionMode()const {return nRegionMode;} 82 void SetRegionMode(sal_Int32 nSet){ 83 if(nRegionMode != nSet) 84 { 85 SetModified(); 86 nRegionMode = nSet; 87 } 88 } 89 90 91 sal_Int32 GetActiveBlock()const {return nActiveBlock;} 92 void SetActiveBlock(sal_Int32 nSet){ 93 if(nActiveBlock != nSet) 94 { 95 SetModified(); 96 nActiveBlock = nSet; 97 } 98 } 99 100 sal_Bool IsSmall() const {return bIsSmall;} 101 void SetSmall(sal_Bool bSet){ 102 if(bIsSmall != bSet) 103 { 104 SetModified(); 105 bIsSmall = bSet; 106 } 107 } 108 109 sal_Bool IsGlobalActive() const {return bIsGlobalActive;} 110 void SetGlobalActive(sal_Bool bSet){ 111 if(bIsGlobalActive != bSet) 112 { 113 SetModified(); 114 bIsGlobalActive = bSet; 115 } 116 } 117 }; 118 #endif 119 120