Kaydet (Commit) d75f07ea authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS oasis2 (1.8.4); FILE MERGED

2004/07/26 09:01:35 mib 1.8.4.1: i31300: next page was not set correctly
üst 886cde0a
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLTextMasterPageContext.cxx,v $ * $RCSfile: XMLTextMasterPageContext.cxx,v $
* *
* $Revision: 1.8 $ * $Revision: 1.9 $
* *
* last change: $Author: rt $ $Date: 2004-07-13 08:38:09 $ * last change: $Author: rt $ $Date: 2004-08-20 08:15:03 $
* *
* 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
...@@ -307,7 +307,7 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite ) ...@@ -307,7 +307,7 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite )
if( xStyle.is() && (IsNew() || bOverwrite) ) if( xStyle.is() && (IsNew() || bOverwrite) )
{ {
Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY ); Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY );
if ( sPageMasterName.getLength() ) if( sPageMasterName.getLength() )
{ {
XMLPropStyleContext* pStyle = XMLPropStyleContext* pStyle =
GetImport().GetTextImport()->FindPageMaster( sPageMasterName ); GetImport().GetTextImport()->FindPageMaster( sPageMasterName );
...@@ -322,9 +322,6 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite ) ...@@ -322,9 +322,6 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite )
if( !xPageStyles.is() ) if( !xPageStyles.is() )
return; return;
if( !sFollow.getLength() || !xPageStyles->hasByName( sFollow ) )
sFollow = xStyle->getName();
Reference< XPropertySetInfo > xPropSetInfo = Reference< XPropertySetInfo > xPropSetInfo =
xPropSet->getPropertySetInfo(); xPropSet->getPropertySetInfo();
if( xPropSetInfo->hasPropertyByName( sFollowStyle ) ) if( xPropSetInfo->hasPropertyByName( sFollowStyle ) )
...@@ -332,6 +329,10 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite ) ...@@ -332,6 +329,10 @@ void XMLTextMasterPageContext::Finish( sal_Bool bOverwrite )
OUString sDisplayFollow( OUString sDisplayFollow(
GetImport().GetStyleDisplayName( GetImport().GetStyleDisplayName(
XML_STYLE_FAMILY_MASTER_PAGE, sFollow ) ); XML_STYLE_FAMILY_MASTER_PAGE, sFollow ) );
if( !sDisplayFollow.getLength() ||
!xPageStyles->hasByName( sDisplayFollow ) )
sDisplayFollow = xStyle->getName();
Any aAny = xPropSet->getPropertyValue( sFollowStyle ); Any aAny = xPropSet->getPropertyValue( sFollowStyle );
OUString sCurrFollow; OUString sCurrFollow;
aAny >>= sCurrFollow; aAny >>= sCurrFollow;
......
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