nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / navicfg.hxx
bloba9b562493623835a9182816cd39e371e9c5038f3
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 INCLUDED_SW_SOURCE_UIBASE_INC_NAVICFG_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_NAVICFG_HXX
22 #include <unotools/configitem.hxx>
24 enum class RegionMode;
25 enum class ContentTypeId;
27 class SwNavigationConfig : public utl::ConfigItem
29 ContentTypeId nRootType; //RootType
30 sal_Int32 nSelectedPos; //SelectedPosition
31 sal_Int32 nOutlineLevel; //OutlineLevel
32 RegionMode nRegionMode; //InsertMode
33 sal_Int32 nActiveBlock; //ActiveBlock//Expand/CollapsState
34 bool bIsSmall; //ShowListBox
35 bool bIsGlobalActive; //GlobalDocMode// global view for GlobalDoc valid?
37 static css::uno::Sequence<OUString> GetPropertyNames();
39 virtual void ImplCommit() override;
41 public:
42 SwNavigationConfig();
43 virtual ~SwNavigationConfig() override;
45 virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override;
47 ContentTypeId GetRootType()const {return nRootType;}
48 void SetRootType(ContentTypeId nSet){
49 if(nRootType != nSet)
51 SetModified();
52 nRootType = nSet;
56 sal_Int32 GetOutlineLevel()const {return nOutlineLevel;}
57 void SetOutlineLevel(sal_Int32 nSet){
58 if(nOutlineLevel != nSet)
60 SetModified();
61 nOutlineLevel = nSet;
65 RegionMode GetRegionMode()const {return nRegionMode;}
66 void SetRegionMode(RegionMode nSet){
67 if(nRegionMode != nSet)
69 SetModified();
70 nRegionMode = nSet;
74 sal_Int32 GetActiveBlock()const {return nActiveBlock;}
75 void SetActiveBlock(sal_Int32 nSet){
76 if(nActiveBlock != nSet)
78 SetModified();
79 nActiveBlock = nSet;
83 bool IsSmall() const {return bIsSmall;}
84 void SetSmall(bool bSet){
85 if(bIsSmall != bSet)
87 SetModified();
88 bIsSmall = bSet;
92 bool IsGlobalActive() const {return bIsGlobalActive;}
93 void SetGlobalActive(bool bSet){
94 if(bIsGlobalActive != bSet)
96 SetModified();
97 bIsGlobalActive = bSet;
102 #endif
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */