summaryrefslogtreecommitdiff
path: root/svtools/source/config/languageoptions.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-22 08:03:44 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-22 08:03:44 +0000
commit0dd145a98af894b4899f751f3866b1dd4de34cda (patch)
treeb30c2afe85f9b53fc021ba1b4189bd59ef538ae0 /svtools/source/config/languageoptions.cxx
parentccff50335f01bb13c3488ce5c3d5fe718e886b1a (diff)
INTEGRATION: CWS os9 (1.3.34); FILE MERGED
2003/05/07 12:04:18 os 1.3.34.2: RESYNC: (1.3-1.4); FILE MERGED 2003/04/30 12:51:24 os 1.3.34.1: #109029# notification of CTL configuration changes implemented
Diffstat (limited to 'svtools/source/config/languageoptions.cxx')
-rw-r--r--svtools/source/config/languageoptions.cxx24
1 files changed, 20 insertions, 4 deletions
diff --git a/svtools/source/config/languageoptions.cxx b/svtools/source/config/languageoptions.cxx
index ec1233bdde54..6430f065fb06 100644
--- a/svtools/source/config/languageoptions.cxx
+++ b/svtools/source/config/languageoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: languageoptions.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2003-04-17 10:23:46 $
+ * last change: $Author: vg $ $Date: 2003-05-22 09:03:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,10 +65,10 @@
#include "languageoptions.hxx"
#endif
#ifndef _SVTOOLS_CJKOPTIONS_HXX
-#include "cjkoptions.hxx"
+#include <cjkoptions.hxx>
#endif
#ifndef _SVTOOLS_CTLOPTIONS_HXX
-#include "ctloptions.hxx"
+#include <ctloptions.hxx>
#endif
#ifndef _LANG_HXX
#include <tools/lang.hxx>
@@ -77,6 +77,12 @@
#include <vcl/svapp.hxx>
#endif
+#ifndef _VOS_MUTEX_HXX_
+#include <vos/mutex.hxx>
+#endif
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
#ifndef _OSL_MUTEX_HXX_
#include <osl/mutex.hxx>
#endif
@@ -94,6 +100,7 @@ SvtLanguageOptions::SvtLanguageOptions( sal_Bool _bDontLoad )
m_pCJKOptions = new SvtCJKOptions( _bDontLoad );
m_pCTLOptions = new SvtCTLOptions( _bDontLoad );
+ StartListening(*m_pCTLOptions);
}
//------------------------------------------------------------------------------
SvtLanguageOptions::~SvtLanguageOptions()
@@ -208,6 +215,15 @@ sal_Bool SvtLanguageOptions::IsReadOnly(SvtLanguageOptions::EOption eOption) con
}
return bReadOnly;
}
+/* -----------------30.04.2003 11:03-----------------
+
+ --------------------------------------------------*/
+void SvtLanguageOptions::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
+{
+ vos::OGuard aVclGuard( Application::GetSolarMutex() );
+ Broadcast( rHint );
+}
+
// -----------------------------------------------------------------------------
// returns for a language the scripttype
sal_uInt16 SvtLanguageOptions::GetScriptTypeOfLanguage( sal_uInt16 nLang )