Bug #85721#: set forbiddencharactertable also on the drawinglayer

This commit is contained in:
jp 2001-04-06 16:41:37 +00:00
parent 22f2a31ab7
commit 8110a58d37
2 changed files with 15 additions and 6 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: docnew.cxx,v $
*
* $Revision: 1.9 $
* $Revision: 1.10 $
*
* last change: $Author: jp $ $Date: 2001-04-05 14:37:15 $
* last change: $Author: jp $ $Date: 2001-04-06 17:41:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -865,7 +865,9 @@ void SwDoc::SetForbiddenCharacters( USHORT nLang,
xForbiddenCharsTable->SetForbiddenCharacters( nLang, rFChars );
if( pDrawModel )
{
// add missing code - set Forbidden character table at the SdrModel
pDrawModel->SetForbiddenCharsTable( xForbiddenCharsTable );
if( !bInReading )
pDrawModel->ReformatAllTextObjects();
}
if( pLayout && !bInReading )
@ -886,7 +888,9 @@ void SwDoc::ClearForbiddenCharacters( USHORT nLang )
if( pDrawModel )
{
// add missing code - set Forbidden character table at the SdrModel
pDrawModel->SetForbiddenCharsTable( xForbiddenCharsTable );
if( !bInReading )
pDrawModel->ReformatAllTextObjects();
}
if( pLayout && !bInReading )

View file

@ -2,9 +2,9 @@
*
* $RCSfile: drawdoc.cxx,v $
*
* $Revision: 1.8 $
* $Revision: 1.9 $
*
* last change: $Author: jp $ $Date: 2001-04-03 11:11:26 $
* last change: $Author: jp $ $Date: 2001-04-06 17:41:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -82,6 +82,9 @@
#ifndef _OFF_APP_HXX //autogen
#include <offmgr/app.hxx>
#endif
#ifndef _FORBIDDENCHARACTERSTABLE_HXX
#include <svx/forbiddencharacterstable.hxx>
#endif
#define ITEMID_COLOR_TABLE SID_COLOR_TABLE
#define ITEMID_GRADIENT_LIST SID_GRADIENT_LIST
@ -195,6 +198,8 @@ SwDrawDocument::SwDrawDocument( SwDoc* pD ) :
delete pCpy;
}
}
SetForbiddenCharsTable( pD->GetForbiddenCharacterTbl() );
}
/*************************************************************************