Kaydet (Commit) ee96edf8 authored tarafından Caolán McNamara's avatar Caolán McNamara

weld extensions FormatNumberDialog

Change-Id: I34cb3f1739c6c3ee983be6ca0c70051a5fcfcb5d
Reviewed-on: https://gerrit.libreoffice.org/69115
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 208ecfa8
...@@ -2671,20 +2671,21 @@ namespace pcr ...@@ -2671,20 +2671,21 @@ namespace pcr
aCoreSet.Put( aFormatter ); aCoreSet.Put( aFormatter );
// a tab dialog with a single page // a tab dialog with a single page
ScopedVclPtrInstance< SfxSingleTabDialog > xDialog( impl_getDefaultDialogParent_nothrow(), aCoreSet, SfxSingleTabDialogController aDialog(impl_getDefaultDialogFrame_nothrow(), aCoreSet,
"FormatNumberDialog", "cui/ui/formatnumberdialog.ui"); "cui/ui/formatnumberdialog.ui", "FormatNumberDialog");
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_NUMBERFORMAT ); ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_NUMBERFORMAT );
if ( !fnCreatePage ) if ( !fnCreatePage )
throw RuntimeException(); // caught below throw RuntimeException(); // caught below
VclPtr<SfxTabPage> pPage = (*fnCreatePage)( xDialog->get_content_area(), &aCoreSet ); TabPageParent aParent(aDialog.get_content_area(), &aDialog);
xDialog->SetTabPage( pPage ); VclPtr<SfxTabPage> xPage = (*fnCreatePage)(aParent, &aCoreSet);
aDialog.SetTabPage(xPage);
_rClearBeforeDialog.clear(); _rClearBeforeDialog.clear();
if ( RET_OK == xDialog->Execute() ) if ( RET_OK == aDialog.run() )
{ {
const SfxItemSet* pResult = xDialog->GetOutputItemSet(); const SfxItemSet* pResult = aDialog.GetOutputItemSet();
const SfxPoolItem* pItem = pResult->GetItem( SID_ATTR_NUMBERFORMAT_INFO ); const SfxPoolItem* pItem = pResult->GetItem( SID_ATTR_NUMBERFORMAT_INFO );
const SvxNumberInfoItem* pInfoItem = dynamic_cast< const SvxNumberInfoItem* >( pItem ); const SvxNumberInfoItem* pInfoItem = dynamic_cast< const SvxNumberInfoItem* >( pItem );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment