summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docfmt.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-02 15:14:07 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-02 15:42:46 +0200
commitdba6a280968eb7ecca2f74d343ca8fccde1560bc (patch)
treead06a4a728c9d726e1b44e4983cd49ce9b9a027c /sw/source/core/doc/docfmt.cxx
parent4e06bafe801223de132ca043a3f2e0baaf803ed4 (diff)
sw: initial HeaderTextFirst / FooterTextFirst
The header/footer text for the first page can now be written (document model ready), but layout doesn't take it into account yet. Also, SwDoc::ChgPageDesc() has some copy&paste, will fix that soon. Change-Id: Ic28659f028e7db4aa1b6eefc76a4e672127e2c98
Diffstat (limited to 'sw/source/core/doc/docfmt.cxx')
-rw-r--r--sw/source/core/doc/docfmt.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index b18f21f014f7..bb8a40f6c3e7 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -2100,11 +2100,19 @@ void SwDoc::CopyPageDesc( const SwPageDesc& rSrcDesc, SwPageDesc& rDstDesc,
CopyHeader( rSrcDesc.GetLeft(), rDstDesc.GetLeft() );
else
rDstDesc.GetLeft().SetFmtAttr( rDstDesc.GetMaster().GetHeader() );
+ if( !rDstDesc.IsHeaderSharedFirst() )
+ CopyHeader( rSrcDesc.GetFirst(), rDstDesc.GetFirst() );
+ else
+ rDstDesc.GetFirst().SetFmtAttr( rDstDesc.GetMaster().GetHeader() );
if( !rDstDesc.IsFooterShared() )
CopyFooter( rSrcDesc.GetLeft(), rDstDesc.GetLeft() );
else
rDstDesc.GetLeft().SetFmtAttr( rDstDesc.GetMaster().GetFooter() );
+ if( !rDstDesc.IsFooterSharedFirst() )
+ CopyFooter( rSrcDesc.GetFirst(), rDstDesc.GetFirst() );
+ else
+ rDstDesc.GetFirst().SetFmtAttr( rDstDesc.GetMaster().GetFooter() );
if( bNotifyLayout && pTmpRoot )
{