summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/config/accessibilityoptions.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx
index 98f5eb96a452..23c06d4a0d3a 100644
--- a/svtools/source/config/accessibilityoptions.cxx
+++ b/svtools/source/config/accessibilityoptions.cxx
@@ -65,6 +65,7 @@ public:
sal_Int16 GetListBoxMaximumLineCount() const;
sal_Int16 GetColorValueSetColumnCount() const;
bool GetPreviewUsesCheckeredBackground() const;
+ OUString GetHelpURL() const;
};
// initialization of static members --------------------------------------
@@ -134,6 +135,24 @@ bool SvtAccessibilityOptions_Impl::GetIsHelpTipsDisappear() const
return bRet;
}
+OUString SvtAccessibilityOptions_Impl::GetHelpURL() const
+{
+ css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
+ OUString sRet;
+
+ try
+ {
+ if(xNode.is())
+ xNode->getPropertyValue("HelpURL") >>= sRet;
+ }
+ catch(const css::uno::Exception& ex)
+ {
+ SAL_WARN("svtools.config", "Caught unexpected: " << ex);
+ }
+
+ return sRet;
+}
+
bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedGraphics() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
@@ -304,6 +323,7 @@ void SvtAccessibilityOptions_Impl::SetVCLSettings()
bool StyleSettingsChanged(false);
aHelpSettings.SetTipTimeout( GetIsHelpTipsDisappear() ? GetHelpTipSeconds() * 1000 : HELP_TIP_TIMEOUT);
+ aHelpSettings.SetHelpURL(GetHelpURL());
aAllSettings.SetHelpSettings(aHelpSettings);
const sal_Int16 nEdgeBlendingCountA(GetEdgeBlending());