1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: navicfg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 #include <unotools/configitem.hxx>
34 /* -----------------------------08.09.00 16:27--------------------------------
36 ---------------------------------------------------------------------------*/
37 class SwNavigationConfig
: public utl::ConfigItem
39 sal_Int32 nRootType
; //RootType
40 sal_Int32 nSelectedPos
; //SelectedPosition
41 sal_Int32 nOutlineLevel
; //OutlineLevel
42 sal_Int32 nRegionMode
; //InsertMode
43 sal_Int32 nActiveBlock
; //ActiveBlock//Expand/CollapsState
44 sal_Bool bIsSmall
; //ShowListBox
45 sal_Bool bIsGlobalActive
; //GlobalDocMode// Globalansicht fuer GlobalDoc gueltig?
47 com::sun::star::uno::Sequence
<rtl::OUString
> GetPropertyNames();
51 ~SwNavigationConfig();
53 virtual void Commit();
55 sal_Int32
GetRootType()const {return nRootType
;}
56 void SetRootType(sal_Int32 nSet
){
64 sal_Int32
GetSelectedPos()const {return nSelectedPos
;}
65 void SetSelectedPos(sal_Int32 nSet
){
66 if(nSelectedPos
!= nSet
)
74 sal_Int32
GetOutlineLevel()const {return nOutlineLevel
;}
75 void SetOutlineLevel(sal_Int32 nSet
){
76 if(nOutlineLevel
!= nSet
)
83 sal_Int32
GetRegionMode()const {return nRegionMode
;}
84 void SetRegionMode(sal_Int32 nSet
){
85 if(nRegionMode
!= nSet
)
93 sal_Int32
GetActiveBlock()const {return nActiveBlock
;}
94 void SetActiveBlock(sal_Int32 nSet
){
95 if(nActiveBlock
!= nSet
)
102 sal_Bool
IsSmall() const {return bIsSmall
;}
103 void SetSmall(sal_Bool bSet
){
111 sal_Bool
IsGlobalActive() const {return bIsGlobalActive
;}
112 void SetGlobalActive(sal_Bool bSet
){
113 if(bIsGlobalActive
!= bSet
)
116 bIsGlobalActive
= bSet
;