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 .
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();
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
){
52 sal_Int32
GetSelectedPos()const {return nSelectedPos
;}
53 void SetSelectedPos(sal_Int32 nSet
){
54 if(nSelectedPos
!= nSet
)
62 sal_Int32
GetOutlineLevel()const {return nOutlineLevel
;}
63 void SetOutlineLevel(sal_Int32 nSet
){
64 if(nOutlineLevel
!= nSet
)
71 sal_Int32
GetRegionMode()const {return nRegionMode
;}
72 void SetRegionMode(sal_Int32 nSet
){
73 if(nRegionMode
!= nSet
)
81 sal_Int32
GetActiveBlock()const {return nActiveBlock
;}
82 void SetActiveBlock(sal_Int32 nSet
){
83 if(nActiveBlock
!= nSet
)
90 sal_Bool
IsSmall() const {return bIsSmall
;}
91 void SetSmall(sal_Bool bSet
){
99 sal_Bool
IsGlobalActive() const {return bIsGlobalActive
;}
100 void SetGlobalActive(sal_Bool bSet
){
101 if(bIsGlobalActive
!= bSet
)
104 bIsGlobalActive
= bSet
;
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */