diff options
author | Thomas Lange <tl@openoffice.org> | 2001-03-28 10:45:54 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-03-28 10:45:54 +0000 |
commit | 3934294c737710fd453aeeb0cb747d720d559fee (patch) | |
tree | 1f2bbb8e34d5209f966b7c1eb1f3d47b0fe5f98e /svx/source/dialog/langbox.cxx | |
parent | getAvailableLocales moved to new interface XAvailableLocales (diff) | |
download | core-3934294c737710fd453aeeb0cb747d720d559fee.tar.gz core-3934294c737710fd453aeeb0cb747d720d559fee.zip |
new XAvailableLocales interface used now to check for available Locales
Diffstat (limited to 'svx/source/dialog/langbox.cxx')
-rw-r--r-- | svx/source/dialog/langbox.cxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 6c0b79485004..163e5549866a 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: langbox.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: tl $ $Date: 2001-03-22 09:30:28 $ + * last change: $Author: tl $ $Date: 2001-03-28 11:45:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -64,6 +64,9 @@ #ifndef _COM_SUN_STAR_LINGUISTIC2_XLINGUSERVICEMANAGER_HDL_ #include <com/sun/star/linguistic2/XLinguServiceManager.hdl> #endif +#ifndef _COM_SUN_STAR_LINGUISTIC2_XAVAILABLELOCALES_HPP_ +#include <com/sun/star/linguistic2/XAvailableLocales.hpp> +#endif #ifndef _LINGUISTIC_MISC_HXX_ #include <linguistic/misc.hxx> #endif @@ -282,26 +285,24 @@ void SvxLanguageBox::SetLanguageList( INT16 nLangList, Sequence< INT16 > aSpellAvailLang; Sequence< INT16 > aHyphAvailLang; Sequence< INT16 > aThesAvailLang; - if (LinguMgr::GetLngSvcMgr().is()) + Reference< XAvailableLocales > xAvail( LinguMgr::GetLngSvcMgr(), UNO_QUERY ); + if (xAvail.is()) { Sequence< Locale > aTmp; if (LANG_LIST_SPELL_AVAIL & nLangList) { - aTmp = LinguMgr::GetLngSvcMgr() - ->getAvailableLocales( A2OU( SN_SPELLCHECKER ) ); + aTmp = xAvail->getAvailableLocales( A2OU( SN_SPELLCHECKER ) ); aSpellAvailLang = lcl_LocaleSeqToLangSeq( aTmp ); } if (LANG_LIST_HYPH_AVAIL & nLangList) { - aTmp = LinguMgr::GetLngSvcMgr() - ->getAvailableLocales( A2OU( SN_HYPHENATOR ) ); + aTmp = xAvail->getAvailableLocales( A2OU( SN_HYPHENATOR ) ); aHyphAvailLang = lcl_LocaleSeqToLangSeq( aTmp ); } if (LANG_LIST_THES_AVAIL & nLangList) { - aTmp = LinguMgr::GetLngSvcMgr() - ->getAvailableLocales( A2OU( SN_THESAURUS ) ); + aTmp = xAvail->getAvailableLocales( A2OU( SN_THESAURUS ) ); aThesAvailLang = lcl_LocaleSeqToLangSeq( aTmp ); } } |