Kaydet (Commit) 0abe1929 authored tarafından Daniel Vogelheim's avatar Daniel Vogelheim

#103445# fixed last fix to work in insert/styles-only mode

üst 409c66b8
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: txtimp.cxx,v $ * $RCSfile: txtimp.cxx,v $
* *
* $Revision: 1.94 $ * $Revision: 1.95 $
* *
* last change: $Author: dvo $ $Date: 2002-09-18 18:07:31 $ * last change: $Author: dvo $ $Date: 2002-09-19 10:04:49 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1247,7 +1247,8 @@ void XMLTextImportHelper::SetOutlineStyle( ...@@ -1247,7 +1247,8 @@ void XMLTextImportHelper::SetOutlineStyle(
void XMLTextImportHelper::SetOutlineStyles() void XMLTextImportHelper::SetOutlineStyles()
{ {
if( pOutlineStyles && if( pOutlineStyles &&
xChapterNumbering.is() ) xChapterNumbering.is() &&
!( IsInsertMode() || IsStylesOnlyMode() ) )
{ {
sal_Int32 nCount = xChapterNumbering->getCount(); sal_Int32 nCount = xChapterNumbering->getCount();
for( sal_Int32 i=0; i < nCount; i++ ) for( sal_Int32 i=0; i < nCount; i++ )
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: txtparai.cxx,v $ * $RCSfile: txtparai.cxx,v $
* *
* $Revision: 1.35 $ * $Revision: 1.36 $
* *
* last change: $Author: dvo $ $Date: 2002-09-18 18:07:33 $ * last change: $Author: dvo $ $Date: 2002-09-19 10:04:49 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1943,8 +1943,7 @@ XMLParaContext::~XMLParaContext() ...@@ -1943,8 +1943,7 @@ XMLParaContext::~XMLParaContext()
// set style and hard attributes at the previous paragraph // set style and hard attributes at the previous paragraph
sStyleName = xTxtImport->SetStyleAndAttrs( xAttrCursor, sStyleName, sal_True ); sStyleName = xTxtImport->SetStyleAndAttrs( xAttrCursor, sStyleName, sal_True );
if( bHeading && !( xTxtImport->IsInsertMode() || if( bHeading )
xTxtImport->IsStylesOnlyMode() ))
xTxtImport->SetOutlineStyle( nOutlineLevel, sStyleName ); xTxtImport->SetOutlineStyle( nOutlineLevel, sStyleName );
if( pHints && pHints->Count() ) if( pHints && pHints->Count() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment