LibreOffice Module dbaccess (master) 1
|
an extended version of the ModelMethodGuard, which also cares for the initialization state of the document More...
#include <databasedocument.hxx>
Public Types | |
enum | InitMethod_ { InitMethod } |
enum | DefaultMethod_ { DefaultMethod } |
enum | MethodUsedDuringInit_ { MethodUsedDuringInit } |
enum | MethodWithoutInit_ { MethodWithoutInit } |
Public Member Functions | |
DocumentGuard (const ODatabaseDocument &_document, DefaultMethod_) | |
constructs the guard More... | |
DocumentGuard (const ODatabaseDocument &_document, InitMethod_) | |
constructs the guard More... | |
DocumentGuard (const ODatabaseDocument &_document, MethodUsedDuringInit_) | |
constructs the guard More... | |
DocumentGuard (const ODatabaseDocument &_document, MethodWithoutInit_) | |
constructs the guard More... | |
void | clear () |
void | reset () |
Private Attributes | |
const ODatabaseDocument & | m_document |
Additional Inherited Members | |
Private Member Functions inherited from dbaccess::ModelMethodGuard | |
ModelMethodGuard (const ModelDependentComponent &_component) | |
constructs the guard More... | |
void | clear () |
void | reset () |
an extended version of the ModelMethodGuard, which also cares for the initialization state of the document
Definition at line 639 of file databasedocument.hxx.
Enumerator | |
---|---|
DefaultMethod |
Definition at line 648 of file databasedocument.hxx.
Enumerator | |
---|---|
InitMethod |
Definition at line 642 of file databasedocument.hxx.
Enumerator | |
---|---|
MethodUsedDuringInit |
Definition at line 654 of file databasedocument.hxx.
Enumerator | |
---|---|
MethodWithoutInit |
Definition at line 660 of file databasedocument.hxx.
|
inline |
constructs the guard
_document | the ODatabaseDocument instance |
css::lang::DisposedException | If the given component is already disposed |
css::lang::NotInitializedException | if the given component is not yet initialized |
Definition at line 678 of file databasedocument.hxx.
References dbaccess::ODatabaseDocument::checkInitialized(), and m_document.
|
inline |
constructs the guard
_document | the ODatabaseDocument instance |
css::lang::DisposedException | If the given component is already disposed |
css::frame::DoubleInitializationException | if the given component is already initialized, or currently being initialized. |
Definition at line 696 of file databasedocument.hxx.
References dbaccess::ODatabaseDocument::checkNotInitialized(), and m_document.
|
inline |
constructs the guard
_document | the ODatabaseDocument instance |
css::lang::DisposedException | If the given component is already disposed |
css::lang::NotInitializedException | if the component is still uninitialized, and not in the initialization phase currently. |
Definition at line 715 of file databasedocument.hxx.
References dbaccess::ODatabaseDocument::checkNotUninitialized(), and m_document.
|
inline |
constructs the guard
_document | the ODatabaseDocument instance |
css::lang::DisposedException | If the given component is already disposed |
Definition at line 730 of file databasedocument.hxx.
|
inline |
Definition at line 736 of file databasedocument.hxx.
References dbaccess::ModelMethodGuard::clear().
Referenced by dbaccess::ODatabaseDocument::createViewController(), dbaccess::ODatabaseDocument::impl_attachResource(), dbaccess::ODatabaseDocument::impl_setModified_nothrow(), dbaccess::ODatabaseDocument::impl_storeAs_throw(), dbaccess::ODatabaseDocument::load(), dbaccess::ODatabaseDocument::notifyDocumentEvent(), dbaccess::ODatabaseDocument::recoverFromFile(), dbaccess::ODatabaseDocument::storeAsURL(), dbaccess::ODatabaseDocument::storeToURL(), and dbaccess::ODatabaseDocument::switchToStorage().
|
inline |
Definition at line 740 of file databasedocument.hxx.
References dbaccess::ModelDependentComponent::checkDisposed(), m_document, and dbaccess::ModelMethodGuard::reset().
Referenced by dbaccess::ODatabaseDocument::impl_storeAs_throw(), dbaccess::ODatabaseDocument::load(), dbaccess::ODatabaseDocument::recoverFromFile(), dbaccess::ODatabaseDocument::storeAsURL(), and dbaccess::ODatabaseDocument::storeToURL().
|
private |
Definition at line 748 of file databasedocument.hxx.
Referenced by DocumentGuard(), and reset().