LibreOffice Module dbaccess (master) 1
|
#include <subcomponentrecovery.hxx>
Public Member Functions | |
SubComponentRecovery (const css::uno::Reference< css::uno::XComponentContext > &i_rContext, const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &i_rController, css::uno::Reference< css::lang::XComponent > i_xComponent) | |
SubComponentRecovery (const css::uno::Reference< css::uno::XComponentContext > &i_rContext, const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &i_rController, const SubComponentType i_eType) | |
void | saveToRecoveryStorage (const css::uno::Reference< css::embed::XStorage > &i_rRecoveryStorage, MapCompTypeToCompDescs &io_mapCompDescs) |
css::uno::Reference< css::lang::XComponent > | recoverFromStorage (const css::uno::Reference< css::embed::XStorage > &i_rRecoveryStorage, const OUString &i_rComponentName, const bool i_bForEditing) |
Static Public Member Functions | |
static OUString | getComponentsStorageName (const SubComponentType i_eType) |
Private Member Functions | |
void | impl_saveSubDocument_throw (const css::uno::Reference< css::embed::XStorage > &i_rObjectStorage) |
void | impl_saveQueryDesign_throw (const css::uno::Reference< css::embed::XStorage > &i_rObjectStorage) |
css::uno::Reference< css::lang::XComponent > | impl_recoverSubDocument_throw (const css::uno::Reference< css::embed::XStorage > &i_rRecoveryStorage, const OUString &i_rComponentName, const bool i_bForEditing) |
css::uno::Reference< css::lang::XComponent > | impl_recoverQueryDesign_throw (const css::uno::Reference< css::embed::XStorage > &i_rRecoveryStorage, const OUString &i_rComponentName, const bool i_bForEditing) |
void | impl_identifyComponent_throw () |
Private Attributes | |
const css::uno::Reference< css::uno::XComponentContext > & | m_rContext |
css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > | m_xDocumentUI |
const css::uno::Reference< css::lang::XComponent > | m_xComponent |
SubComponentType | m_eType |
SubComponentDescriptor | m_aCompDesc |
Definition at line 33 of file subcomponentrecovery.hxx.
|
inline |
Definition at line 36 of file subcomponentrecovery.hxx.
References impl_identifyComponent_throw().
|
inline |
Definition at line 49 of file subcomponentrecovery.hxx.
|
static |
Definition at line 347 of file subcomponentrecovery.cxx.
References dbaccess::FORM, dbaccess::QUERY, dbaccess::RELATION_DESIGN, dbaccess::REPORT, and dbaccess::TABLE.
Referenced by dbaccess::DatabaseDocumentRecovery::recoverSubDocuments(), dbaccess::DatabaseDocumentRecovery::saveModifiedSubComponents(), and saveToRecoveryStorage().
|
private |
Definition at line 415 of file subcomponentrecovery.cxx.
References dbaccess::SubComponentDescriptor::bForEditing, dbaccess::FORM, m_aCompDesc, m_eType, m_rContext, m_xComponent, m_xDocumentUI, dbaccess::QUERY, dbaccess::RELATION_DESIGN, dbaccess::REPORT, SAL_WARN_IF, dbaccess::SubComponentDescriptor::sName, dbaccess::TABLE, and dbaccess::UNKNOWN.
Referenced by SubComponentRecovery().
|
private |
Definition at line 552 of file subcomponentrecovery.cxx.
References Any, comphelper::NamedValueCollection::getPropertyValues(), dbaccess::StorageXMLInputStream::import(), m_eType, m_rContext, m_xDocumentUI, comphelper::NamedValueCollection::put(), and xController.
Referenced by recoverFromStorage().
|
private |
Definition at line 504 of file subcomponentrecovery.cxx.
References comphelper::NamedValueCollection::getPropertyValues(), m_eType, m_xDocumentUI, comphelper::NamedValueCollection::put(), and xController.
Referenced by recoverFromStorage().
|
private |
Definition at line 466 of file subcomponentrecovery.cxx.
References dbaccess::StorageXMLOutputStream::close(), dbaccess::StorageXMLOutputStream::endElement(), ENSURE_OR_THROW, XMLSettingsExportHelper::exportAllSettings(), dbaccess::StorageXMLOutputStream::ignorableWhitespace(), m_eType, m_rContext, m_xComponent, dbaccess::QUERY, dbaccess::StorageXMLOutputStream::startElement(), and u.
Referenced by saveToRecoveryStorage().
|
private |
Definition at line 494 of file subcomponentrecovery.cxx.
References ENSURE_OR_THROW, dbaccess::FORM, m_eType, m_xComponent, and dbaccess::REPORT.
Referenced by saveToRecoveryStorage().
Reference< XComponent > dbaccess::SubComponentRecovery::recoverFromStorage | ( | const css::uno::Reference< css::embed::XStorage > & | i_rRecoveryStorage, |
const OUString & | i_rComponentName, | ||
const bool | i_bForEditing | ||
) |
Definition at line 604 of file subcomponentrecovery.cxx.
References dbaccess::FORM, impl_recoverQueryDesign_throw(), impl_recoverSubDocument_throw(), m_eType, dbaccess::QUERY, and dbaccess::REPORT.
Referenced by dbaccess::DatabaseDocumentRecovery::recoverSubDocuments().
void dbaccess::SubComponentRecovery::saveToRecoveryStorage | ( | const css::uno::Reference< css::embed::XStorage > & | i_rRecoveryStorage, |
MapCompTypeToCompDescs & | io_mapCompDescs | ||
) |
Definition at line 369 of file subcomponentrecovery.cxx.
References dbaccess::tools::stor::commitStorageIfWriteable(), dbaccess::FORM, getComponentsStorageName(), impl_saveQueryDesign_throw(), impl_saveSubDocument_throw(), m_aCompDesc, m_eType, dbaccess::QUERY, dbaccess::REPORT, and dbaccess::UNKNOWN.
Referenced by dbaccess::DatabaseDocumentRecovery::saveModifiedSubComponents().
|
private |
Definition at line 110 of file subcomponentrecovery.hxx.
Referenced by impl_identifyComponent_throw(), and saveToRecoveryStorage().
|
private |
Definition at line 109 of file subcomponentrecovery.hxx.
Referenced by impl_identifyComponent_throw(), impl_recoverQueryDesign_throw(), impl_recoverSubDocument_throw(), impl_saveQueryDesign_throw(), impl_saveSubDocument_throw(), recoverFromStorage(), and saveToRecoveryStorage().
|
private |
Definition at line 104 of file subcomponentrecovery.hxx.
Referenced by impl_identifyComponent_throw(), impl_recoverQueryDesign_throw(), and impl_saveQueryDesign_throw().
|
private |
Definition at line 108 of file subcomponentrecovery.hxx.
Referenced by impl_identifyComponent_throw(), impl_saveQueryDesign_throw(), and impl_saveSubDocument_throw().
|
private |
Definition at line 106 of file subcomponentrecovery.hxx.
Referenced by impl_identifyComponent_throw(), impl_recoverQueryDesign_throw(), and impl_recoverSubDocument_throw().