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 Referencefinal

#include <docrecovery.hxx>

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

Public Member Functions

 RecoveryCore (css::uno::Reference< css::uno::XComponentContext > xContext, 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 forgetAllRecoveryEntriesMarkedForDiscard ()
 
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 m_bListenForSaving
 knows the reason, why we listen on our internal m_xRealCore member. More...
 

Detailed Description

Definition at line 178 of file docrecovery.hxx.

Constructor & Destructor Documentation

◆ RecoveryCore()

svx::DocRecovery::RecoveryCore::RecoveryCore ( css::uno::Reference< css::uno::XComponentContext >  xContext,
bool  bUsedForSaving 
)

TODO.

Definition at line 55 of file docrecovery.cxx.

References impl_startListening(), and m_xContext.

◆ ~RecoveryCore()

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

TODO.

Definition at line 65 of file docrecovery.cxx.

References impl_stopListening().

Member Function Documentation

◆ disposing()

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

Definition at line 462 of file docrecovery.cxx.

References m_xRealCore.

◆ doEmergencySave()

void svx::DocRecovery::RecoveryCore::doEmergencySave ( )

◆ doEmergencySavePrepare()

void svx::DocRecovery::RecoveryCore::doEmergencySavePrepare ( )

◆ doRecovery()

void svx::DocRecovery::RecoveryCore::doRecovery ( )

◆ forgetAllRecoveryEntries()

void svx::DocRecovery::RecoveryCore::forgetAllRecoveryEntries ( )

◆ forgetAllRecoveryEntriesMarkedForDiscard()

void svx::DocRecovery::RecoveryCore::forgetAllRecoveryEntriesMarkedForDiscard ( )

◆ forgetBrokenRecoveryEntries()

void svx::DocRecovery::RecoveryCore::forgetBrokenRecoveryEntries ( )

◆ forgetBrokenTempEntries()

void svx::DocRecovery::RecoveryCore::forgetBrokenTempEntries ( )

◆ getComponentContext()

const css::uno::Reference< css::uno::XComponentContext > & svx::DocRecovery::RecoveryCore::getComponentContext ( ) const

TODO.

Definition at line 71 of file docrecovery.cxx.

References m_xContext.

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

◆ getURLListAccess()

TURLList & svx::DocRecovery::RecoveryCore::getURLListAccess ( )

◆ impl_getParsedURL()

css::util::URL svx::DocRecovery::RecoveryCore::impl_getParsedURL ( const OUString &  sURL)
private

◆ impl_startListening()

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

starts listening on the internal EmergencySave/AutoRecovery core.

Definition at line 468 of file docrecovery.cxx.

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

Referenced by RecoveryCore().

◆ impl_stopListening()

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

stop listening on the internal EmergencySave/AutoRecovery core.

Definition at line 489 of file docrecovery.cxx.

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

Referenced by ~RecoveryCore().

◆ isBrokenTempEntry()

bool svx::DocRecovery::RecoveryCore::isBrokenTempEntry ( const TURLInfo rInfo)
static

◆ mapDocState2RecoverState()

ERecoveryState svx::DocRecovery::RecoveryCore::mapDocState2RecoverState ( EDocStates  eDocState)
static

◆ saveAllTempEntries()

void svx::DocRecovery::RecoveryCore::saveAllTempEntries ( const OUString &  sSaveDir)

◆ saveBrokenTempEntries()

void svx::DocRecovery::RecoveryCore::saveBrokenTempEntries ( const OUString &  sSaveDir)

◆ setProgressHandler()

void svx::DocRecovery::RecoveryCore::setProgressHandler ( const css::uno::Reference< css::task::XStatusIndicator > &  xProgress)

◆ setUpdateListener()

void svx::DocRecovery::RecoveryCore::setUpdateListener ( IRecoveryUpdateListener pListener)

◆ statusChanged()

void SAL_CALL svx::DocRecovery::RecoveryCore::statusChanged ( const css::frame::FeatureStateEvent &  aEvent)
overridevirtual

Member Data Documentation

◆ m_bListenForSaving

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

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

@descr 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 210 of file docrecovery.hxx.

Referenced by impl_startListening(), and impl_stopListening().

◆ m_lURLs

TURLList svx::DocRecovery::RecoveryCore::m_lURLs
private

◆ m_pListener

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

TODO.

Definition at line 201 of file docrecovery.hxx.

Referenced by setUpdateListener(), and statusChanged().

◆ m_xContext

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

◆ m_xProgress

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

TODO.

Definition at line 195 of file docrecovery.hxx.

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

◆ m_xRealCore

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

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