LibreOffice Module dbaccess (master) 1
|
helper class monitoring the views of a document, and firing appropriate events when views are attached / detached More...
#include <databasedocument.hxx>
Public Member Functions | |
ViewMonitor (DocumentEventNotifier &_rEventNotifier) | |
ViewMonitor (const ViewMonitor &)=delete | |
const ViewMonitor & | operator= (const ViewMonitor &)=delete |
void | reset () |
bool | onControllerConnected (const css::uno::Reference< css::frame::XController > &_rxController) |
to be called when a view (aka controller) has been connected to the document More... | |
bool | onSetCurrentController (const css::uno::Reference< css::frame::XController > &_rxController) |
to be called when a controller is set as current controller More... | |
void | onLoadedDocument () |
Private Attributes | |
DocumentEventNotifier & | m_rEventNotifier |
bool | m_bIsNewDocument |
bool | m_bEverHadController |
bool | m_bLastIsFirstEverController |
css::uno::Reference< css::frame::XController > | m_xLastConnectedController |
helper class monitoring the views of a document, and firing appropriate events when views are attached / detached
Definition at line 82 of file databasedocument.hxx.
|
inlineexplicit |
Definition at line 85 of file databasedocument.hxx.
|
delete |
bool dbaccess::ViewMonitor::onControllerConnected | ( | const css::uno::Reference< css::frame::XController > & | _rxController | ) |
to be called when a view (aka controller) has been connected to the document
Definition at line 107 of file databasedocument.cxx.
References m_bEverHadController, m_bLastIsFirstEverController, and m_xLastConnectedController.
Referenced by dbaccess::ODatabaseDocument::connectController().
|
inline |
Definition at line 122 of file databasedocument.hxx.
References m_bIsNewDocument.
Referenced by dbaccess::ODatabaseDocument::load(), and dbaccess::ODatabaseDocument::ODatabaseDocument().
bool dbaccess::ViewMonitor::onSetCurrentController | ( | const css::uno::Reference< css::frame::XController > & | _rxController | ) |
to be called when a controller is set as current controller
Definition at line 118 of file databasedocument.cxx.
References m_bIsNewDocument, m_bLastIsFirstEverController, m_rEventNotifier, m_xLastConnectedController, and dbaccess::DocumentEventNotifier::notifyDocumentEventAsync().
Referenced by dbaccess::ODatabaseDocument::setCurrentController().
|
delete |
|
inline |
Definition at line 97 of file databasedocument.hxx.
References m_bEverHadController, m_bLastIsFirstEverController, and m_xLastConnectedController.
Referenced by dbaccess::ODatabaseDocument::disposing().
|
private |
Definition at line 127 of file databasedocument.hxx.
Referenced by onControllerConnected(), and reset().
|
private |
Definition at line 126 of file databasedocument.hxx.
Referenced by onLoadedDocument(), and onSetCurrentController().
|
private |
Definition at line 128 of file databasedocument.hxx.
Referenced by onControllerConnected(), onSetCurrentController(), and reset().
|
private |
Definition at line 125 of file databasedocument.hxx.
Referenced by onSetCurrentController().
|
private |
Definition at line 130 of file databasedocument.hxx.
Referenced by onControllerConnected(), onSetCurrentController(), and reset().