bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / svtools / apearcfg.hxx
blob653dda7132d5e0ba8b2f3744feb0e77b14323f40
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_SVTOOLS_APEARCFG_HXX
20 #define INCLUDED_SVTOOLS_APEARCFG_HXX
22 #include <svtools/svtdllapi.h>
23 #include <unotools/configitem.hxx>
25 class Application;
26 enum class MouseMiddleButtonAction;
28 enum class SnapType {
29 ToButton = 0,
30 ToMiddle,
31 NONE
34 enum class DragMode {
35 FullWindow,
36 Frame,
37 SystemDep
41 class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
43 DragMode nDragMode ;
44 SnapType nSnapMode ;
45 MouseMiddleButtonAction nMiddleMouse;
46 #if defined( UNX )
47 short nAAMinPixelHeight ;
48 #endif
50 bool bMenuMouseFollow ;
51 #if defined( UNX )
52 bool bFontAntialiasing ;
53 #endif
55 static bool bInitialized ;
57 SVT_DLLPRIVATE static const css::uno::Sequence<OUString>& GetPropertyNames();
58 virtual void ImplCommit() override;
60 public:
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;}
78 #if defined( UNX )
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(); }
84 #endif
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: */