summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-17 14:11:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-17 14:11:28 +0100
commite2aa5ab249edaeb8e9e3603ba8ae09faea90122c (patch)
tree6042c6d789957c510400d7cbda493503689a8b5b /sd/source/ui/dlg
parent338ccf09e3d02dfd872464bb78c4e2d44aecf0b2 (diff)
tweak AddTabPage to use the factory directly
to facilitate easier .ui conversion Change-Id: Icee821b37c1fe1801937066f9defbff4a05fc9e2
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r--sd/source/ui/dlg/dlgpage.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx
index 5e1dbca67846..e0bae00c4fcc 100644
--- a/sd/source/ui/dlg/dlgpage.cxx
+++ b/sd/source/ui/dlg/dlgpage.cxx
@@ -27,6 +27,7 @@
#include "DrawDocShell.hxx"
#include <svl/aeitem.hxx>
#include <svx/flagsdef.hxx>
+#include <svx/svxdlg.hxx>
#include <editeng/svxenum.hxx>
/**
@@ -52,8 +53,11 @@ SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, Window* pParent, const SfxItemSet*
FreeResource();
- AddTabPage( RID_SVXPAGE_PAGE);
- AddTabPage( RID_SVXPAGE_AREA);
+ SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
+ OSL_ENSURE(pFact, "Dialogdiet fail!");
+
+ AddTabPage( RID_SVXPAGE_PAGE, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), 0 );
+ AddTabPage( RID_SVXPAGE_AREA, pFact->GetTabPageCreatorFunc( RID_SVXPAGE_AREA ), 0 );
if(!bAreaPage) // I have to add the page before I remove it !
RemoveTabPage( RID_SVXPAGE_AREA );