From e25de80d1ed322d51f8aea6d4517c78f6b0f995e Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 29 Nov 2000 15:09:32 +0000 Subject: #80600# some debug code --- linguistic/source/lngopt.cxx | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'linguistic') 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 ); -- cgit