summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/textdlgs.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-15 16:00:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-18 21:58:15 +0200
commitf926fb12f3c008c0cb1d67b97e38fbe7b7c5549c (patch)
tree92d50a4213b77b7565721ee4620ffdd4454be0c6 /sc/source/ui/miscdlgs/textdlgs.cxx
parent46995724c0cb8a03f2ed83f4a84f056728aff0d2 (diff)
weld ScParagraphDlg
Change-Id: I861fe82fb3e1f6d8be0a3dd191a27b27b90fbdaf Reviewed-on: https://gerrit.libreoffice.org/60530 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/miscdlgs/textdlgs.cxx')
-rw-r--r--sc/source/ui/miscdlgs/textdlgs.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/miscdlgs/textdlgs.cxx b/sc/source/ui/miscdlgs/textdlgs.cxx
index 56d804a57c6e..02c67a80cfcd 100644
--- a/sc/source/ui/miscdlgs/textdlgs.cxx
+++ b/sc/source/ui/miscdlgs/textdlgs.cxx
@@ -58,10 +58,8 @@ void ScCharDlg::PageCreated(const OString& rId, SfxTabPage &rPage)
}
}
-ScParagraphDlg::ScParagraphDlg(vcl::Window* pParent, const SfxItemSet* pAttr)
- : SfxTabDialog(pParent, "ParagraphDialog",
- "modules/scalc/ui/paradialog.ui", pAttr)
- , m_nTabPageId(0)
+ScParagraphDlg::ScParagraphDlg(weld::Window* pParent, const SfxItemSet* pAttr)
+ : SfxTabDialogController(pParent, "modules/scalc/ui/paradialog.ui", "ParagraphDialog", pAttr)
{
AddTabPage("labelTP_PARA_STD", RID_SVXPAGE_STD_PARAGRAPH);
AddTabPage("labelTP_PARA_ALIGN", RID_SVXPAGE_ALIGN_PARAGRAPH);
@@ -70,12 +68,12 @@ ScParagraphDlg::ScParagraphDlg(vcl::Window* pParent, const SfxItemSet* pAttr)
AddTabPage("labelTP_PARA_ASIAN", RID_SVXPAGE_PARA_ASIAN);
else
RemoveTabPage("labelTP_PARA_ASIAN");
- m_nTabPageId = AddTabPage("labelTP_TABULATOR", RID_SVXPAGE_TABULATOR);
+ AddTabPage("labelTP_TABULATOR", RID_SVXPAGE_TABULATOR);
}
-void ScParagraphDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage )
+void ScParagraphDlg::PageCreated(const OString& rId, SfxTabPage &rPage)
{
- if (nId == m_nTabPageId)
+ if (rId == "labelTP_TABULATOR")
{
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
TabulatorDisableFlags const nFlags((TabulatorDisableFlags::TypeMask &~TabulatorDisableFlags::TypeLeft) |