xref: /AOO41X/main/sw/source/ui/inc/navicfg.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _NAVICFG_HXX
24cdf0e10cSrcweir #define _NAVICFG_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <unotools/configitem.hxx>
27cdf0e10cSrcweir /* -----------------------------08.09.00 16:27--------------------------------
28cdf0e10cSrcweir 
29cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
30cdf0e10cSrcweir class SwNavigationConfig : public utl::ConfigItem
31cdf0e10cSrcweir {
32cdf0e10cSrcweir 	sal_Int32	nRootType;		//RootType
33cdf0e10cSrcweir 	sal_Int32	nSelectedPos;   //SelectedPosition
34cdf0e10cSrcweir 	sal_Int32 	nOutlineLevel;  //OutlineLevel
35cdf0e10cSrcweir 	sal_Int32	nRegionMode;    //InsertMode
36cdf0e10cSrcweir 	sal_Int32 	nActiveBlock;	//ActiveBlock//Expand/CollapsState
37cdf0e10cSrcweir 	sal_Bool 	bIsSmall;       //ShowListBox
38cdf0e10cSrcweir 	sal_Bool 	bIsGlobalActive; //GlobalDocMode// Globalansicht fuer GlobalDoc gueltig?
39cdf0e10cSrcweir 
40cdf0e10cSrcweir 	com::sun::star::uno::Sequence<rtl::OUString> GetPropertyNames();
41cdf0e10cSrcweir 
42cdf0e10cSrcweir public:
43cdf0e10cSrcweir 	SwNavigationConfig();
44cdf0e10cSrcweir 	~SwNavigationConfig();
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	virtual void Commit();
47cdf0e10cSrcweir 	virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
48cdf0e10cSrcweir 
GetRootType() const49cdf0e10cSrcweir 	sal_Int32	GetRootType()const {return nRootType;}
SetRootType(sal_Int32 nSet)50cdf0e10cSrcweir 	void		SetRootType(sal_Int32 nSet){
51cdf0e10cSrcweir 						if(nRootType != nSet)
52cdf0e10cSrcweir 						{
53cdf0e10cSrcweir 							SetModified();
54cdf0e10cSrcweir 							nRootType = nSet;
55cdf0e10cSrcweir 						}
56cdf0e10cSrcweir 					}
57cdf0e10cSrcweir 
GetSelectedPos() const58cdf0e10cSrcweir 	sal_Int32	GetSelectedPos()const {return nSelectedPos;}
SetSelectedPos(sal_Int32 nSet)59cdf0e10cSrcweir 	void		SetSelectedPos(sal_Int32 nSet){
60cdf0e10cSrcweir 						if(nSelectedPos != nSet)
61cdf0e10cSrcweir 						{
62cdf0e10cSrcweir 							SetModified();
63cdf0e10cSrcweir 							nSelectedPos = nSet;
64cdf0e10cSrcweir 						}
65cdf0e10cSrcweir 					}
66cdf0e10cSrcweir 
67cdf0e10cSrcweir 
GetOutlineLevel() const68cdf0e10cSrcweir 	sal_Int32	GetOutlineLevel()const {return nOutlineLevel;}
SetOutlineLevel(sal_Int32 nSet)69cdf0e10cSrcweir 	void		SetOutlineLevel(sal_Int32 nSet){
70cdf0e10cSrcweir 						if(nOutlineLevel != nSet)
71cdf0e10cSrcweir 						{
72cdf0e10cSrcweir 							SetModified();
73cdf0e10cSrcweir 							nOutlineLevel = nSet;
74cdf0e10cSrcweir 						}
75cdf0e10cSrcweir 					}
76cdf0e10cSrcweir 
GetRegionMode() const77cdf0e10cSrcweir 	sal_Int32	GetRegionMode()const {return nRegionMode;}
SetRegionMode(sal_Int32 nSet)78cdf0e10cSrcweir 	void 		SetRegionMode(sal_Int32 nSet){
79cdf0e10cSrcweir 					if(nRegionMode != nSet)
80cdf0e10cSrcweir 					{
81cdf0e10cSrcweir 						SetModified();
82cdf0e10cSrcweir 						nRegionMode = nSet;
83cdf0e10cSrcweir 					}
84cdf0e10cSrcweir 				}
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 
GetActiveBlock() const87cdf0e10cSrcweir 	sal_Int32   GetActiveBlock()const {return nActiveBlock;}
SetActiveBlock(sal_Int32 nSet)88cdf0e10cSrcweir 	void		SetActiveBlock(sal_Int32 nSet){
89cdf0e10cSrcweir 						if(nActiveBlock != nSet)
90cdf0e10cSrcweir 						{
91cdf0e10cSrcweir 							SetModified();
92cdf0e10cSrcweir 							nActiveBlock = nSet;
93cdf0e10cSrcweir 						}
94cdf0e10cSrcweir 					}
95cdf0e10cSrcweir 
IsSmall() const96cdf0e10cSrcweir 	sal_Bool	IsSmall() const {return bIsSmall;}
SetSmall(sal_Bool bSet)97cdf0e10cSrcweir 	void		SetSmall(sal_Bool bSet){
98cdf0e10cSrcweir 						if(bIsSmall != bSet)
99cdf0e10cSrcweir 						{
100cdf0e10cSrcweir 							SetModified();
101cdf0e10cSrcweir 							bIsSmall = bSet;
102cdf0e10cSrcweir 						}
103cdf0e10cSrcweir 					}
104cdf0e10cSrcweir 
IsGlobalActive() const105cdf0e10cSrcweir 	sal_Bool	IsGlobalActive() const {return bIsGlobalActive;}
SetGlobalActive(sal_Bool bSet)106cdf0e10cSrcweir 	void		SetGlobalActive(sal_Bool bSet){
107cdf0e10cSrcweir 						if(bIsGlobalActive != bSet)
108cdf0e10cSrcweir 						{
109cdf0e10cSrcweir 							SetModified();
110cdf0e10cSrcweir 							bIsGlobalActive = bSet;
111cdf0e10cSrcweir 						}
112cdf0e10cSrcweir 					}
113cdf0e10cSrcweir };
114cdf0e10cSrcweir #endif
115cdf0e10cSrcweir 
116