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_SVTOOLS_APEARCFG_HXX
20 #define INCLUDED_SVTOOLS_APEARCFG_HXX
22 #include <svtools/svtdllapi.h>
23 #include <unotools/configitem.hxx>
26 enum class MouseMiddleButtonAction
;
41 class SVT_DLLPUBLIC SvtTabAppearanceCfg
: public utl::ConfigItem
45 MouseMiddleButtonAction nMiddleMouse
;
47 short nAAMinPixelHeight
;
50 bool bMenuMouseFollow
;
52 bool bFontAntialiasing
;
55 static bool bInitialized
;
57 SVT_DLLPRIVATE
static const css::uno::Sequence
<OUString
>& GetPropertyNames();
58 virtual void ImplCommit() override
;
61 SvtTabAppearanceCfg( );
62 virtual ~SvtTabAppearanceCfg( ) override
;
64 virtual void Notify( const css::uno::Sequence
< OUString
>& _rPropertyNames
) override
;
66 DragMode
GetDragMode () const { return nDragMode
; }
68 SnapType
GetSnapMode () const { return nSnapMode
; }
69 void SetSnapMode ( SnapType nSet
);
71 MouseMiddleButtonAction
GetMiddleMouseButton () const { return nMiddleMouse
; }
72 void SetMiddleMouseButton ( MouseMiddleButtonAction nSet
);
74 void SetApplicationDefaults ( Application
* pApp
);
76 bool IsMenuMouseFollow() const{return bMenuMouseFollow
;}
79 void SetFontAntiAliasing( bool bSet
) { bFontAntialiasing
= bSet
; SetModified(); }
80 bool IsFontAntiAliasing() const { return bFontAntialiasing
; }
82 sal_uInt16
GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight
; }
83 void SetFontAntialiasingMinPixelHeight( sal_uInt16 _nMinHeight
) { nAAMinPixelHeight
= _nMinHeight
; SetModified(); }
86 static bool IsInitialized() { return bInitialized
; }
87 static void SetInitialized() { bInitialized
= true; }
90 #endif // _OFA_APEARCFG_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */