bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / navicfg.hxx
blob0c1ca4a6c75f8b23ab8fcd9608f1b78ac90c9957
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _NAVICFG_HXX
20 #define _NAVICFG_HXX
22 #include <unotools/configitem.hxx>
24 class SwNavigationConfig : public utl::ConfigItem
26 sal_Int32 nRootType; //RootType
27 sal_Int32 nSelectedPos; //SelectedPosition
28 sal_Int32 nOutlineLevel; //OutlineLevel
29 sal_Int32 nRegionMode; //InsertMode
30 sal_Int32 nActiveBlock; //ActiveBlock//Expand/CollapsState
31 sal_Bool bIsSmall; //ShowListBox
32 sal_Bool bIsGlobalActive; //GlobalDocMode// global view for GlobalDoc valid?
34 com::sun::star::uno::Sequence<OUString> GetPropertyNames();
36 public:
37 SwNavigationConfig();
38 ~SwNavigationConfig();
40 virtual void Commit();
41 virtual void Notify( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames );
43 sal_Int32 GetRootType()const {return nRootType;}
44 void SetRootType(sal_Int32 nSet){
45 if(nRootType != nSet)
47 SetModified();
48 nRootType = nSet;
52 sal_Int32 GetSelectedPos()const {return nSelectedPos;}
53 void SetSelectedPos(sal_Int32 nSet){
54 if(nSelectedPos != nSet)
56 SetModified();
57 nSelectedPos = nSet;
62 sal_Int32 GetOutlineLevel()const {return nOutlineLevel;}
63 void SetOutlineLevel(sal_Int32 nSet){
64 if(nOutlineLevel != nSet)
66 SetModified();
67 nOutlineLevel = nSet;
71 sal_Int32 GetRegionMode()const {return nRegionMode;}
72 void SetRegionMode(sal_Int32 nSet){
73 if(nRegionMode != nSet)
75 SetModified();
76 nRegionMode = nSet;
81 sal_Int32 GetActiveBlock()const {return nActiveBlock;}
82 void SetActiveBlock(sal_Int32 nSet){
83 if(nActiveBlock != nSet)
85 SetModified();
86 nActiveBlock = nSet;
90 sal_Bool IsSmall() const {return bIsSmall;}
91 void SetSmall(sal_Bool bSet){
92 if(bIsSmall != bSet)
94 SetModified();
95 bIsSmall = bSet;
99 sal_Bool IsGlobalActive() const {return bIsGlobalActive;}
100 void SetGlobalActive(sal_Bool bSet){
101 if(bIsGlobalActive != bSet)
103 SetModified();
104 bIsGlobalActive = bSet;
109 #endif
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */