summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-02-02 14:39:32 +0000
committerThomas Lange <tl@openoffice.org>2001-02-02 14:39:32 +0000
commitedb52d23b0cd1b6c3be85cdbfd6bf91fb93036e4 (patch)
treed879bb53c9a96b0ab35f537146904ff86e0dbf13 /linguistic
parent13a31e1348d82952cfe65aa1169c19bdfb7f885a (diff)
Get/SetCfgActiveDictionaries removed; GetActiveDics added
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngopt.cxx31
-rw-r--r--linguistic/source/lngopt.hxx9
2 files changed, 5 insertions, 35 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index 775465e4c960..f3f1ffbce46b 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: lngopt.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: tl $ $Date: 2001-02-02 11:13:22 $
+ * last change: $Author: tl $ $Date: 2001-02-02 15:39:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -372,33 +372,6 @@ OUString LinguOptions::GetName( INT32 nWID ) const
}
-void LinguOptions::SetCfgActiveDictionaries(
- Reference< XDictionaryList > &rDicList )
-{
- if (rDicList.is())
- {
- Sequence< Reference< XDictionary > > aDics( rDicList->getDictionaries() );
- const Reference< XDictionary > *pDic = aDics.getConstArray();
- INT32 nCount = aDics.getLength();
-
- pData->aActiveDics.realloc( nCount );
- OUString *pActiveDic = pData->aActiveDics.getArray();
- INT32 nLen = 0;
- for (INT32 i = 0; i < nCount; ++i)
- {
- const Reference< XDictionary > &rDic = pDic[i];
- if (rDic.is() && rDic->isActive())
- {
- pActiveDic[ nLen++ ] = rDic->getName();
- }
- }
- pData->aActiveDics.realloc( nLen );
-
-// pData->SetModified();
- }
-}
-
-
///////////////////////////////////////////////////////////////////////////
//! map must be sorted by first entry in alphabetical increasing order.
diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx
index bb27ae37c1a2..bc4b61bb0dfc 100644
--- a/linguistic/source/lngopt.hxx
+++ b/linguistic/source/lngopt.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: lngopt.hxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: tl $ $Date: 2001-02-02 11:18:44 $
+ * last change: $Author: tl $ $Date: 2001-02-02 15:39:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -149,10 +149,7 @@ public:
BOOL IsSpellInAllLanguages() const { return pData->bIsSpellInAllLanguages; }
const ::com::sun::star::uno::Sequence< rtl::OUString >
- GetCfgActiveDictionaries() const { return pData->aActiveDics; }
- void SetCfgActiveDictionaries(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::linguistic2::XDictionaryList > &rDicList );
+ GetActiveDics() const { return pData->aActiveDics; }
// OtherLingu functions
INT16 GetOtherIndex() const { return pData->nOtherIndex; }