diff options
author | Thomas Lange <tl@openoffice.org> | 2000-11-29 15:09:32 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2000-11-29 15:09:32 +0000 |
commit | e25de80d1ed322d51f8aea6d4517c78f6b0f995e (patch) | |
tree | fa6055d58ae22d7f7126e51ae2e53d773f032e5a /linguistic | |
parent | 94a8e9ac5aa43fc510e5be0f34b40486b108bc10 (diff) |
#80600# some debug code
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index e683fe239088..9240416d99bf 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: lngopt.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: os $ $Date: 2000-11-28 12:21:19 $ + * last change: $Author: tl $ $Date: 2000-11-29 16:09:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -283,6 +283,14 @@ BOOL LinguOptionsData::LoadConfig() { BOOL bRes = FALSE; +#ifdef DEBUG + //! workaround for bug in configuration of 614 a + { + LinguOptConfig aCfg( rtl::OUString::createFromAscii( "Office.Linguistic" ) ); + aCfg.GetNodeNames(OUString::createFromAscii( "")); + } +#endif + for( INT16 nCfgItem = 0; nCfgItem < 4; ++nCfgItem ) { LinguOptConfig aCfg( String::CreateFromAscii( aRootNames[ nCfgItem ])); @@ -353,6 +361,13 @@ BOOL LinguOptionsData::SaveConfig() const Type &rBOOL = ::getBooleanCppuType(); const Type &rINT16 = ::getCppuType( (INT16 *) NULL ); +#ifdef DEBUG + //! workaround for bug in configuration of 614 a + { + LinguOptConfig aCfg( String::CreateFromAscii( "Office.Linguistic" ) ); + } +#endif + for( INT16 nCfgItem = 0; nCfgItem < 4; ++nCfgItem ) { LinguOptConfig aCfg( String::CreateFromAscii( aRootNames[ nCfgItem ])); @@ -708,7 +723,12 @@ void LinguOptions::SetCfgActiveDictionaries( { const Reference< XDictionary > &rDic = pDic[i]; if (rDic.is() && rDic->isActive()) + { pActiveDic[ nLen++ ] = rDic->getName(); +#ifdef DEBUG + OUString aDicName( rDic->getName() ); +#endif + } } pData->aActiveDics.realloc( nLen ); |