fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svtools / accessibilityoptions.hxx
blobccaff7e48c655fe6620ae7d76f39d4ef7431320d
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_ACCESSIBILITYOPTIONS_HXX
20 #define INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
22 #include "svtools/svtdllapi.h"
23 #include <unotools/configitem.hxx>
24 #include <svl/brdcst.hxx>
25 #include <svl/lstner.hxx>
26 #include <unotools/options.hxx>
28 class SvtAccessibilityOptions_Impl;
30 class SVT_DLLPUBLIC SvtAccessibilityOptions:
31 public utl::detail::Options, private SfxListener
33 private:
34 static SvtAccessibilityOptions_Impl* sm_pSingleImplConfig;
35 static sal_Int32 sm_nAccessibilityRefCount;
37 public:
38 SvtAccessibilityOptions();
39 virtual ~SvtAccessibilityOptions();
41 // get & set config entries
42 sal_Bool GetIsForPagePreviews() const;
43 sal_Bool GetIsHelpTipsDisappear() const;
44 sal_Bool GetIsAllowAnimatedGraphics() const;
45 sal_Bool GetIsAllowAnimatedText() const;
46 sal_Bool GetIsAutomaticFontColor() const;
47 sal_Bool GetIsSystemFont() const;
48 sal_Int16 GetHelpTipSeconds() const;
49 sal_Bool IsSelectionInReadonly() const;
50 sal_Bool GetAutoDetectSystemHC() const;
52 // option to activate EdgeBlending for previews in the UI (ColorValueSet, ColorDropDown,
53 // FillStyle/LineStyle previews, etc...). 0 == off, 100% == full paint, in-between == alpha
54 sal_Int16 GetEdgeBlending() const;
56 // option to set a maximum line count for ListBoxes; when less or equal than this count
57 // is in a ListBox, all will be shown, else a ScrollBar will be used
58 sal_Int16 GetListBoxMaximumLineCount() const;
60 // option to set the width of ColorValueSets in columns; this allows
61 // adaption to own colr set layouts. The default layout is 12 columns and should
62 // only be changed when the color palette is changed from the default
63 sal_Int16 GetColorValueSetColumnCount() const;
65 void SetIsForPagePreviews(sal_Bool bSet);
66 void SetIsHelpTipsDisappear(sal_Bool bSet);
67 void SetIsAllowAnimatedGraphics(sal_Bool bSet);
68 void SetIsAllowAnimatedText(sal_Bool bSet);
69 void SetIsAutomaticFontColor(sal_Bool bSet);
70 void SetIsSystemFont(sal_Bool bSet);
71 void SetHelpTipSeconds(sal_Int16 nSet);
72 void SetSelectionInReadonly(sal_Bool bSet);
73 void SetAutoDetectSystemHC(sal_Bool bSet);
75 void SetEdgeBlending(sal_Int16 nSet);
76 void SetListBoxMaximumLineCount(sal_Int16 nSet);
77 void SetColorValueSetColumnCount(sal_Int16 nSet);
79 sal_Bool IsModified() const;
80 void Commit();
82 //SfxListener:
83 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
84 void SetVCLSettings();
87 #endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */