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

#include <docrecovery.hxx>

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

Public Member Functions

 RecoveryCore (const css::uno::Reference< css::uno::XComponentContext > &rxContext, bool bUsedForSaving)
 TODO. More...
 
virtual ~RecoveryCore () override
 TODO. More...
 
const css::uno::Reference< css::uno::XComponentContext > & getComponentContext () const
 TODO. More...
 
TURLListgetURLListAccess ()
 TODO. More...
 
void saveBrokenTempEntries (const OUString &sSaveDir)
 
void saveAllTempEntries (const OUString &sSaveDir)
 
void forgetBrokenTempEntries ()
 
void forgetAllRecoveryEntries ()
 
void forgetBrokenRecoveryEntries ()
 
void setProgressHandler (const css::uno::Reference< css::task::XStatusIndicator > &xProgress)
 TODO. More...
 
void setUpdateListener (IRecoveryUpdateListener *pListener)
 TODO. More...
 
void doEmergencySavePrepare ()
 TODO. More...
 
void doEmergencySave ()
 
void doRecovery ()
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &aEvent) override
 

Static Public Member Functions

static bool isBrokenTempEntry (const TURLInfo &rInfo)
 TODO. More...
 
static ERecoveryState mapDocState2RecoverState (EDocStates eDocState)
 TODO. More...
 

Private Member Functions

void impl_startListening ()
 starts listening on the internal EmergencySave/AutoRecovery core. More...
 
void impl_stopListening ()
 stop listening on the internal EmergencySave/AutoRecovery core. More...
 
css::util::URL impl_getParsedURL (const OUString &sURL)
 TODO. More...
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 TODO. More...
 
css::uno::Reference< css::frame::XDispatch > m_xRealCore
 TODO. More...
 
css::uno::Reference< css::task::XStatusIndicator > m_xProgress
 TODO. More...
 
TURLList m_lURLs
 TODO. More...
 
IRecoveryUpdateListenerm_pListener
 TODO. More...
 
bool const m_bListenForSaving
 knows the reason, why we listen on our internal m_xRealCore member. More...
 

Detailed Description

Definition at line 172 of file docrecovery.hxx.

Constructor & Destructor Documentation

svx::DocRecovery::RecoveryCore::RecoveryCore ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
bool  bUsedForSaving 
)

TODO.

Definition at line 62 of file docrecovery.cxx.

References impl_startListening(), and m_xContext.

svx::DocRecovery::RecoveryCore::~RecoveryCore ( )
overridevirtual

TODO.

Definition at line 72 of file docrecovery.cxx.

References impl_stopListening().

Member Function Documentation

void SAL_CALL svx::DocRecovery::RecoveryCore::disposing ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 438 of file docrecovery.cxx.

References m_xRealCore.

void svx::DocRecovery::RecoveryCore::doEmergencySave ( )
void svx::DocRecovery::RecoveryCore::doEmergencySavePrepare ( )
void svx::DocRecovery::RecoveryCore::doRecovery ( )
void svx::DocRecovery::RecoveryCore::forgetAllRecoveryEntries ( )
void svx::DocRecovery::RecoveryCore::forgetBrokenRecoveryEntries ( )
void svx::DocRecovery::RecoveryCore::forgetBrokenTempEntries ( )
const css::uno::Reference< css::uno::XComponentContext > & svx::DocRecovery::RecoveryCore::getComponentContext ( ) const

TODO.

Definition at line 78 of file docrecovery.cxx.

References m_xContext.

Referenced by svx::DocRecovery::BrokenRecoveryDialog::impl_askForSavePath().

TURLList & svx::DocRecovery::RecoveryCore::getURLListAccess ( )
css::util::URL svx::DocRecovery::RecoveryCore::impl_getParsedURL ( const OUString &  sURL)
private
void svx::DocRecovery::RecoveryCore::impl_startListening ( )
private

starts listening on the internal EmergencySave/AutoRecovery core.

Definition at line 444 of file docrecovery.cxx.

References m_bListenForSaving, m_xContext, m_xRealCore, RECOVERY_CMD_DO_EMERGENCY_SAVE, and RECOVERY_CMD_DO_RECOVERY.

Referenced by RecoveryCore().

void svx::DocRecovery::RecoveryCore::impl_stopListening ( )
private

stop listening on the internal EmergencySave/AutoRecovery core.

Definition at line 465 of file docrecovery.cxx.

References m_bListenForSaving, m_xContext, m_xRealCore, RECOVERY_CMD_DO_EMERGENCY_SAVE, and RECOVERY_CMD_DO_RECOVERY.

Referenced by ~RecoveryCore().

bool svx::DocRecovery::RecoveryCore::isBrokenTempEntry ( const TURLInfo rInfo)
static
ERecoveryState svx::DocRecovery::RecoveryCore::mapDocState2RecoverState ( EDocStates  eDocState)
static
void svx::DocRecovery::RecoveryCore::saveAllTempEntries ( const OUString &  sSaveDir)
void svx::DocRecovery::RecoveryCore::saveBrokenTempEntries ( const OUString &  sSaveDir)
void svx::DocRecovery::RecoveryCore::setProgressHandler ( const css::uno::Reference< css::task::XStatusIndicator > &  xProgress)
void svx::DocRecovery::RecoveryCore::setUpdateListener ( IRecoveryUpdateListener pListener)
void SAL_CALL svx::DocRecovery::RecoveryCore::statusChanged ( const css::frame::FeatureStateEvent &  aEvent)
overridevirtual

Member Data Documentation

bool const svx::DocRecovery::RecoveryCore::m_bListenForSaving
private

knows the reason, why we listen on our internal m_xRealCore member.

Because we listen for different operations on the core dispatch implementation, we must know, which URL we have to use for deregistration!

Definition at line 204 of file docrecovery.hxx.

Referenced by impl_startListening(), and impl_stopListening().

TURLList svx::DocRecovery::RecoveryCore::m_lURLs
private
IRecoveryUpdateListener* svx::DocRecovery::RecoveryCore::m_pListener
private

TODO.

Definition at line 195 of file docrecovery.hxx.

Referenced by setUpdateListener(), and statusChanged().

css::uno::Reference< css::uno::XComponentContext > svx::DocRecovery::RecoveryCore::m_xContext
private
css::uno::Reference< css::task::XStatusIndicator > svx::DocRecovery::RecoveryCore::m_xProgress
private

TODO.

Definition at line 189 of file docrecovery.hxx.

Referenced by doEmergencySave(), doRecovery(), and setProgressHandler().

css::uno::Reference< css::frame::XDispatch > svx::DocRecovery::RecoveryCore::m_xRealCore
private

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