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 _SVT_APEARCFG_HXX
20 #define _SVT_APEARCFG_HXX
22 #include "svtools/svtdllapi.h"
23 #include "tools/solar.h"
24 #include <unotools/configitem.hxx>
34 typedef enum { // MUST match the order chosen in ListBox LB_DRAG_MODE in optgdlg.src
41 class SVT_DLLPUBLIC SvtTabAppearanceCfg
: public utl::ConfigItem
48 short nAAMinPixelHeight
;
51 sal_Bool bMenuMouseFollow
;
53 sal_Bool bFontAntialiasing
;
56 static sal_Bool bInitialized
;
58 SVT_DLLPRIVATE
const com::sun::star::uno::Sequence
<OUString
>& GetPropertyNames();
61 SvtTabAppearanceCfg( );
62 ~SvtTabAppearanceCfg( );
64 virtual void Commit();
65 virtual void Notify( const com::sun::star::uno::Sequence
< OUString
>& _rPropertyNames
);
67 sal_uInt16
GetDragMode () const { return nDragMode
; }
69 sal_uInt16
GetScaleFactor () const { return nScaleFactor
; }
70 void SetScaleFactor ( sal_uInt16 nSet
);
72 sal_uInt16
GetSnapMode () const { return nSnapMode
; }
73 void SetSnapMode ( sal_uInt16 nSet
);
75 sal_uInt16
GetMiddleMouseButton () const { return nMiddleMouse
; }
76 void SetMiddleMouseButton ( sal_uInt16 nSet
);
78 void SetApplicationDefaults ( Application
* pApp
);
80 void SetMenuMouseFollow(sal_Bool bSet
) {bMenuMouseFollow
= bSet
; SetModified();}
81 sal_Bool
IsMenuMouseFollow() const{return bMenuMouseFollow
;}
84 void SetFontAntiAliasing( sal_Bool bSet
) { bFontAntialiasing
= bSet
; SetModified(); }
85 sal_Bool
IsFontAntiAliasing() const { return bFontAntialiasing
; }
87 sal_uInt16
GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight
; }
88 void SetFontAntialiasingMinPixelHeight( sal_uInt16 _nMinHeight
) { nAAMinPixelHeight
= _nMinHeight
; SetModified(); }
91 static sal_Bool
IsInitialized() { return bInitialized
; }
92 static void SetInitialized() { bInitialized
= sal_True
; }
95 #endif // _OFA_APEARCFG_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */