summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-05-13 15:13:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-05-13 15:45:34 +0100
commitc3bf1bdaabb31b4db5455d27720f92854f3f9778 (patch)
treec3eb3517de17f65f62e80f23becadcd55af4f43a
parent70af05cf740d3b4639f110489dc0e9e1e7571931 (diff)
and now we can convert single-tab mode too
Change-Id: I1283844ee07ddb47e799d5fe2eb795526c6c76fa
-rw-r--r--sc/source/ui/pagedlg/tphf.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index e7542267d6c3..090bc6e2ac63 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -218,7 +218,8 @@ IMPL_LINK_NOARG(ScHFPage, HFEditHdl)
else
{
OUString aText;
- SfxNoLayoutSingleTabDialog* pDlg = new SfxNoLayoutSingleTabDialog( this, aDataSet, 42 );
+ SfxSingleTabDialog* pDlg = new SfxSingleTabDialog(this, aDataSet);
+ const int nSettingsId = 42;
sal_Bool bRightPage = m_pCntSharedBox->IsChecked()
|| ( SVX_PAGE_LEFT != SvxPageUsage(nPageUsage) );
@@ -226,17 +227,17 @@ IMPL_LINK_NOARG(ScHFPage, HFEditHdl)
{
aText = ScGlobal::GetRscString( STR_PAGEHEADER );
if ( bRightPage )
- pDlg->SetTabPage( ScRightHeaderEditPage::Create( pDlg, aDataSet ) );
+ pDlg->setTabPage( ScRightHeaderEditPage::Create( pDlg, aDataSet ), NULL, nSettingsId );
else
- pDlg->SetTabPage( ScLeftHeaderEditPage::Create( pDlg, aDataSet ) );
+ pDlg->setTabPage( ScLeftHeaderEditPage::Create( pDlg, aDataSet ), NULL, nSettingsId );
}
else
{
aText = ScGlobal::GetRscString( STR_PAGEFOOTER );
if ( bRightPage )
- pDlg->SetTabPage( ScRightFooterEditPage::Create( pDlg, aDataSet ) );
+ pDlg->setTabPage( ScRightFooterEditPage::Create( pDlg, aDataSet ), NULL, nSettingsId );
else
- pDlg->SetTabPage( ScLeftFooterEditPage::Create( pDlg, aDataSet ) );
+ pDlg->setTabPage( ScLeftFooterEditPage::Create( pDlg, aDataSet ), NULL, nSettingsId );
}
SvxNumType eNumType = ((const SvxPageItem&)aDataSet.Get(ATTR_PAGE)).GetNumType();