[Libreoffice-commits] core.git: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 20 16:14:49 UTC 2018
sc/source/ui/pagedlg/tphf.cxx | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
New commits:
commit 345ea93f116b02fdcb76c191edc50f5677b65bd3
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 20 14:48:59 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 20 18:14:19 2018 +0200
weld header/footer SingleTabDialog
Change-Id: Ifbe3be21e3cd792a22fe0797076f1402bb736de6
Reviewed-on: https://gerrit.libreoffice.org/60820
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx
index c3268772696e..83eb605dc458 100644
--- a/sc/source/ui/pagedlg/tphf.cxx
+++ b/sc/source/ui/pagedlg/tphf.cxx
@@ -192,37 +192,37 @@ IMPL_LINK_NOARG(ScHFPage, HFEditHdl, void*, void)
else
{
OUString aText;
- VclPtrInstance< SfxSingleTabDialog > pDlg(this, aDataSet);
bool bRightPage = m_xCntSharedBox->get_active() || (SvxPageUsage::Left != nPageUsage);
- if ( nId == SID_ATTR_PAGE_HEADERSET )
+ SfxSingleTabDialogController aDlg(GetDialogFrameWeld(), aDataSet);
+ TabPageParent pPageParent(aDlg.get_content_area(), &aDlg);
+ if (nId == SID_ATTR_PAGE_HEADERSET)
{
- aText = ScResId( STR_PAGEHEADER );
- if ( bRightPage )
- pDlg->SetTabPage( ScRightHeaderEditPage::Create( pDlg->get_content_area(), &aDataSet ) );
+ aText = ScResId(STR_PAGEHEADER);
+ if (bRightPage)
+ aDlg.SetTabPage(ScRightHeaderEditPage::Create(pPageParent, &aDataSet));
else
- pDlg->SetTabPage( ScLeftHeaderEditPage::Create( pDlg->get_content_area(), &aDataSet ) );
+ aDlg.SetTabPage(ScLeftHeaderEditPage::Create(pPageParent, &aDataSet));
}
else
{
- aText = ScResId( STR_PAGEFOOTER );
- if ( bRightPage )
- pDlg->SetTabPage( ScRightFooterEditPage::Create( pDlg->get_content_area(), &aDataSet ) );
+ aText = ScResId(STR_PAGEFOOTER);
+ if (bRightPage)
+ aDlg.SetTabPage(ScRightFooterEditPage::Create(pPageParent, &aDataSet));
else
- pDlg->SetTabPage( ScLeftFooterEditPage::Create( pDlg->get_content_area(), &aDataSet ) );
+ aDlg.SetTabPage(ScLeftFooterEditPage::Create(pPageParent, &aDataSet));
}
SvxNumType eNumType = aDataSet.Get(ATTR_PAGE).GetNumType();
- static_cast<ScHFEditPage*>(pDlg->GetTabPage())->SetNumType(eNumType);
+ static_cast<ScHFEditPage*>(aDlg.GetTabPage())->SetNumType(eNumType);
- aText += " (" + ScResId( STR_PAGESTYLE );
- aText += ": " + aStrPageStyle + ")";
+ aText += " (" + ScResId(STR_PAGESTYLE) + ": " + aStrPageStyle + ")";
- pDlg->SetText( aText );
+ aDlg.set_title(aText);
- if ( pDlg->Execute() == RET_OK )
+ if (aDlg.run() == RET_OK)
{
- aDataSet.Put( *pDlg->GetOutputItemSet() );
+ aDataSet.Put(*aDlg.GetOutputItemSet());
}
}
}
More information about the Libreoffice-commits
mailing list