diff options
author | Oliver Specht <os@openoffice.org> | 2002-05-27 07:45:32 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-05-27 07:45:32 +0000 |
commit | d9271205f3bef14a02e09385e997beaa49f3052e (patch) | |
tree | 3de06a40c339dab7699af0c8657b6f5e26ed0229 /svtools/source/config | |
parent | 9615c51f354f25adca780900ca55ea6b8ed60e03 (diff) |
#99496# Style sheet for help system implemented
Diffstat (limited to 'svtools/source/config')
-rw-r--r-- | svtools/source/config/helpopt.cxx | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx index db81f1538117..1d93a0b1599a 100644 --- a/svtools/source/config/helpopt.cxx +++ b/svtools/source/config/helpopt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: helpopt.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: pb $ $Date: 2001-06-05 06:09:20 $ + * last change: $Author: os $ $Date: 2002-05-27 08:44:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -100,7 +100,7 @@ static sal_Int32 nRefCount = 0; #define AGENT_RETRYLIMIT 4 #define LOCALE 5 #define SYSTEM 6 -//#define WELCOMESCREEN 7 +#define STYLESHEET 7 class SvtHelpOptions_Impl : public utl::ConfigItem { @@ -113,6 +113,7 @@ class SvtHelpOptions_Impl : public utl::ConfigItem sal_Bool bWelcomeScreen; String aLocale; String aSystem; + String sHelpStyleSheet; DECLARE_STL_USTRINGACCESS_MAP( sal_Int32, MapString2Int ); MapString2Int aURLIgnoreCounters; @@ -149,6 +150,9 @@ public: String GetLocale() const { return aLocale; } String GetSystem() const { return aSystem; } + const String& GetHelpStyleSheet()const{return sHelpStyleSheet;} + void SetHelpStyleSheet(const String& rStyleSheet){sHelpStyleSheet = rStyleSheet; SetModified();} + protected: void implLoadURLCounters(); void implSaveURLCounters(); @@ -167,6 +171,7 @@ static Sequence< OUString > GetPropertyNames() "HelpAgent/RetryLimit", "Locale", "System", + "HelpStyleSheet", // "HowTo/Show" }; @@ -250,7 +255,9 @@ SvtHelpOptions_Impl::SvtHelpOptions_Impl() case SYSTEM: aSystem = aTmpStr; break; - + case STYLESHEET : + sHelpStyleSheet = aTmpStr; + break; default: DBG_ERRORFILE( "Wrong Member!" ); break; @@ -535,6 +542,10 @@ void SvtHelpOptions_Impl::Commit() case SYSTEM: pValues[nProp] <<= ::rtl::OUString(aSystem); break; + case STYLESHEET : + pValues[nProp] <<= ::rtl::OUString(sHelpStyleSheet); + break; + } } @@ -753,3 +764,13 @@ String SvtHelpOptions::GetSystem() const return pImp->GetSystem(); } +const String& SvtHelpOptions::GetHelpStyleSheet()const +{ + return pImp->GetHelpStyleSheet(); +} + +void SvtHelpOptions::SetHelpStyleSheet(const String& rStyleSheet) +{ + pImp->SetHelpStyleSheet(rStyleSheet); +} + |