#80600# some debug code
This commit is contained in:
parent
94a8e9ac5a
commit
e25de80d1e
1 changed files with 22 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue