LibreOffice Module svx (master) 1
|
#include <docrecovery.hxx>
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... | |
TURLList & | getURLListAccess () |
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... | |
IRecoveryUpdateListener * | m_pListener |
TODO. More... | |
bool | m_bListenForSaving |
knows the reason, why we listen on our internal m_xRealCore member. More... | |
Definition at line 178 of file docrecovery.hxx.
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.
|
overridevirtual |
|
overridevirtual |
Definition at line 462 of file docrecovery.cxx.
References m_xRealCore.
void svx::DocRecovery::RecoveryCore::doEmergencySave | ( | ) |
Definition at line 307 of file docrecovery.cxx.
References aURL, impl_getParsedURL(), m_xProgress, m_xRealCore, comphelper::makePropertyValue(), PROP_DISPATCHASYNCHRON, PROP_STATUSINDICATOR, and RECOVERY_CMD_DO_EMERGENCY_SAVE.
Referenced by svx::DocRecovery::SaveProgressDialog::run().
void svx::DocRecovery::RecoveryCore::doEmergencySavePrepare | ( | ) |
TODO.
Definition at line 293 of file docrecovery.cxx.
References aURL, impl_getParsedURL(), m_xRealCore, comphelper::makePropertyValue(), PROP_DISPATCHASYNCHRON, and RECOVERY_CMD_DO_PREPARE_EMERGENCY_SAVE.
Referenced by svx::DocRecovery::SaveDialog::SaveDialog().
void svx::DocRecovery::RecoveryCore::doRecovery | ( | ) |
Definition at line 323 of file docrecovery.cxx.
References aURL, forgetAllRecoveryEntriesMarkedForDiscard(), impl_getParsedURL(), m_xProgress, m_xRealCore, comphelper::makePropertyValue(), PROP_DISPATCHASYNCHRON, PROP_STATUSINDICATOR, and RECOVERY_CMD_DO_RECOVERY.
Referenced by svx::DocRecovery::RecoveryDialog::execute().
void svx::DocRecovery::RecoveryCore::forgetAllRecoveryEntries | ( | ) |
Definition at line 226 of file docrecovery.cxx.
References impl_getParsedURL(), m_lURLs, m_xRealCore, PROP_DISPATCHASYNCHRON, PROP_ENTRYID, and RECOVERY_CMD_DO_ENTRY_CLEANUP.
Referenced by svx::DocRecovery::RecoveryDialog::execute().
void svx::DocRecovery::RecoveryCore::forgetAllRecoveryEntriesMarkedForDiscard | ( | ) |
Definition at line 199 of file docrecovery.cxx.
References impl_getParsedURL(), m_lURLs, m_xRealCore, PROP_DISPATCHASYNCHRON, PROP_ENTRYID, and RECOVERY_CMD_DO_ENTRY_CLEANUP.
Referenced by doRecovery().
void svx::DocRecovery::RecoveryCore::forgetBrokenRecoveryEntries | ( | ) |
Definition at line 252 of file docrecovery.cxx.
References impl_getParsedURL(), isBrokenTempEntry(), m_lURLs, m_xRealCore, PROP_DISPATCHASYNCHRON, PROP_ENTRYID, and RECOVERY_CMD_DO_ENTRY_CLEANUP.
Referenced by svx::DocRecovery::RecoveryDialog::execute().
void svx::DocRecovery::RecoveryCore::forgetBrokenTempEntries | ( | ) |
Definition at line 170 of file docrecovery.cxx.
References impl_getParsedURL(), isBrokenTempEntry(), m_lURLs, m_xRealCore, PROP_DISPATCHASYNCHRON, PROP_ENTRYID, and RECOVERY_CMD_DO_ENTRY_CLEANUP.
Referenced by svx::DocRecovery::RecoveryDialog::execute().
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().
TURLList & svx::DocRecovery::RecoveryCore::getURLListAccess | ( | ) |
TODO.
Definition at line 77 of file docrecovery.cxx.
References m_lURLs.
Referenced by svx::DocRecovery::BrokenRecoveryDialog::impl_refresh(), svx::DocRecovery::RecoveryDialog::RecoveryDialog(), and svx::DocRecovery::SaveDialog::SaveDialog().
|
private |
TODO.
Definition at line 508 of file docrecovery.cxx.
References aURL, and m_xContext.
Referenced by doEmergencySave(), doEmergencySavePrepare(), doRecovery(), forgetAllRecoveryEntries(), forgetAllRecoveryEntriesMarkedForDiscard(), forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), saveAllTempEntries(), and saveBrokenTempEntries().
|
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().
|
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().
|
static |
TODO.
Definition at line 83 of file docrecovery.cxx.
References svx::DocRecovery::E_ORIGINAL_DOCUMENT_RECOVERED, svx::DocRecovery::E_RECOVERY_FAILED, svx::DocRecovery::TURLInfo::RecoveryState, and svx::DocRecovery::TURLInfo::TempURL.
Referenced by forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), svx::DocRecovery::BrokenRecoveryDialog::impl_refresh(), and saveBrokenTempEntries().
|
static |
TODO.
Definition at line 341 of file docrecovery.cxx.
References Damaged, svx::DocRecovery::E_NOT_RECOVERED_YET, svx::DocRecovery::E_ORIGINAL_DOCUMENT_RECOVERED, svx::DocRecovery::E_RECOVERY_FAILED, svx::DocRecovery::E_RECOVERY_IS_IN_PROGRESS, svx::DocRecovery::E_SUCCESSFULLY_RECOVERED, Incomplete, Succeeded, TryLoadBackup, and TryLoadOriginal.
Referenced by statusChanged().
void svx::DocRecovery::RecoveryCore::saveAllTempEntries | ( | const OUString & | sSaveDir | ) |
Definition at line 135 of file docrecovery.cxx.
References impl_getParsedURL(), m_lURLs, m_xRealCore, PROP_DISPATCHASYNCHRON, PROP_ENTRYID, PROP_SAVEPATH, and RECOVERY_CMD_DO_ENTRY_BACKUP.
Referenced by svx::DocRecovery::RecoveryDialog::execute().
void svx::DocRecovery::RecoveryCore::saveBrokenTempEntries | ( | const OUString & | sSaveDir | ) |
Definition at line 100 of file docrecovery.cxx.
References impl_getParsedURL(), isBrokenTempEntry(), m_lURLs, m_xRealCore, PROP_DISPATCHASYNCHRON, PROP_ENTRYID, PROP_SAVEPATH, and RECOVERY_CMD_DO_ENTRY_BACKUP.
Referenced by svx::DocRecovery::RecoveryDialog::execute().
void svx::DocRecovery::RecoveryCore::setProgressHandler | ( | const css::uno::Reference< css::task::XStatusIndicator > & | xProgress | ) |
TODO.
Definition at line 281 of file docrecovery.cxx.
References m_xProgress.
Referenced by svx::DocRecovery::RecoveryDialog::execute(), and svx::DocRecovery::SaveProgressDialog::run().
void svx::DocRecovery::RecoveryCore::setUpdateListener | ( | IRecoveryUpdateListener * | pListener | ) |
TODO.
Definition at line 287 of file docrecovery.cxx.
References m_pListener.
Referenced by svx::DocRecovery::RecoveryDialog::execute(), and svx::DocRecovery::SaveProgressDialog::run().
|
overridevirtual |
Definition at line 373 of file docrecovery.cxx.
References aEvent, aURL, svx::DocRecovery::TURLInfo::DisplayName, svx::DocRecovery::TURLInfo::DocState, svx::DocRecovery::E_NOT_RECOVERED_YET, svx::DocRecovery::IRecoveryUpdateListener::end(), svx::DocRecovery::TURLInfo::FactoryURL, SvFileInformationManager::GetFileImageId(), INetURLObject::getName(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), i, svx::DocRecovery::TURLInfo::ID, INetURLObject::LAST_SEGMENT, m_lURLs, m_pListener, mapDocState2RecoverState(), svx::DocRecovery::TURLInfo::Module, svx::DocRecovery::TURLInfo::OrgURL, RECOVERY_OPERATIONSTATE_START, RECOVERY_OPERATIONSTATE_STOP, RECOVERY_OPERATIONSTATE_UPDATE, svx::DocRecovery::TURLInfo::RecoveryState, svx::DocRecovery::TURLInfo::StandardImageId, STATEPROP_FACTORYURL, STATEPROP_ID, STATEPROP_MODULE, STATEPROP_ORGURL, STATEPROP_STATE, STATEPROP_TEMPLATEURL, STATEPROP_TEMPURL, STATEPROP_TITLE, svx::DocRecovery::IRecoveryUpdateListener::stepNext(), svx::DocRecovery::TURLInfo::TemplateURL, svx::DocRecovery::TURLInfo::TempURL, svx::DocRecovery::IRecoveryUpdateListener::updateItems(), and INetURLObject::WithCharset.
|
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().
|
private |
TODO.
Definition at line 198 of file docrecovery.hxx.
Referenced by forgetAllRecoveryEntries(), forgetAllRecoveryEntriesMarkedForDiscard(), forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), getURLListAccess(), saveAllTempEntries(), saveBrokenTempEntries(), and statusChanged().
|
private |
TODO.
Definition at line 201 of file docrecovery.hxx.
Referenced by setUpdateListener(), and statusChanged().
|
private |
TODO.
Definition at line 189 of file docrecovery.hxx.
Referenced by getComponentContext(), impl_getParsedURL(), impl_startListening(), and impl_stopListening().
|
private |
TODO.
Definition at line 195 of file docrecovery.hxx.
Referenced by doEmergencySave(), doRecovery(), and setProgressHandler().
|
private |
TODO.
Definition at line 192 of file docrecovery.hxx.
Referenced by disposing(), doEmergencySave(), doEmergencySavePrepare(), doRecovery(), forgetAllRecoveryEntries(), forgetAllRecoveryEntriesMarkedForDiscard(), forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), impl_startListening(), impl_stopListening(), saveAllTempEntries(), and saveBrokenTempEntries().