diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-27 13:54:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-27 13:54:55 +0000 |
commit | 4b3b7fc35e4d94d9ec30e0b2fc85b7b961fdcb8d (patch) | |
tree | 8e1035d02b6df0397d7ac69f946bcd2844f03066 | |
parent | d61a27f278e8442d54d52115981b5235f230ac80 (diff) |
SfxNoLayoutSingleTabDialog->SfxSingleTabDialog
Change-Id: Ib0d0696b1da5b609473a61aff185282233afb9fd
-rw-r--r-- | svx/source/tbxctrls/grafctrl.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx index 59b7a31eb6f7..600774b3cee7 100644 --- a/svx/source/tbxctrls/grafctrl.cxx +++ b/svx/source/tbxctrls/grafctrl.cxx @@ -737,18 +737,19 @@ void SvxGrafAttrHelper::ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView ) aCropDlgAttr.Put( SdrGrafCropItem( aLTSize.Width(), aLTSize.Height(), aRBSize.Width(), aRBSize.Height() ) ); - SfxNoLayoutSingleTabDialog aCropDialog( SfxViewShell::Current() ? SfxViewShell::Current()->GetWindow() : NULL, - aCropDlgAttr, 950 ); - const OUString aCropStr = SVX_RESSTR( RID_SVXSTR_GRAFCROP ); + SfxSingleTabDialog aCropDialog( + SfxViewShell::Current() ? SfxViewShell::Current()->GetWindow() : NULL, + aCropDlgAttr); + const OUString aCropStr(SVX_RESSTR(RID_SVXSTR_GRAFCROP)); SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); DBG_ASSERT(pFact, "Dialogdiet error!"); ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_GRFCROP ); DBG_ASSERT(fnCreatePage, "Dialogdiet error!"); - SfxTabPage* pTabPage = (*fnCreatePage)( &aCropDialog, aCropDlgAttr ); + SfxTabPage* pTabPage = (*fnCreatePage)( aCropDialog.get_content_area(), aCropDlgAttr ); pTabPage->SetText( aCropStr ); - aCropDialog.SetTabPage( pTabPage ); + aCropDialog.setTabPage( pTabPage ); if( aCropDialog.Execute() == RET_OK ) { |