1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
;
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
){
56 sal_Int32
GetOutlineLevel()const {return nOutlineLevel
;}
57 void SetOutlineLevel(sal_Int32 nSet
){
58 if(nOutlineLevel
!= nSet
)
65 RegionMode
GetRegionMode()const {return nRegionMode
;}
66 void SetRegionMode(RegionMode nSet
){
67 if(nRegionMode
!= nSet
)
74 sal_Int32
GetActiveBlock()const {return nActiveBlock
;}
75 void SetActiveBlock(sal_Int32 nSet
){
76 if(nActiveBlock
!= nSet
)
83 bool IsSmall() const {return bIsSmall
;}
84 void SetSmall(bool bSet
){
92 bool IsGlobalActive() const {return bIsGlobalActive
;}
93 void SetGlobalActive(bool bSet
){
94 if(bIsGlobalActive
!= bSet
)
97 bIsGlobalActive
= bSet
;
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */