diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-08 15:38:50 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-08 15:42:59 +0200 |
commit | 91042f3f0a4328bc46e17e8b32d5021003fb7e04 (patch) | |
tree | bc7f5ee487acb505b416f28cfd5d8bf3bbb2e599 /sw/source/ui/fmtui | |
parent | dc557cd036e49f6d642bcdbd79a525371c7c513c (diff) |
Header/Footer: implement the edit menu item
Opens the page style at the header or footer tab.
Diffstat (limited to 'sw/source/ui/fmtui')
-rw-r--r-- | sw/source/ui/fmtui/tmpdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index 55cf1cc1dc0b..5f88ae761cb7 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -97,7 +97,7 @@ extern SW_DLLPUBLIC SwWrtShell* GetActiveWrtShell(); SwTemplateDlg::SwTemplateDlg(Window* pParent, SfxStyleSheetBase& rBase, sal_uInt16 nRegion, - sal_Bool bColumn, + sal_uInt16 nPageId, SwWrtShell* pActShell, sal_Bool bNew ) : SfxStyleDialog( pParent, @@ -263,8 +263,8 @@ SwTemplateDlg::SwTemplateDlg(Window* pParent, AddTabPage(TP_FOOTER_PAGE, String(SW_RES(STR_PAGE_FOOTER)), SvxFooterPage::Create, SvxFooterPage::GetRanges ); - if(bColumn) - SetCurPageId(TP_COLUMN); + if(nPageId) + SetCurPageId(nPageId); OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), "GetTabPageCreatorFunc fail!"); OSL_ENSURE(pFact->GetTabPageRangesFunc( RID_SVXPAGE_PAGE ), "GetTabPageRangesFunc fail!"); |