update dev300-m58
[ooovba.git] / sw / source / ui / inc / navicfg.hxx
blob599f5c84589ea19762ccfc6514c1d3b61c837770
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: navicfg.hxx,v $
10 * $Revision: 1.3 $
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 ************************************************************************/
30 #ifndef _NAVICFG_HXX
31 #define _NAVICFG_HXX
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();
49 public:
50 SwNavigationConfig();
51 ~SwNavigationConfig();
53 virtual void Commit();
55 sal_Int32 GetRootType()const {return nRootType;}
56 void SetRootType(sal_Int32 nSet){
57 if(nRootType != nSet)
59 SetModified();
60 nRootType = nSet;
64 sal_Int32 GetSelectedPos()const {return nSelectedPos;}
65 void SetSelectedPos(sal_Int32 nSet){
66 if(nSelectedPos != nSet)
68 SetModified();
69 nSelectedPos = nSet;
74 sal_Int32 GetOutlineLevel()const {return nOutlineLevel;}
75 void SetOutlineLevel(sal_Int32 nSet){
76 if(nOutlineLevel != nSet)
78 SetModified();
79 nOutlineLevel = nSet;
83 sal_Int32 GetRegionMode()const {return nRegionMode;}
84 void SetRegionMode(sal_Int32 nSet){
85 if(nRegionMode != nSet)
87 SetModified();
88 nRegionMode = nSet;
93 sal_Int32 GetActiveBlock()const {return nActiveBlock;}
94 void SetActiveBlock(sal_Int32 nSet){
95 if(nActiveBlock != nSet)
97 SetModified();
98 nActiveBlock = nSet;
102 sal_Bool IsSmall() const {return bIsSmall;}
103 void SetSmall(sal_Bool bSet){
104 if(bIsSmall != bSet)
106 SetModified();
107 bIsSmall = bSet;
111 sal_Bool IsGlobalActive() const {return bIsGlobalActive;}
112 void SetGlobalActive(sal_Bool bSet){
113 if(bIsGlobalActive != bSet)
115 SetModified();
116 bIsGlobalActive = bSet;
120 #endif