From 6c415f735bbf9201a18288e2ea16eacad4d635cd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 22 Dec 2014 09:00:02 +0000 Subject: callcatcher: update unused code Change-Id: I62e49fbf27364bd244099a9bb247452d5a691119 --- svtools/source/config/accessibilityoptions.cxx | 54 -------------------------- 1 file changed, 54 deletions(-) (limited to 'svtools') diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx index 1ef43d1c05e4..89116db79f6f 100644 --- a/svtools/source/config/accessibilityoptions.cxx +++ b/svtools/source/config/accessibilityoptions.cxx @@ -81,7 +81,6 @@ public: bool GetIsAllowAnimatedGraphics() const; bool GetIsAllowAnimatedText() const; bool GetIsAutomaticFontColor() const; - bool GetIsSystemFont() const; sal_Int16 GetHelpTipSeconds() const; bool IsSelectionInReadonly() const; sal_Int16 GetEdgeBlending() const; @@ -95,7 +94,6 @@ public: void SetIsAllowAnimatedGraphics(bool bSet); void SetIsAllowAnimatedText(bool bSet); void SetIsAutomaticFontColor(bool bSet); - void SetIsSystemFont(bool bSet); void SetHelpTipSeconds(sal_Int16 nSet); void SetSelectionInReadonly(bool bSet); @@ -248,24 +246,6 @@ bool SvtAccessibilityOptions_Impl::GetIsAutomaticFontColor() const return bRet; } -bool SvtAccessibilityOptions_Impl::GetIsSystemFont() const -{ - css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY); - bool bRet = true; - - try - { - if(xNode.is()) - xNode->getPropertyValue(s_sIsSystemFont) >>= 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); @@ -494,26 +474,6 @@ void SvtAccessibilityOptions_Impl::SetIsAutomaticFontColor(bool bSet) } } -void SvtAccessibilityOptions_Impl::SetIsSystemFont(bool bSet) -{ - css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY); - - try - { - if(xNode.is() && xNode->getPropertyValue(s_sIsSystemFont)!=bSet) - { - xNode->setPropertyValue(s_sIsSystemFont, 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); @@ -564,12 +524,6 @@ void SvtAccessibilityOptions_Impl::SetVCLSettings() aHelpSettings.SetTipTimeout( GetIsHelpTipsDisappear() ? GetHelpTipSeconds() * 1000 : HELP_TIP_TIMEOUT); aAllSettings.SetHelpSettings(aHelpSettings); - if(aStyleSettings.GetUseSystemUIFonts() != GetIsSystemFont()) - { - aStyleSettings.SetUseSystemUIFonts(GetIsSystemFont()); - StyleSettingsChanged = true; - } - 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)); @@ -697,10 +651,6 @@ bool SvtAccessibilityOptions::GetIsAutomaticFontColor() const { return sm_pSingleImplConfig->GetIsAutomaticFontColor(); } -bool SvtAccessibilityOptions::GetIsSystemFont() const -{ - return sm_pSingleImplConfig->GetIsSystemFont(); -} sal_Int16 SvtAccessibilityOptions::GetHelpTipSeconds() const { return sm_pSingleImplConfig->GetHelpTipSeconds(); @@ -735,10 +685,6 @@ void SvtAccessibilityOptions::SetIsAutomaticFontColor(bool bSet) { sm_pSingleImplConfig->SetIsAutomaticFontColor(bSet); } -void SvtAccessibilityOptions::SetIsSystemFont(bool bSet) -{ - sm_pSingleImplConfig->SetIsSystemFont(bSet); -} void SvtAccessibilityOptions::SetHelpTipSeconds(sal_Int16 nSet) { sm_pSingleImplConfig->SetHelpTipSeconds(nSet); -- cgit