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