1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX 28 #define INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX 29 30 #include "svtools/svtdllapi.h" 31 #include <unotools/configitem.hxx> 32 #include <tools/string.hxx> 33 #include <svl/brdcst.hxx> 34 #include <svl/lstner.hxx> 35 #include <unotools/options.hxx> 36 37 class SvtAccessibilityOptions_Impl; 38 39 class SVT_DLLPUBLIC SvtAccessibilityOptions: 40 public utl::detail::Options, private SfxListener 41 { 42 private: 43 static SvtAccessibilityOptions_Impl* volatile sm_pSingleImplConfig; 44 static sal_Int32 volatile sm_nAccessibilityRefCount; 45 46 public: 47 SvtAccessibilityOptions(); 48 virtual ~SvtAccessibilityOptions(); 49 50 // get & set config entries 51 sal_Bool GetIsForDrawings() const; // obsolete! 52 sal_Bool GetIsForBorders() const; // obsolete! 53 sal_Bool GetIsForPagePreviews() const; 54 sal_Bool GetIsHelpTipsDisappear() const; 55 sal_Bool GetIsAllowAnimatedGraphics() const; 56 sal_Bool GetIsAllowAnimatedText() const; 57 sal_Bool GetIsAutomaticFontColor() const; 58 sal_Bool GetIsSystemFont() const; 59 sal_Int16 GetHelpTipSeconds() const; 60 sal_Bool IsSelectionInReadonly() const; 61 sal_Bool GetAutoDetectSystemHC() const; 62 63 void SetIsForPagePreviews(sal_Bool bSet); 64 void SetIsHelpTipsDisappear(sal_Bool bSet); 65 void SetIsAllowAnimatedGraphics(sal_Bool bSet); 66 void SetIsAllowAnimatedText(sal_Bool bSet); 67 void SetIsAutomaticFontColor(sal_Bool bSet); 68 void SetIsSystemFont(sal_Bool bSet); 69 void SetHelpTipSeconds(sal_Int16 nSet); 70 void SetSelectionInReadonly(sal_Bool bSet); 71 void SetAutoDetectSystemHC(sal_Bool bSet); 72 73 sal_Bool IsModified() const; 74 void Commit(); 75 76 //SfxListener: 77 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 78 void SetVCLSettings(); 79 }; 80 81 #endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX 82 83