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