summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-03 14:11:32 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-03 14:13:25 +0200
commit9cfa2b97cc286a06fe14223abb41ead772b17ad5 (patch)
tree923a95f0d362c6f6423d995ff1a8054be6116606 /sw
parentfa0f42bafbf24e9141ddee728b160b5ab47077f2 (diff)
sw: include footer type in layout dump, now really
Change-Id: Ie4b5d04824316c03e7a0b5bdb9d04bd42fad5f88
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doclay.cxx2
-rw-r--r--sw/source/core/text/xmldump.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 5dbff900a0ea..2273fd70fac9 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -149,7 +149,7 @@ SwFrmFmt *SwDoc::MakeLayoutFmt( RndStdIds eRequest, const SfxItemSet* pSet )
case RND_STD_FOOTERR:
{
pFmt = new SwFrmFmt( GetAttrPool(),
- (bHeader ? "Header" : "Footer"),
+ (bHeader ? "Right header" : "Right footer"),
GetDfltFrmFmt() );
SwNodeIndex aTmpIdx( GetNodes().GetEndOfAutotext() );
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 5818f20e21e2..6bcf2704ca36 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -368,10 +368,10 @@ void SwFrm::dumpAsXmlAttributes( xmlTextWriterPtr writer )
SwTxtNode *pTxtNode = pTxtFrm->GetTxtNode();
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "txtNodeIndex" ), "%lu", pTxtNode->GetIndex() );
}
- if (IsHeaderFrm())
+ if (IsHeaderFrm() || IsFooterFrm())
{
- SwHeaderFrm *pHeaderFrm = (SwHeaderFrm*)this;
- rtl::OUString aFmtName = pHeaderFrm->GetFmt()->GetName();
+ SwHeadFootFrm *pHeadFootFrm = (SwHeadFootFrm*)this;
+ rtl::OUString aFmtName = pHeadFootFrm->GetFmt()->GetName();
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "fmtName" ), "%s", BAD_CAST(rtl::OUStringToOString(aFmtName, RTL_TEXTENCODING_UTF8).getStr()));
}
}