Files
libreoffice/svtools/source/config/accessibilityoptions.cxx

697 lines
21 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patch contributed by: Jurgen Schmidt remove onlineregistration with dependencies http://svn.apache.org/viewvc?view=revision&revision=1240245 imported patch package_eventlistener.patch http://svn.apache.org/viewvc?view=revision&revision=1172103 Patch contributed by Pedro Giffuni Accept Google Chrome OS fonts as equivalent to MS fonts. http://svn.apache.org/viewvc?view=revision&revision=1233155 http://svn.apache.org/viewvc?view=revision&revision=1233408 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i114600#: remove forbidden characters from list of unencoded characters http://svn.apache.org/viewvc?view=revision&revision=1172370 Patches contributed by Oliver Rainer-Wittman some clean up in JPEGReader due to memory constraints http://svn.apache.org/viewvc?view=revision&revision=1299729 119114 - method <UpdateDialog::addSpecificError(..)> - create entry with correct type http://svn.apache.org/viewvc?view=revision&revision=1305265 Patches contributed by Ariel Constenla-Haile i118707 - make toolbar control's popup window grab focus http://svn.apache.org/viewvc?view=revision&revision=1225846 Patches contributed by Herbert Duerr #i118662# remove usage of BerkeleyDB in desktop module http://svn.apache.org/viewvc?view=revision&revision=1213171 minor cleanups in dp_persmap.* http://svn.apache.org/viewvc?view=revision&revision=1215064 flush early to prevent problem with extension manager not cleaning up its objects http://svn.apache.org/viewvc?view=revision&revision=1228147 i118726 do not flush *pmap file while reading it http://svn.apache.org/viewvc?view=revision&revision=1230614 #i119048# migrate BDB extension entries using a simple heuristic http://svn.apache.org/viewvc?view=revision&revision=1300972 #i119048# handle edge cases when importing BDB hash files http://svn.apache.org/viewvc?view=revision&revision=1301428 #i119113# fix of-by-one when importing BDB files http://svn.apache.org/viewvc?view=revision&revision=1305420 restore our encryption settings, icon themes, and dictionaries. removed wrapper hacks, kill obsolete bundled extension blob / pre-registration handling, remove duplicated quickstart code. remove OS/2 conditionals.
2012-11-15 17:28:16 +00:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <svtools/accessibilityoptions.hxx>
#include <unotools/configmgr.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <svl/smplhint.hxx>
#include <svtools/colorcfg.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <rtl/instance.hxx>
#include "itemholder2.hxx"
using namespace utl;
using namespace com::sun::star::uno;
2011-02-27 17:05:28 +01:00
#define HELP_TIP_TIMEOUT 0xffff // max. timeout setting to pretend a non-timeout
namespace
{
2012-03-23 21:20:04 +00:00
const char s_sAccessibility[] = "org.openoffice.Office.Common/Accessibility";
const char s_sAutoDetectSystemHC[] = "AutoDetectSystemHC";
const char s_sIsForPagePreviews[] = "IsForPagePreviews";
const char s_sIsHelpTipsDisappear[] = "IsHelpTipsDisappear";
const char s_sHelpTipSeconds[] = "HelpTipSeconds";
const char s_sIsAllowAnimatedGraphics[] = "IsAllowAnimatedGraphics";
const char s_sIsAllowAnimatedText[] = "IsAllowAnimatedText";
const char s_sIsAutomaticFontColor[] = "IsAutomaticFontColor";
const char s_sIsSelectionInReadonly[] = "IsSelectionInReadonly";
const char s_sColorValueSetColumnCount[] = "ColorValueSetColumnCount";
const char s_sEdgeBlending[] = "EdgeBlending";
const char s_sListBoxMaximumLineCount[] = "ListBoxMaximumLineCount";
const char s_sPreviewUsesCheckeredBackground[] = "PreviewUsesCheckeredBackground";
}
// class SvtAccessibilityOptions_Impl ---------------------------------------------
class SvtAccessibilityOptions_Impl
{
private:
css::uno::Reference< css::container::XNameAccess > m_xCfg;
bool bIsModified;
public:
SvtAccessibilityOptions_Impl();
~SvtAccessibilityOptions_Impl();
void SetVCLSettings();
bool GetAutoDetectSystemHC();
bool GetIsForPagePreviews() const;
bool GetIsHelpTipsDisappear() const;
bool GetIsAllowAnimatedGraphics() const;
bool GetIsAllowAnimatedText() const;
bool GetIsAutomaticFontColor() const;
sal_Int16 GetHelpTipSeconds() const;
bool IsSelectionInReadonly() const;
sal_Int16 GetEdgeBlending() const;
sal_Int16 GetListBoxMaximumLineCount() const;
sal_Int16 GetColorValueSetColumnCount() const;
bool GetPreviewUsesCheckeredBackground() const;
void SetAutoDetectSystemHC(bool bSet);
void SetIsForPagePreviews(bool bSet);
void SetIsHelpTipsDisappear(bool bSet);
void SetIsAllowAnimatedGraphics(bool bSet);
void SetIsAllowAnimatedText(bool bSet);
void SetIsAutomaticFontColor(bool bSet);
void SetHelpTipSeconds(sal_Int16 nSet);
void SetSelectionInReadonly(bool bSet);
bool IsModified() const { return bIsModified; };
};
// initialization of static members --------------------------------------
2012-03-23 12:45:46 +00:00
SvtAccessibilityOptions_Impl* SvtAccessibilityOptions::sm_pSingleImplConfig =NULL;
sal_Int32 SvtAccessibilityOptions::sm_nAccessibilityRefCount(0);
namespace
{
struct SingletonMutex
: public rtl::Static< ::osl::Mutex, SingletonMutex > {};
}
// class SvtAccessibilityOptions_Impl ---------------------------------------------
SvtAccessibilityOptions_Impl::SvtAccessibilityOptions_Impl()
{
try
{
m_xCfg = css::uno::Reference< css::container::XNameAccess >(
::comphelper::ConfigurationHelper::openConfig(
comphelper::getProcessComponentContext(),
s_sAccessibility,
::comphelper::ConfigurationHelper::E_STANDARD),
css::uno::UNO_QUERY);
bIsModified = false;
}
catch(const css::uno::Exception& ex)
{
m_xCfg.clear();
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
SvtAccessibilityOptions_Impl::~SvtAccessibilityOptions_Impl()
{
}
bool SvtAccessibilityOptions_Impl::GetAutoDetectSystemHC()
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = true;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sAutoDetectSystemHC) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
bool SvtAccessibilityOptions_Impl::GetIsForPagePreviews() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = true;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sIsForPagePreviews) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
bool SvtAccessibilityOptions_Impl::GetIsHelpTipsDisappear() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = true;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sIsHelpTipsDisappear) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedGraphics() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = true;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sIsAllowAnimatedGraphics) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedText() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = true;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sIsAllowAnimatedText) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
bool SvtAccessibilityOptions_Impl::GetIsAutomaticFontColor() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = false;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sIsAutomaticFontColor) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
sal_Int16 SvtAccessibilityOptions_Impl::GetHelpTipSeconds() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
sal_Int16 nRet = 4;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sHelpTipSeconds) >>= nRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return nRet;
}
bool SvtAccessibilityOptions_Impl::IsSelectionInReadonly() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = false;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sIsSelectionInReadonly) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
return bRet;
}
sal_Int16 SvtAccessibilityOptions_Impl::GetEdgeBlending() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
sal_Int16 nRet = 35;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sEdgeBlending) >>= nRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools", "Caught unexpected: " << ex.Message);
}
return nRet;
}
sal_Int16 SvtAccessibilityOptions_Impl::GetListBoxMaximumLineCount() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
sal_Int16 nRet = 25;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sListBoxMaximumLineCount) >>= nRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools", "Caught unexpected: " << ex.Message);
}
return nRet;
}
sal_Int16 SvtAccessibilityOptions_Impl::GetColorValueSetColumnCount() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
sal_Int16 nRet = 12;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sColorValueSetColumnCount) >>= nRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools", "Caught unexpected: " << ex.Message);
}
return nRet;
}
bool SvtAccessibilityOptions_Impl::GetPreviewUsesCheckeredBackground() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
bool bRet = false;
try
{
if(xNode.is())
xNode->getPropertyValue(s_sPreviewUsesCheckeredBackground) >>= bRet;
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools", "Caught unexpected: " << ex.Message);
}
return bRet;
}
void SvtAccessibilityOptions_Impl::SetAutoDetectSystemHC(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sAutoDetectSystemHC)!=bSet)
{
xNode->setPropertyValue(s_sAutoDetectSystemHC, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
svtools::ColorConfig().Reload();
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetIsForPagePreviews(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sIsForPagePreviews)!=bSet)
{
xNode->setPropertyValue(s_sIsForPagePreviews, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetIsHelpTipsDisappear(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sIsHelpTipsDisappear)!=bSet)
{
xNode->setPropertyValue(s_sIsHelpTipsDisappear, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetIsAllowAnimatedGraphics(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sIsAllowAnimatedGraphics)!=bSet)
{
xNode->setPropertyValue(s_sIsAllowAnimatedGraphics, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetIsAllowAnimatedText(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sIsAllowAnimatedText)!=bSet)
{
xNode->setPropertyValue(s_sIsAllowAnimatedText, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetIsAutomaticFontColor(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sIsAutomaticFontColor)!=bSet)
{
xNode->setPropertyValue(s_sIsAutomaticFontColor, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetHelpTipSeconds(sal_Int16 nSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sHelpTipSeconds)!=nSet)
{
xNode->setPropertyValue(s_sHelpTipSeconds, css::uno::makeAny(nSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetSelectionInReadonly(bool bSet)
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
try
{
if(xNode.is() && xNode->getPropertyValue(s_sIsSelectionInReadonly)!=bSet)
{
xNode->setPropertyValue(s_sIsSelectionInReadonly, css::uno::makeAny(bSet));
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsModified = true;
}
}
catch(const css::uno::Exception& ex)
{
SAL_WARN("svtools.config", "Caught unexpected: " << ex.Message);
}
}
void SvtAccessibilityOptions_Impl::SetVCLSettings()
{
AllSettings aAllSettings(Application::GetSettings());
StyleSettings aStyleSettings(aAllSettings.GetStyleSettings());
HelpSettings aHelpSettings(aAllSettings.GetHelpSettings());
bool StyleSettingsChanged(false);
aHelpSettings.SetTipTimeout( GetIsHelpTipsDisappear() ? GetHelpTipSeconds() * 1000 : HELP_TIP_TIMEOUT);
aAllSettings.SetHelpSettings(aHelpSettings);
const sal_Int16 nEdgeBlendingCountA(GetEdgeBlending());
OSL_ENSURE(nEdgeBlendingCountA >= 0, "OOps, negative values for EdgeBlending are not allowed (!)");
const sal_uInt16 nEdgeBlendingCountB(static_cast< sal_uInt16 >(nEdgeBlendingCountA >= 0 ? nEdgeBlendingCountA : 0));
if(aStyleSettings.GetEdgeBlending() != nEdgeBlendingCountB)
{
aStyleSettings.SetEdgeBlending(nEdgeBlendingCountB);
StyleSettingsChanged = true;
}
const sal_Int16 nMaxLineCountA(GetListBoxMaximumLineCount());
OSL_ENSURE(nMaxLineCountA >= 0, "OOps, negative values for ListBoxMaximumLineCount are not allowed (!)");
const sal_uInt16 nMaxLineCountB(static_cast< sal_uInt16 >(nMaxLineCountA >= 0 ? nMaxLineCountA : 0));
if(aStyleSettings.GetListBoxMaximumLineCount() != nMaxLineCountB)
{
aStyleSettings.SetListBoxMaximumLineCount(nMaxLineCountB);
StyleSettingsChanged = true;
}
const sal_Int16 nMaxColumnCountA(GetColorValueSetColumnCount());
OSL_ENSURE(nMaxColumnCountA >= 0, "OOps, negative values for ColorValueSetColumnCount are not allowed (!)");
const sal_uInt16 nMaxColumnCountB(static_cast< sal_uInt16 >(nMaxColumnCountA >= 0 ? nMaxColumnCountA : 0));
if(aStyleSettings.GetColorValueSetColumnCount() != nMaxColumnCountB)
{
aStyleSettings.SetColorValueSetColumnCount(nMaxColumnCountB);
StyleSettingsChanged = true;
}
const bool bPreviewUsesCheckeredBackground(GetPreviewUsesCheckeredBackground());
if(aStyleSettings.GetPreviewUsesCheckeredBackground() != bPreviewUsesCheckeredBackground)
{
aStyleSettings.SetPreviewUsesCheckeredBackground(bPreviewUsesCheckeredBackground);
StyleSettingsChanged = true;
}
if(StyleSettingsChanged)
{
aAllSettings.SetStyleSettings(aStyleSettings);
Application::MergeSystemSettings(aAllSettings);
}
Application::SetSettings(aAllSettings);
}
// class SvtAccessibilityOptions --------------------------------------------------
SvtAccessibilityOptions::SvtAccessibilityOptions()
{
{
::osl::MutexGuard aGuard( SingletonMutex::get() );
if(!sm_pSingleImplConfig)
{
sm_pSingleImplConfig = new SvtAccessibilityOptions_Impl;
svtools::ItemHolder2::holdConfigItem(E_ACCESSIBILITYOPTIONS);
}
++sm_nAccessibilityRefCount;
}
//StartListening( *sm_pSingleImplConfig, sal_True );
}
SvtAccessibilityOptions::~SvtAccessibilityOptions()
{
//EndListening( *sm_pSingleImplConfig, sal_True );
::osl::MutexGuard aGuard( SingletonMutex::get() );
if( !--sm_nAccessibilityRefCount )
{
//if( sm_pSingleImplConfig->IsModified() )
// sm_pSingleImplConfig->Commit();
DELETEZ( sm_pSingleImplConfig );
}
}
void SvtAccessibilityOptions::Notify( SfxBroadcaster&, const SfxHint& rHint )
{
NotifyListeners(0);
const SfxSimpleHint* pSfxSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint);
if ( pSfxSimpleHint )
{
if ( pSfxSimpleHint->GetId() == SFX_HINT_ACCESSIBILITY_CHANGED )
SetVCLSettings();
}
}
bool SvtAccessibilityOptions::IsModified() const
{
return sm_pSingleImplConfig->IsModified();
}
bool SvtAccessibilityOptions::GetAutoDetectSystemHC() const
{
return sm_pSingleImplConfig->GetAutoDetectSystemHC();
}
bool SvtAccessibilityOptions::GetIsForPagePreviews() const
{
return sm_pSingleImplConfig->GetIsForPagePreviews();
}
bool SvtAccessibilityOptions::GetIsHelpTipsDisappear() const
{
return sm_pSingleImplConfig->GetIsHelpTipsDisappear();
}
bool SvtAccessibilityOptions::GetIsAllowAnimatedGraphics() const
{
return sm_pSingleImplConfig->GetIsAllowAnimatedGraphics();
}
bool SvtAccessibilityOptions::GetIsAllowAnimatedText() const
{
return sm_pSingleImplConfig->GetIsAllowAnimatedText();
}
bool SvtAccessibilityOptions::GetIsAutomaticFontColor() const
{
return sm_pSingleImplConfig->GetIsAutomaticFontColor();
}
sal_Int16 SvtAccessibilityOptions::GetHelpTipSeconds() const
{
return sm_pSingleImplConfig->GetHelpTipSeconds();
}
bool SvtAccessibilityOptions::IsSelectionInReadonly() const
{
return sm_pSingleImplConfig->IsSelectionInReadonly();
}
void SvtAccessibilityOptions::SetAutoDetectSystemHC(bool bSet)
{
sm_pSingleImplConfig->SetAutoDetectSystemHC(bSet);
}
void SvtAccessibilityOptions::SetIsForPagePreviews(bool bSet)
{
sm_pSingleImplConfig->SetIsForPagePreviews(bSet);
}
void SvtAccessibilityOptions::SetIsHelpTipsDisappear(bool bSet)
{
sm_pSingleImplConfig->SetIsHelpTipsDisappear(bSet);
}
void SvtAccessibilityOptions::SetIsAllowAnimatedGraphics(bool bSet)
{
sm_pSingleImplConfig->SetIsAllowAnimatedGraphics(bSet);
}
void SvtAccessibilityOptions::SetIsAllowAnimatedText(bool bSet)
{
sm_pSingleImplConfig->SetIsAllowAnimatedText(bSet);
}
void SvtAccessibilityOptions::SetIsAutomaticFontColor(bool bSet)
{
sm_pSingleImplConfig->SetIsAutomaticFontColor(bSet);
}
void SvtAccessibilityOptions::SetHelpTipSeconds(sal_Int16 nSet)
{
sm_pSingleImplConfig->SetHelpTipSeconds(nSet);
}
void SvtAccessibilityOptions::SetSelectionInReadonly(bool bSet)
{
sm_pSingleImplConfig->SetSelectionInReadonly(bSet);
}
void SvtAccessibilityOptions::SetVCLSettings()
{
sm_pSingleImplConfig->SetVCLSettings();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */