summaryrefslogtreecommitdiff
path: root/svtools/source/config
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-05-22 11:19:16 +0000
committerFrank Schönheit <fs@openoffice.org>2001-05-22 11:19:16 +0000
commitfaafd40805fdc0f952443680b3854f30b6cd594d (patch)
treef97078e635d7186b764112bb2066d5a5b9cf0ffd /svtools/source/config
parent5d2cc11d7a10bb5d77e0bcd92dcdd259be9e2d44 (diff)
re-enabled Locale and System (commented them out by accident)
Diffstat (limited to 'svtools/source/config')
-rw-r--r--svtools/source/config/helpopt.cxx54
1 files changed, 31 insertions, 23 deletions
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx
index c5119ba57b2d..68e456427322 100644
--- a/svtools/source/config/helpopt.cxx
+++ b/svtools/source/config/helpopt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: helpopt.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: fs $ $Date: 2001-05-07 13:34:12 $
+ * last change: $Author: fs $ $Date: 2001-05-22 12:19:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -98,8 +98,8 @@ static sal_Int32 nRefCount = 0;
#define AGENT_ENABLED 2
#define AGENT_TIMEOUT 3
#define AGENT_RETRYLIMIT 4
-//#define LOCALE 5
-//#define SYSTEM 6
+#define LOCALE 5
+#define SYSTEM 6
//#define WELCOMESCREEN 7
class SvtHelpOptions_Impl : public utl::ConfigItem
@@ -164,8 +164,8 @@ static Sequence< OUString > GetPropertyNames()
"HelpAgent/Enabled",
"HelpAgent/Timeout",
"HelpAgent/RetryLimit",
-// "Locale",
-// "System",
+ "Locale",
+ "System",
// "HowTo/Show"
};
@@ -238,23 +238,23 @@ SvtHelpOptions_Impl::SvtHelpOptions_Impl()
break;
}
}
-// else if ( pValues[nProp] >>= aTmpStr )
-// {
-// switch ( nProp )
-// {
-// case LOCALE:
-// aLocale = aTmpStr;
-// break;
-//
-// case SYSTEM:
-// aSystem = aTmpStr;
-// break;
-//
-// default:
-// DBG_ERRORFILE( "Wrong Member!" );
-// break;
-// }
-// }
+ else if ( pValues[nProp] >>= aTmpStr )
+ {
+ switch ( nProp )
+ {
+ case LOCALE:
+ aLocale = aTmpStr;
+ break;
+
+ case SYSTEM:
+ aSystem = aTmpStr;
+ break;
+
+ default:
+ DBG_ERRORFILE( "Wrong Member!" );
+ break;
+ }
+ }
else if ( pValues[nProp] >>= nTmpInt )
{
switch ( nProp )
@@ -526,6 +526,14 @@ void SvtHelpOptions_Impl::Commit()
case AGENT_RETRYLIMIT:
pValues[nProp] <<= nHelpAgentRetryLimit;
break;
+
+ case LOCALE:
+ pValues[nProp] <<= ::rtl::OUString(aLocale);
+ break;
+
+ case SYSTEM:
+ pValues[nProp] <<= ::rtl::OUString(aSystem);
+ break;
}
}