1*01aa44aaSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*01aa44aaSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*01aa44aaSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*01aa44aaSAndrew Rist  * distributed with this work for additional information
6*01aa44aaSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*01aa44aaSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*01aa44aaSAndrew Rist  * "License"); you may not use this file except in compliance
9*01aa44aaSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*01aa44aaSAndrew Rist  *
11*01aa44aaSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*01aa44aaSAndrew Rist  *
13*01aa44aaSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*01aa44aaSAndrew Rist  * software distributed under the License is distributed on an
15*01aa44aaSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*01aa44aaSAndrew Rist  * KIND, either express or implied.  See the License for the
17*01aa44aaSAndrew Rist  * specific language governing permissions and limitations
18*01aa44aaSAndrew Rist  * under the License.
19*01aa44aaSAndrew Rist  *
20*01aa44aaSAndrew Rist  *************************************************************/
21*01aa44aaSAndrew Rist 
22*01aa44aaSAndrew Rist 
23cdf0e10cSrcweir #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
24cdf0e10cSrcweir #define INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include "svtools/svtdllapi.h"
27cdf0e10cSrcweir #include <unotools/configitem.hxx>
28cdf0e10cSrcweir #include <tools/string.hxx>
29cdf0e10cSrcweir #include <svl/brdcst.hxx>
30cdf0e10cSrcweir #include <svl/lstner.hxx>
31cdf0e10cSrcweir #include <unotools/options.hxx>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class SvtAccessibilityOptions_Impl;
34cdf0e10cSrcweir 
35cdf0e10cSrcweir class SVT_DLLPUBLIC SvtAccessibilityOptions:
36cdf0e10cSrcweir     public utl::detail::Options, private SfxListener
37cdf0e10cSrcweir {
38cdf0e10cSrcweir private:
39cdf0e10cSrcweir 	static SvtAccessibilityOptions_Impl* volatile sm_pSingleImplConfig;
40cdf0e10cSrcweir 	static sal_Int32					 volatile sm_nAccessibilityRefCount;
41cdf0e10cSrcweir 
42cdf0e10cSrcweir public:
43cdf0e10cSrcweir 	SvtAccessibilityOptions();
44cdf0e10cSrcweir 	virtual ~SvtAccessibilityOptions();
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	// get & set config entries
47cdf0e10cSrcweir 	sal_Bool 	GetIsForDrawings() const;		// obsolete!
48cdf0e10cSrcweir     sal_Bool    GetIsForBorders() const;		// obsolete!
49cdf0e10cSrcweir     sal_Bool    GetIsForPagePreviews() const;
50cdf0e10cSrcweir 	sal_Bool 	GetIsHelpTipsDisappear() const;
51cdf0e10cSrcweir 	sal_Bool 	GetIsAllowAnimatedGraphics() const;
52cdf0e10cSrcweir 	sal_Bool 	GetIsAllowAnimatedText() const;
53cdf0e10cSrcweir 	sal_Bool 	GetIsAutomaticFontColor() const;
54cdf0e10cSrcweir 	sal_Bool 	GetIsSystemFont() const;
55cdf0e10cSrcweir 	sal_Int16	GetHelpTipSeconds() const;
56cdf0e10cSrcweir     sal_Bool    IsSelectionInReadonly() const;
57cdf0e10cSrcweir 	sal_Bool	GetAutoDetectSystemHC() const;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     void        SetIsForPagePreviews(sal_Bool bSet);
60cdf0e10cSrcweir 	void 		SetIsHelpTipsDisappear(sal_Bool bSet);
61cdf0e10cSrcweir 	void 		SetIsAllowAnimatedGraphics(sal_Bool bSet);
62cdf0e10cSrcweir 	void 		SetIsAllowAnimatedText(sal_Bool bSet);
63cdf0e10cSrcweir 	void 		SetIsAutomaticFontColor(sal_Bool bSet);
64cdf0e10cSrcweir 	void 		SetIsSystemFont(sal_Bool bSet);
65cdf0e10cSrcweir 	void		SetHelpTipSeconds(sal_Int16 nSet);
66cdf0e10cSrcweir     void        SetSelectionInReadonly(sal_Bool bSet);
67cdf0e10cSrcweir 	void        SetAutoDetectSystemHC(sal_Bool bSet);
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	sal_Bool                IsModified() const;
70cdf0e10cSrcweir 	void		            Commit();
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 	//SfxListener:
73cdf0e10cSrcweir 	virtual void		Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
74cdf0e10cSrcweir 	void 		SetVCLSettings();
75cdf0e10cSrcweir };
76cdf0e10cSrcweir 
77cdf0e10cSrcweir #endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
78cdf0e10cSrcweir 
79