29#include <drawview.hxx>
42 , m_xFiObjInfo(m_xBuilder->weld_label(
"metafiles"))
43 , m_xFiActInfo(m_xBuilder->weld_label(
"metaobjects"))
44 , m_xFiInsInfo(m_xBuilder->weld_label(
"drawingobjects"))
45 , m_xBtnCancel(m_xBuilder->weld_button(
"cancel"))
48 , m_aUpdateIdle(
"sd::BreakDlg m_aUpdateIdle" )
66 m_xBtnCancel->set_sensitive(
false);
81 if(nInit ==
reinterpret_cast<void*
>(1))
84 VclMessageType::Warning, VclButtonsType::Ok,
91 m_xProgress->SetState(m_xProgrInfo->GetSumCurAction());
95 OUString info = OUString::number(m_xProgrInfo->GetCurObj())
97 + OUString::number(m_xProgrInfo->GetObjCount());
98 m_xFiObjInfo->set_label(info);
101 if (m_xProgrInfo->GetActionCount() == 0)
103 m_xFiActInfo->set_label( OUString() );
107 info = OUString::number(m_xProgrInfo->GetCurAction())
109 + OUString::number(m_xProgrInfo->GetActionCount());
110 m_xFiActInfo->set_label(info);
114 if (m_xProgrInfo->GetInsertCount() == 0)
116 m_xFiInsInfo->set_label( OUString() );
120 info = OUString::number(m_xProgrInfo->GetCurInsert())
122 + OUString::number(m_xProgrInfo->GetInsertCount());
123 m_xFiInsInfo->set_label(info);
142 return SfxDialogController::run();
150 m_pDrView->DoImportMarkedMtf(m_xProgrInfo.get());
Reference< XExecutableDialog > m_xDialog
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
virtual void Start(bool bStartTimer=true) override
static void ProcessEventsToIdle()
void SetPriority(TaskPriority ePriority)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
dialog to break meta files
std::unique_ptr< SfxProgress > m_xProgress
virtual short run() override
open a modal dialog and start a timer which calls the working function after the opening of the dialo...
std::unique_ptr< weld::Button > m_xBtnCancel
BreakDlg(weld::Window *pWindow, DrawView *pDrView, DrawDocShell *pShell, sal_uLong nSumActionCount, sal_uLong nObjCount)
dialog to split metafiles
std::unique_ptr< SvdProgressInfo > m_xProgrInfo
Derivative of sd::View; contains also a pointer to the document.
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(MainSequence, onTimerHdl, Timer *, void)
IMPL_LINK(SdCharHeightPropertyBox, implMenuSelectHdl, const OUString &, rIdent, void)
OUString SdResId(TranslateId aId)