LibreOffice Module svx (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
svx::DocRecovery::RecoveryDialog Class Referencefinal

#include <docrecovery.hxx>

Inheritance diagram for svx::DocRecovery::RecoveryDialog:
[legend]
Collaboration diagram for svx::DocRecovery::RecoveryDialog:
[legend]

Public Member Functions

 RecoveryDialog (weld::Window *pParent, RecoveryCore *pCore)
 TODO. More...
 
virtual ~RecoveryDialog () override
 
virtual void updateItems () override
 
virtual void stepNext (TURLInfo *pItem) override
 
virtual void end () override
 
short execute ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 
virtual void updateItems ()=0
 
virtual void end ()=0
 
virtual void stepNext (TURLInfo *pItem)=0
 

Private Types

enum  EInternalRecoveryState {
  E_RECOVERY_PREPARED ,
  E_RECOVERY_IN_PROGRESS ,
  E_RECOVERY_CORE_DONE ,
  E_RECOVERY_DONE ,
  E_RECOVERY_CANCELED ,
  E_RECOVERY_CANCELED_BEFORE ,
  E_RECOVERY_CANCELED_AFTERWARDS ,
  E_RECOVERY_HANDLED
}
 

Private Member Functions

 DECL_LINK (NextButtonHdl, weld::Button &, void)
 
 DECL_LINK (CancelButtonHdl, weld::Button &, void)
 
 DECL_LINK (ToggleRowHdl, const weld::TreeView::iter_col &, void)
 
OUString impl_getStatusString (const TURLInfo &rInfo) const
 
void impl_updateItemDescription (int row, const TriState &rState)
 

Static Private Member Functions

static OUString impl_getStatusImage (const TURLInfo &rInfo)
 

Private Attributes

OUString m_aTitleRecoveryInProgress
 
OUString m_aRecoveryOnlyFinish
 
OUString m_aRecoveryOnlyFinishDescr
 
RecoveryCorem_pCore
 
css::uno::Reference< css::task::XStatusIndicator > m_xProgress
 
sal_Int32 m_eRecoveryState
 
bool m_bWaitForCore
 
bool m_bWasRecoveryStarted
 
int m_aToggleCount
 
OUString m_aSuccessRecovStr
 
OUString m_aOrigDocRecovStr
 
OUString m_aRecovFailedStr
 
OUString m_aRecovInProgrStr
 
OUString m_aNotRecovYetStr
 
OUString m_aWillBeDiscStr
 
std::unique_ptr< weld::Labelm_xDescrFT
 
std::unique_ptr< weld::ProgressBarm_xProgressBar
 
std::unique_ptr< weld::TreeViewm_xFileListLB
 
std::unique_ptr< weld::Buttonm_xNextBtn
 
std::unique_ptr< weld::Buttonm_xCancelBtn
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Member Functions inherited from svx::DocRecovery::IRecoveryUpdateListener
 ~IRecoveryUpdateListener ()
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 388 of file docrecovery.hxx.

Member Enumeration Documentation

◆ EInternalRecoveryState

Enumerator
E_RECOVERY_PREPARED 
E_RECOVERY_IN_PROGRESS 
E_RECOVERY_CORE_DONE 
E_RECOVERY_DONE 
E_RECOVERY_CANCELED 
E_RECOVERY_CANCELED_BEFORE 
E_RECOVERY_CANCELED_AFTERWARDS 
E_RECOVERY_HANDLED 

Definition at line 399 of file docrecovery.hxx.

Constructor & Destructor Documentation

◆ RecoveryDialog()

svx::DocRecovery::RecoveryDialog::RecoveryDialog ( weld::Window pParent,
RecoveryCore pCore 
)

◆ ~RecoveryDialog()

svx::DocRecovery::RecoveryDialog::~RecoveryDialog ( )
overridevirtual

Definition at line 733 of file docrecovery.cxx.

References m_xProgress.

Member Function Documentation

◆ DECL_LINK() [1/3]

svx::DocRecovery::RecoveryDialog::DECL_LINK ( CancelButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/3]

svx::DocRecovery::RecoveryDialog::DECL_LINK ( NextButtonHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/3]

svx::DocRecovery::RecoveryDialog::DECL_LINK ( ToggleRowHdl  ,
const weld::TreeView::iter_col ,
void   
)
private

◆ end()

void svx::DocRecovery::RecoveryDialog::end ( )
overridevirtual

Implements svx::DocRecovery::IRecoveryUpdateListener.

Definition at line 939 of file docrecovery.cxx.

References m_bWaitForCore.

◆ execute()

short svx::DocRecovery::RecoveryDialog::execute ( )

◆ impl_getStatusImage()

OUString svx::DocRecovery::RecoveryDialog::impl_getStatusImage ( const TURLInfo rInfo)
staticprivate

◆ impl_getStatusString()

OUString svx::DocRecovery::RecoveryDialog::impl_getStatusString ( const TURLInfo rInfo) const
private

◆ impl_updateItemDescription()

void svx::DocRecovery::RecoveryDialog::impl_updateItemDescription ( int  row,
const TriState rState 
)
private

◆ stepNext()

void svx::DocRecovery::RecoveryDialog::stepNext ( TURLInfo pItem)
overridevirtual

◆ updateItems()

void svx::DocRecovery::RecoveryDialog::updateItems ( )
overridevirtual

Member Data Documentation

◆ m_aNotRecovYetStr

OUString svx::DocRecovery::RecoveryDialog::m_aNotRecovYetStr
private

Definition at line 419 of file docrecovery.hxx.

Referenced by impl_getStatusString().

◆ m_aOrigDocRecovStr

OUString svx::DocRecovery::RecoveryDialog::m_aOrigDocRecovStr
private

Definition at line 416 of file docrecovery.hxx.

Referenced by impl_getStatusString().

◆ m_aRecoveryOnlyFinish

OUString svx::DocRecovery::RecoveryDialog::m_aRecoveryOnlyFinish
private

Definition at line 394 of file docrecovery.hxx.

Referenced by execute().

◆ m_aRecoveryOnlyFinishDescr

OUString svx::DocRecovery::RecoveryDialog::m_aRecoveryOnlyFinishDescr
private

Definition at line 395 of file docrecovery.hxx.

Referenced by execute().

◆ m_aRecovFailedStr

OUString svx::DocRecovery::RecoveryDialog::m_aRecovFailedStr
private

Definition at line 417 of file docrecovery.hxx.

Referenced by impl_getStatusString().

◆ m_aRecovInProgrStr

OUString svx::DocRecovery::RecoveryDialog::m_aRecovInProgrStr
private

Definition at line 418 of file docrecovery.hxx.

Referenced by impl_getStatusString().

◆ m_aSuccessRecovStr

OUString svx::DocRecovery::RecoveryDialog::m_aSuccessRecovStr
private

Definition at line 415 of file docrecovery.hxx.

Referenced by impl_getStatusString().

◆ m_aTitleRecoveryInProgress

OUString svx::DocRecovery::RecoveryDialog::m_aTitleRecoveryInProgress
private

Definition at line 393 of file docrecovery.hxx.

Referenced by execute().

◆ m_aToggleCount

int svx::DocRecovery::RecoveryDialog::m_aToggleCount
private

Definition at line 413 of file docrecovery.hxx.

Referenced by RecoveryDialog().

◆ m_aWillBeDiscStr

OUString svx::DocRecovery::RecoveryDialog::m_aWillBeDiscStr
private

Definition at line 420 of file docrecovery.hxx.

Referenced by impl_getStatusString().

◆ m_bWaitForCore

bool svx::DocRecovery::RecoveryDialog::m_bWaitForCore
private

Definition at line 411 of file docrecovery.hxx.

Referenced by end(), and execute().

◆ m_bWasRecoveryStarted

bool svx::DocRecovery::RecoveryDialog::m_bWasRecoveryStarted
private

Definition at line 412 of file docrecovery.hxx.

Referenced by execute().

◆ m_eRecoveryState

sal_Int32 svx::DocRecovery::RecoveryDialog::m_eRecoveryState
private

Definition at line 410 of file docrecovery.hxx.

Referenced by execute().

◆ m_pCore

RecoveryCore* svx::DocRecovery::RecoveryDialog::m_pCore
private

Definition at line 397 of file docrecovery.hxx.

Referenced by execute(), and RecoveryDialog().

◆ m_xCancelBtn

std::unique_ptr<weld::Button> svx::DocRecovery::RecoveryDialog::m_xCancelBtn
private

Definition at line 426 of file docrecovery.hxx.

Referenced by execute(), and RecoveryDialog().

◆ m_xDescrFT

std::unique_ptr<weld::Label> svx::DocRecovery::RecoveryDialog::m_xDescrFT
private

Definition at line 422 of file docrecovery.hxx.

Referenced by execute().

◆ m_xFileListLB

std::unique_ptr<weld::TreeView> svx::DocRecovery::RecoveryDialog::m_xFileListLB
private

Definition at line 424 of file docrecovery.hxx.

Referenced by impl_updateItemDescription(), RecoveryDialog(), stepNext(), and updateItems().

◆ m_xNextBtn

std::unique_ptr<weld::Button> svx::DocRecovery::RecoveryDialog::m_xNextBtn
private

Definition at line 425 of file docrecovery.hxx.

Referenced by execute(), and RecoveryDialog().

◆ m_xProgress

css::uno::Reference< css::task::XStatusIndicator > svx::DocRecovery::RecoveryDialog::m_xProgress
private

Definition at line 398 of file docrecovery.hxx.

Referenced by execute(), RecoveryDialog(), and ~RecoveryDialog().

◆ m_xProgressBar

std::unique_ptr<weld::ProgressBar> svx::DocRecovery::RecoveryDialog::m_xProgressBar
private

Definition at line 423 of file docrecovery.hxx.

Referenced by RecoveryDialog().


The documentation for this class was generated from the following files: