diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-09 14:20:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-09 20:46:24 +0100 |
commit | f41e7c704898fa0e86d6d128f5bd28f37c081e92 (patch) | |
tree | 660ac1f3e0f2dcbd869c557a10ece4a5facdde94 /sw/source/ui/docvw/HeaderFooterWin.cxx | |
parent | e3cf54875031b8740b3ed76d6f530c44d2d8c44e (diff) |
convert SfxStyleDialogs to .ui
Change-Id: I32aa538026669e22e0756cd062b72e67f8d179e5
Diffstat (limited to 'sw/source/ui/docvw/HeaderFooterWin.cxx')
-rw-r--r-- | sw/source/ui/docvw/HeaderFooterWin.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/ui/docvw/HeaderFooterWin.cxx b/sw/source/ui/docvw/HeaderFooterWin.cxx index b4b7ec708fd4..edb65e6b7b64 100644 --- a/sw/source/ui/docvw/HeaderFooterWin.cxx +++ b/sw/source/ui/docvw/HeaderFooterWin.cxx @@ -401,13 +401,8 @@ void SwHeaderFooterWin::ExecuteCommand( sal_uInt16 nSlot ) { case FN_HEADERFOOTER_EDIT: { - sal_uInt16 nPageId = TP_FOOTER_PAGE; - if ( m_bIsHeader ) - nPageId = TP_HEADER_PAGE; - - rView.GetDocShell()->FormatPage( - rStyleName, - nPageId, rSh ); + OString sPageId = m_bIsHeader ? OString("header") : OString("footer"); + rView.GetDocShell()->FormatPage(rStyleName, sPageId, rSh); } break; case FN_HEADERFOOTER_BORDERBACK: |