summaryrefslogtreecommitdiff
path: root/svx/source/inc/docrecovery.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-04 14:56:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-04 15:07:36 +0100
commit35c31f5f4017fac3a3ea37ee1b3e7cf6b60c53c6 (patch)
treecc7497f31a4c11432a4110b601093f9c01d9c5d4 /svx/source/inc/docrecovery.hxx
parent8fd0320e8a890b559ec7c0b498c17e87a1a38ea5 (diff)
convert document recovery dialog to .ui
and move sidebar global resource defines up to the toplevel so its harder to collide with them and adjust the define to indicate the next free resource id. and simplify the dialog down a good bit and remove intermediate classes etc. Change-Id: I8d6db17fcdfc86457368d7f432bd96f6f3aa182d
Diffstat (limited to 'svx/source/inc/docrecovery.hxx')
-rw-r--r--svx/source/inc/docrecovery.hxx102
1 files changed, 8 insertions, 94 deletions
diff --git a/svx/source/inc/docrecovery.hxx b/svx/source/inc/docrecovery.hxx
index 523e749a0281..3e9f3ffd281d 100644
--- a/svx/source/inc/docrecovery.hxx
+++ b/svx/source/inc/docrecovery.hxx
@@ -302,11 +302,8 @@ class RecoveryCore : public ::cppu::WeakImplHelper1< css::frame::XStatusListener
class PluginProgressWindow : public Window
{
private:
-
css::uno::Reference< css::lang::XComponent > m_xProgress;
-
public:
-
PluginProgressWindow( Window* pParent ,
const css::uno::Reference< css::lang::XComponent >& xProgress);
virtual ~PluginProgressWindow();
@@ -315,11 +312,8 @@ class PluginProgressWindow : public Window
class PluginProgress : public ::cppu::WeakImplHelper2< css::task::XStatusIndicator ,
css::lang::XComponent >
{
-
-
// member
private:
-
/** @short TODO */
css::uno::Reference< css::task::XStatusIndicatorFactory > m_xProgressFactory;
@@ -330,8 +324,6 @@ class PluginProgress : public ::cppu::WeakImplHelper2< css::task::XStatusIndicat
// native interface
public:
-
-
/** @short TODO */
PluginProgress( Window* pParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext );
@@ -374,60 +366,6 @@ class PluginProgress : public ::cppu::WeakImplHelper2< css::task::XStatusIndicat
throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
};
-
-class IExtendedTabPage : public TabPage
-{
-
- // member
- protected:
-
- short m_nResult;
-
-
- // interface
- public:
-
- IExtendedTabPage( Window* pParent, WinBits nStyle = 0 )
- : TabPage( pParent, nStyle )
- , m_nResult(DLG_RET_UNKNOWN)
- {}
-
- IExtendedTabPage( Window* pParent, const ResId& rResId )
- : TabPage( pParent, rResId )
- , m_nResult(DLG_RET_UNKNOWN)
- {}
-
- virtual ~IExtendedTabPage()
- {}
-
- virtual short execute() = 0;
- virtual void setDefButton() = 0;
-};
-
-typedef ::std::vector< IExtendedTabPage* > TTabPageList;
-
-
-class TabDialog4Recovery : public TabDialog
-{
-
- // member
- private:
-
- TTabPageList m_lTabPages;
- TTabPageList::iterator m_pActualPage;
-
-
- // interface
- public:
-
- TabDialog4Recovery(Window* pParent);
- virtual ~TabDialog4Recovery();
-
- virtual void addTabPage(IExtendedTabPage* pPage);
- virtual short Execute() SAL_OVERRIDE;
-};
-
-
class SaveDialog : public Dialog
{
// member
@@ -568,24 +506,17 @@ class RecovDocList : public SvSimpleTable
};
-class RecoveryDialog : public IExtendedTabPage
+class RecoveryDialog : public Dialog
, public IRecoveryUpdateListener
{
-
// member
private:
- FixedText m_aTitleFT;
- Window m_aTitleWin;
- FixedLine m_aTitleFL;
- FixedText m_aDescrFT;
- FixedText m_aProgressFT;
- Window m_aProgrParent;
- FixedText m_aFileListFT;
- SvSimpleTableContainer m_aFileListLBContainer;
- RecovDocList m_aFileListLB;
- FixedLine m_aBottomFL;
- PushButton m_aNextBtn;
- CancelButton m_aCancelBtn;
+ FixedText* m_pTitleFT;
+ FixedText* m_pDescrFT;
+ Window* m_pProgrParent;
+ RecovDocList* m_pFileListLB;
+ PushButton* m_pNextBtn;
+ CancelButton* m_pCancelBtn;
OUString m_aTitleRecoveryInProgress;
OUString m_aRecoveryOnlyFinish;
OUString m_aRecoveryOnlyFinishDescr;
@@ -605,44 +536,27 @@ class RecoveryDialog : public IExtendedTabPage
E_RECOVERY_HANDLED // the recovery wizard page was shown already ... and will be shown now again ...
};
sal_Int32 m_eRecoveryState;
- bool m_bWaitForUser;
bool m_bWaitForCore;
- bool m_bUserDecideNext;
bool m_bWasRecoveryStarted;
-
// member
public:
-
-
/** @short TODO */
RecoveryDialog(Window* pParent,
RecoveryCore* pCore );
-
- /** @short TODO */
virtual ~RecoveryDialog();
-
// IRecoveryUpdateListener
virtual void updateItems() SAL_OVERRIDE;
virtual void stepNext(TURLInfo* pItem) SAL_OVERRIDE;
virtual void start() SAL_OVERRIDE;
virtual void end() SAL_OVERRIDE;
-
- /** @short TODO */
- virtual short execute() SAL_OVERRIDE;
-
-
- /** @short TODO*/
- virtual void setDefButton() SAL_OVERRIDE;
-
+ short execute();
// helper
private:
-
-
/** @short TODO */
DECL_LINK(NextButtonHdl, void*);
DECL_LINK(CancelButtonHdl, void*);