summaryrefslogtreecommitdiff
path: root/sw/source/core/text/redlnitr.cxx
diff options
context:
space:
mode:
authorAndreas Martens <ama@openoffice.org>2001-03-08 07:22:27 +0000
committerAndreas Martens <ama@openoffice.org>2001-03-08 07:22:27 +0000
commitb7d6c2e0356d0a19d9daebadaa9cb34335f9f746 (patch)
treed29a653bf5c53e1df36c153acbb20fb12a25cfd4 /sw/source/core/text/redlnitr.cxx
parentb2e2a5a2dd3a6c42520f644a3f493e6ff063e8af (diff)
Opt.(FME): cache for paragraph style
Diffstat (limited to 'sw/source/core/text/redlnitr.cxx')
-rw-r--r--sw/source/core/text/redlnitr.cxx19
1 files changed, 5 insertions, 14 deletions
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index f91203bc879c..1ea5e8ccda42 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: redlnitr.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: ama $ $Date: 2001-03-06 16:24:09 $
+ * last change: $Author: ama $ $Date: 2001-03-08 08:22:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -158,17 +158,11 @@ void SwAttrIter::CtorInit( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf )
pAttrSet = &rTxtNode.GetSwAttrSet();
pHints = rTxtNode.GetpSwpHints();
-#ifndef OLD_ATTR_HANDLING
- // init of attribute stack with current default attributes
- aAttrHandler.Init( *pAttrSet );
-#endif
-
delete pFnt;
if ( rTxtNode.HasSwAttrSet() )
{
- // Hier wird noch ein weiterer Cache eingebaut werden,
- // der ueber ein paar SfxItemSets sucht.
#ifndef OLD_ATTR_HANDLING
+ aAttrHandler.Init( *pAttrSet );
pFnt = new SwFont( aAttrHandler );
#else
pFnt = new SwFont( pAttrSet );
@@ -180,6 +174,7 @@ void SwAttrIter::CtorInit( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf )
// SwFontAccess aFontAccess( rTxtNode.GetFmtColl() );
SwFontAccess aFontAccess( &rTxtNode.GetAnyFmtColl(), pShell );
//FEATURE::CONDCOLL
+ aAttrHandler.Init( aFontAccess.Get()->GetDefault() );
pFnt = new SwFont( *aFontAccess.Get()->GetFont() );
}
@@ -364,12 +359,8 @@ short SwRedlineItr::_Seek( SwFont& rFnt, xub_StrLen nNew, xub_StrLen nOld )
{
short nRet = 0;
if( ExtOn() )
- {
- if( !LeaveExtend( rFnt, nNew ) )
- return 0; // Abkuerzung: wenn wir innerhalb eines ExtendTextInputs sind
+ return 0; // Abkuerzung: wenn wir innerhalb eines ExtendTextInputs sind
// kann es keine anderen Attributwechsel (auch nicht durch Redlining) geben
- ++nRet;
- }
if( bShow )
{
if( bOn )