Branch libreoffice-5-0-4
[LibreOffice.git] / include / svtools / accessibilityoptions.hxx
blob017094cd6f636233c10bcc8a3b67e14fff9b7ad9
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/lstner.hxx>
25 #include <unotools/options.hxx>
27 class SvtAccessibilityOptions_Impl;
29 class SVT_DLLPUBLIC SvtAccessibilityOptions:
30 public utl::detail::Options, private SfxListener
32 private:
33 static SvtAccessibilityOptions_Impl* sm_pSingleImplConfig;
34 static sal_Int32 sm_nAccessibilityRefCount;
36 public:
37 SvtAccessibilityOptions();
38 virtual ~SvtAccessibilityOptions();
40 // get & set config entries
41 bool GetIsForPagePreviews() const;
42 bool GetIsHelpTipsDisappear() const;
43 bool GetIsAllowAnimatedGraphics() const;
44 bool GetIsAllowAnimatedText() const;
45 bool GetIsAutomaticFontColor() const;
46 sal_Int16 GetHelpTipSeconds() const;
47 bool IsSelectionInReadonly() const;
48 bool GetAutoDetectSystemHC() const;
50 void SetIsForPagePreviews(bool bSet);
51 void SetIsHelpTipsDisappear(bool bSet);
52 void SetIsAllowAnimatedGraphics(bool bSet);
53 void SetIsAllowAnimatedText(bool bSet);
54 void SetIsAutomaticFontColor(bool bSet);
55 void SetHelpTipSeconds(sal_Int16 nSet);
56 void SetSelectionInReadonly(bool bSet);
57 void SetAutoDetectSystemHC(bool bSet);
59 bool IsModified() const;
61 //SfxListener:
62 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
63 void SetVCLSettings();
66 #endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */