summaryrefslogtreecommitdiff
path: root/vcl/source/app/settings.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/app/settings.cxx')
-rw-r--r--vcl/source/app/settings.cxx20
1 files changed, 19 insertions, 1 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index e2841b8b4ed2..0490654461ae 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -228,6 +228,7 @@ struct ImplHelpData
sal_uLong mnTipDelay;
sal_uLong mnTipTimeout;
sal_uLong mnBalloonDelay;
+ OUString msHelpURL;
};
struct ImplAllSettingsData
@@ -2590,6 +2591,7 @@ ImplHelpData::ImplHelpData( const ImplHelpData& rData )
mnTipDelay = rData.mnTipDelay;
mnTipTimeout = rData.mnTipTimeout;
mnBalloonDelay = rData.mnBalloonDelay;
+ msHelpURL = rData.msHelpURL;
}
HelpSettings::HelpSettings()
@@ -2608,7 +2610,8 @@ bool HelpSettings::operator ==( const HelpSettings& rSet ) const
return (mxData->mnTipDelay == rSet.mxData->mnTipDelay ) &&
(mxData->mnTipTimeout == rSet.mxData->mnTipTimeout ) &&
- (mxData->mnBalloonDelay == rSet.mxData->mnBalloonDelay );
+ (mxData->mnBalloonDelay == rSet.mxData->mnBalloonDelay ) &&
+ (mxData->msHelpURL == rSet.mxData->msHelpURL);
}
sal_uLong
@@ -2639,6 +2642,21 @@ HelpSettings::GetBalloonDelay() const
return mxData->mnBalloonDelay;
}
+OUString
+HelpSettings::GetHelpURL() const
+{
+ return mxData->msHelpURL;
+}
+
+void HelpSettings::SetHelpURL(const OUString& rsHelpURL)
+{
+ // copy if other references exist
+ if ( ! mxData.unique() ) {
+ mxData = std::make_shared<ImplHelpData>(*mxData);
+ }
+ mxData->msHelpURL = rsHelpURL;
+}
+
bool
HelpSettings::operator !=( const HelpSettings& rSet ) const
{