LibreOffice Module dbaccess (master) 1
|
#include <dbdocrecovery.hxx>
Public Member Functions | |
DatabaseDocumentRecovery (const css::uno::Reference< css::uno::XComponentContext > &i_rContext) | |
~DatabaseDocumentRecovery () | |
void | saveModifiedSubComponents (const css::uno::Reference< css::embed::XStorage > &i_rTargetStorage, const std::vector< css::uno::Reference< css::frame::XController > > &i_rControllers) |
saves the modified sub components of the given controller(s) to the "recovery" sub storage of the document storage. More... | |
void | recoverSubDocuments (const css::uno::Reference< css::embed::XStorage > &i_rDocumentStorage, const css::uno::Reference< css::frame::XController > &i_rTargetController) |
recovery sub components from the given document storage, if applicable More... | |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Definition at line 32 of file dbdocrecovery.hxx.
dbaccess::DatabaseDocumentRecovery::DatabaseDocumentRecovery | ( | const css::uno::Reference< css::uno::XComponentContext > & | i_rContext | ) |
Definition at line 199 of file dbdocrecovery.cxx.
References mxContext.
dbaccess::DatabaseDocumentRecovery::~DatabaseDocumentRecovery | ( | ) |
Definition at line 204 of file dbdocrecovery.cxx.
void dbaccess::DatabaseDocumentRecovery::recoverSubDocuments | ( | const css::uno::Reference< css::embed::XStorage > & | i_rDocumentStorage, |
const css::uno::Reference< css::frame::XController > & | i_rTargetController | ||
) |
recovery sub components from the given document storage, if applicable
If the given document storage does not contain a recovery folder, the method silently returns.
css::uno::Exception | in case of an error. |
Definition at line 254 of file dbdocrecovery.cxx.
References DBG_UNHANDLED_EXCEPTION, ENSURE_OR_THROW, Exception, dbaccess::FORM, dbaccess::SubComponentRecovery::getComponentsStorageName(), mxContext, dbaccess::QUERY, dbaccess::SubComponentRecovery::recoverFromStorage(), dbaccess::RELATION_DESIGN, dbaccess::REPORT, SAL_WARN, and dbaccess::TABLE.
Referenced by dbaccess::ODatabaseDocument::setCurrentController().
void dbaccess::DatabaseDocumentRecovery::saveModifiedSubComponents | ( | const css::uno::Reference< css::embed::XStorage > & | i_rTargetStorage, |
const std::vector< css::uno::Reference< css::frame::XController > > & | i_rControllers | ||
) |
saves the modified sub components of the given controller(s) to the "recovery" sub storage of the document storage.
css::uno::Exception | in case of an error. |
Definition at line 208 of file dbdocrecovery.cxx.
References dbaccess::tools::stor::commitStorageIfWriteable(), ENSURE_OR_THROW, dbaccess::SubComponentRecovery::getComponentsStorageName(), mxContext, and dbaccess::SubComponentRecovery::saveToRecoveryStorage().
Referenced by dbaccess::ODatabaseDocument::storeToRecoveryFile().
|
private |
Definition at line 64 of file dbdocrecovery.hxx.
Referenced by recoverSubDocuments(), and saveModifiedSubComponents().