LibreOffice Module svx (master)
1
|
#include <docrecovery.hxx>
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... | |
TURLList & | getURLListAccess () |
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... | |
IRecoveryUpdateListener * | m_pListener |
TODO. More... | |
bool | m_bListenForSaving |
knows the reason, why we listen on our internal m_xRealCore member. More... | |
Definition at line 173 of file docrecovery.hxx.
svx::DocRecovery::RecoveryCore::RecoveryCore | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
bool | bUsedForSaving | ||
) |
TODO.
Definition at line 49 of file docrecovery.cxx.
References impl_startListening(), m_pListener, and m_xContext.
|
overridevirtual |
|
overridevirtual |
Definition at line 427 of file docrecovery.cxx.
References m_xRealCore.
void svx::DocRecovery::RecoveryCore::doEmergencySave | ( | ) |
Definition at line 274 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 260 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 290 of file docrecovery.cxx.
References aURL, 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 193 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::forgetBrokenRecoveryEntries | ( | ) |
Definition at line 219 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 164 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 65 of file docrecovery.cxx.
References m_xContext.
Referenced by svx::DocRecovery::BrokenRecoveryDialog::impl_askForSavePath().
TURLList & svx::DocRecovery::RecoveryCore::getURLListAccess | ( | ) |
TODO.
Definition at line 71 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 473 of file docrecovery.cxx.
References aURL, and m_xContext.
Referenced by doEmergencySave(), doEmergencySavePrepare(), doRecovery(), forgetAllRecoveryEntries(), forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), saveAllTempEntries(), and saveBrokenTempEntries().
|
private |
starts listening on the internal EmergencySave/AutoRecovery core.
Definition at line 433 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 454 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 77 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 306 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 129 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 94 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 248 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 254 of file docrecovery.cxx.
References m_pListener.
Referenced by svx::DocRecovery::RecoveryDialog::execute(), and svx::DocRecovery::SaveProgressDialog::run().
|
overridevirtual |
Definition at line 338 of file docrecovery.cxx.
References 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, if(), 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.
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 205 of file docrecovery.hxx.
Referenced by impl_startListening(), and impl_stopListening().
|
private |
TODO.
Definition at line 193 of file docrecovery.hxx.
Referenced by forgetAllRecoveryEntries(), forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), getURLListAccess(), saveAllTempEntries(), saveBrokenTempEntries(), and statusChanged().
|
private |
TODO.
Definition at line 196 of file docrecovery.hxx.
Referenced by setUpdateListener(), and statusChanged().
|
private |
TODO.
Definition at line 184 of file docrecovery.hxx.
Referenced by getComponentContext(), impl_getParsedURL(), impl_startListening(), and impl_stopListening().
|
private |
TODO.
Definition at line 190 of file docrecovery.hxx.
Referenced by doEmergencySave(), doRecovery(), and setProgressHandler().
|
private |
TODO.
Definition at line 187 of file docrecovery.hxx.
Referenced by disposing(), doEmergencySave(), doEmergencySavePrepare(), doRecovery(), forgetAllRecoveryEntries(), forgetBrokenRecoveryEntries(), forgetBrokenTempEntries(), impl_startListening(), impl_stopListening(), saveAllTempEntries(), and saveBrokenTempEntries().