diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-24 17:11:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-24 18:07:41 +0100 |
commit | 1413d6bc9902a536c0c67f42d2cb16ea45174fe4 (patch) | |
tree | e2ae3527959a294735a230f3934de4a4cc4d8bc6 /svx/source/unodraw/recoveryui.cxx | |
parent | e5cc4e2422515a98e11071c7449ca231bd243874 (diff) |
convert doc recovery save page to .ui
and a wizard with one page is just a dialog, so make
that simplification and conversion too
Change-Id: I9f6335007609893308d57d693a18a313bcbb9244
Diffstat (limited to 'svx/source/unodraw/recoveryui.cxx')
-rw-r--r-- | svx/source/unodraw/recoveryui.cxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx index 1855098072f6..445f04cfbf67 100644 --- a/svx/source/unodraw/recoveryui.cxx +++ b/svx/source/unodraw/recoveryui.cxx @@ -274,29 +274,21 @@ RecoveryUI::EJob RecoveryUI::impl_classifyJob(const css::util::URL& aURL) return m_eJob; } - bool RecoveryUI::impl_doEmergencySave() { // create core service, which implements the real "emergency save" algorithm. svxdr::RecoveryCore* pCore = new svxdr::RecoveryCore(m_xContext, true); css::uno::Reference< css::frame::XStatusListener > xCore(pCore); - // create all needed dialogs for this operation - // and bind it to the used core service - svxdr::TabDialog4Recovery* pWizard = new svxdr::TabDialog4Recovery(m_pParentWindow); - svxdr::IExtendedTabPage* pPage1 = new svxdr::SaveDialog (pWizard, pCore ); - pWizard->addTabPage(pPage1); - - // start the wizard - short nRet = pWizard->Execute(); - - delete pPage1 ; - delete pWizard; + // create dialog for this operation and bind it to the used core service + Dialog* pDialog = new svxdr::SaveDialog(m_pParentWindow, pCore); + // start the dialog + short nRet = pDialog->Execute(); + delete pDialog; return (nRet==DLG_RET_OK_AUTOLUNCH); } - void RecoveryUI::impl_doRecovery() { // create core service, which implements the real "emergency save" algorithm. |