summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-06-14 07:47:32 +0000
committerThomas Lange <tl@openoffice.org>2001-06-14 07:47:32 +0000
commit4308e232560cf5e6c744f745972136aee7cd98ed (patch)
treef182a1ed73764f9b79073011a2bfa8d8e570a63a /svx
parent481a34858004fe754073bd0a8dcfae82f72f6051 (diff)
#87831# SvxEditModules Dialog now lists only entries that support the currently selected language
Diffstat (limited to 'svx')
-rw-r--r--svx/source/options/optlingu.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/svx/source/options/optlingu.cxx b/svx/source/options/optlingu.cxx
index 2c766a4ea560..101b43634962 100644
--- a/svx/source/options/optlingu.cxx
+++ b/svx/source/options/optlingu.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: optlingu.cxx,v $
*
- * $Revision: 1.29 $
+ * $Revision: 1.30 $
*
- * last change: $Author: tl $ $Date: 2001-06-11 11:43:22 $
+ * last change: $Author: tl $ $Date: 2001-06-14 08:47:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2144,8 +2144,10 @@ IMPL_LINK( SvxEditModulesDlg, LangSelectHdl_Impl, ListBox *, pBox )
for (n = 0; n < nDispSrvcCount; ++n)
{
pInfo = rAllDispSrvcArr.Get(n);
+ BOOL bIsSuppLang = pInfo->xSpell.is() &&
+ pInfo->xSpell->hasLocale( aCurLocale );
const OUString &rImplName = pInfo->sSpellImplName;
- if (rImplName.getLength())
+ if (rImplName.getLength() && bIsSuppLang)
{
String aTxt( pInfo->sDisplayName );
SvLBoxEntry* pEntry = CreateEntry( aTxt, CBCOL_FIRST );
@@ -2173,8 +2175,10 @@ IMPL_LINK( SvxEditModulesDlg, LangSelectHdl_Impl, ListBox *, pBox )
for (n = 0; n < nDispSrvcCount; ++n)
{
pInfo = rAllDispSrvcArr.Get(n);
+ BOOL bIsSuppLang = pInfo->xHyph.is() &&
+ pInfo->xHyph->hasLocale( aCurLocale );
const OUString &rImplName = pInfo->sHyphImplName;
- if (rImplName.getLength())
+ if (rImplName.getLength() && bIsSuppLang)
{
String aTxt( pInfo->sDisplayName );
SvLBoxEntry* pEntry = CreateEntry( aTxt, CBCOL_FIRST );
@@ -2202,8 +2206,10 @@ IMPL_LINK( SvxEditModulesDlg, LangSelectHdl_Impl, ListBox *, pBox )
for (n = 0; n < nDispSrvcCount; ++n)
{
pInfo = rAllDispSrvcArr.Get(n);
+ BOOL bIsSuppLang = pInfo->xThes.is() &&
+ pInfo->xThes->hasLocale( aCurLocale );
const OUString &rImplName = pInfo->sThesImplName;
- if (rImplName.getLength())
+ if (rImplName.getLength() && bIsSuppLang)
{
String aTxt( pInfo->sDisplayName );
SvLBoxEntry* pEntry = CreateEntry( aTxt, CBCOL_FIRST );