LibreOffice Module ucb (master) 1
|
#include <tdoc_docmgr.hxx>
Classes | |
class | OfficeDocumentsCloseListener |
Public Member Functions | |
OfficeDocumentsManager (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ContentProvider *pDocEventListener) | |
virtual | ~OfficeDocumentsManager () override |
void | destroy () |
virtual void SAL_CALL | documentEventOccured (const css::document::DocumentEvent &Event) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
css::uno::Reference< css::embed::XStorage > | queryStorage (const OUString &rDocId) |
css::uno::Reference< css::frame::XModel > | queryDocumentModel (const OUString &rDocId) |
css::uno::Sequence< OUString > | queryDocuments () |
OUString | queryStorageTitle (const OUString &rDocId) |
css::util::DateTime | queryStreamDateModified (OUString const &uri) |
void | updateStreamDateModified (OUString const &uri) |
Static Public Member Functions | |
static OUString | queryDocumentId (const css::uno::Reference< css::frame::XModel > &xModel) |
Private Member Functions | |
void | buildDocumentsList () |
bool | isOfficeDocument (const css::uno::Reference< css::uno::XInterface > &xDoc) |
bool | isBasicIDE (const css::uno::Reference< css::frame::XModel > &xModel) |
Static Private Member Functions | |
static bool | isDocumentPreview (const css::uno::Reference< css::frame::XModel > &xModel) |
static bool | isWithoutOrInTopLevelFrame (const css::uno::Reference< css::frame::XModel > &xModel) |
static bool | isHelpDocument (const css::uno::Reference< css::frame::XModel > &xModel) |
Private Attributes | |
std::mutex | m_aMtx |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::frame::XGlobalEventBroadcaster > | m_xDocEvtNotifier |
css::uno::Reference< css::frame::XModuleManager2 > | m_xModuleMgr |
DocumentList | m_aDocs |
ContentProvider *const | m_pDocEventListener |
::rtl::Reference< OfficeDocumentsCloseListener > const | m_xDocCloseListener |
Definition at line 64 of file tdoc_docmgr.hxx.
OfficeDocumentsManager::OfficeDocumentsManager | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
ContentProvider * | pDocEventListener | ||
) |
Definition at line 85 of file tdoc_docmgr.cxx.
References buildDocumentsList(), get(), and m_xDocEvtNotifier.
|
overridevirtual |
Definition at line 101 of file tdoc_docmgr.cxx.
References m_xDocCloseListener.
|
private |
Definition at line 406 of file tdoc_docmgr.cxx.
References getDocumentId(), comphelper::DocumentInfo::getDocumentTitle(), isOfficeDocument(), m_aDocs, m_aMtx, m_xDocCloseListener, m_xDocEvtNotifier, and xModel.
Referenced by OfficeDocumentsManager().
void OfficeDocumentsManager::destroy | ( | ) |
Definition at line 112 of file tdoc_docmgr.cxx.
References m_xDocEvtNotifier.
|
overridevirtual |
Definition at line 399 of file tdoc_docmgr.cxx.
|
overridevirtual |
Definition at line 163 of file tdoc_docmgr.cxx.
References getDocumentId(), comphelper::DocumentInfo::getDocumentTitle(), isOfficeDocument(), m_aDocs, m_aMtx, m_pDocEventListener, m_xDocCloseListener, tdoc_ucp::ContentProvider::notifyDocumentClosed(), tdoc_ucp::ContentProvider::notifyDocumentOpened(), and xModel.
|
private |
Definition at line 607 of file tdoc_docmgr.cxx.
References m_aMtx, m_xContext, m_xModuleMgr, TOOLS_WARN_EXCEPTION, and xModel.
Referenced by isOfficeDocument().
|
staticprivate |
Definition at line 558 of file tdoc_docmgr.cxx.
References comphelper::NamedValueCollection::getOrDefault(), u, and xModel.
Referenced by isOfficeDocument().
|
staticprivate |
Definition at line 569 of file tdoc_docmgr.cxx.
References xModel.
Referenced by isOfficeDocument().
|
private |
Definition at line 659 of file tdoc_docmgr.cxx.
References isBasicIDE(), isDocumentPreview(), isHelpDocument(), isWithoutOrInTopLevelFrame(), and xModel.
Referenced by buildDocumentsList(), and documentEventOccured().
|
staticprivate |
Definition at line 580 of file tdoc_docmgr.cxx.
References xController, xFrame, and xModel.
Referenced by isOfficeDocument().
|
static |
Definition at line 493 of file tdoc_docmgr.cxx.
References getDocumentId(), and xModel.
Referenced by tdoc_ucp::ContentProvider::createDocumentContentIdentifier().
uno::Reference< frame::XModel > OfficeDocumentsManager::queryDocumentModel | ( | const OUString & | rDocId | ) |
Definition at line 501 of file tdoc_docmgr.cxx.
uno::Sequence< OUString > OfficeDocumentsManager::queryDocuments | ( | ) |
Definition at line 513 of file tdoc_docmgr.cxx.
References m_aDocs, m_aMtx, and comphelper::mapKeysToSequence().
uno::Reference< embed::XStorage > OfficeDocumentsManager::queryStorage | ( | const OUString & | rDocId | ) |
Definition at line 481 of file tdoc_docmgr.cxx.
OUString OfficeDocumentsManager::queryStorageTitle | ( | const OUString & | rDocId | ) |
Definition at line 522 of file tdoc_docmgr.cxx.
css::util::DateTime OfficeDocumentsManager::queryStreamDateModified | ( | OUString const & | uri | ) |
Definition at line 534 of file tdoc_docmgr.cxx.
References getDocumentId(), m_aDocs, and m_aMtx.
void OfficeDocumentsManager::updateStreamDateModified | ( | OUString const & | uri | ) |
Definition at line 547 of file tdoc_docmgr.cxx.
References getDocumentId(), DateTime::GetUNODateTime(), i, m_aDocs, m_aMtx, SAL_WARN, and DateTime::SYSTEM.
|
private |
Definition at line 152 of file tdoc_docmgr.hxx.
Referenced by buildDocumentsList(), documentEventOccured(), queryDocumentModel(), queryDocuments(), queryStorage(), queryStorageTitle(), queryStreamDateModified(), and updateStreamDateModified().
|
private |
Definition at line 148 of file tdoc_docmgr.hxx.
Referenced by buildDocumentsList(), documentEventOccured(), isBasicIDE(), queryDocumentModel(), queryDocuments(), queryStorage(), queryStorageTitle(), queryStreamDateModified(), and updateStreamDateModified().
|
private |
Definition at line 153 of file tdoc_docmgr.hxx.
Referenced by documentEventOccured().
|
private |
Definition at line 149 of file tdoc_docmgr.hxx.
Referenced by isBasicIDE().
|
private |
Definition at line 154 of file tdoc_docmgr.hxx.
Referenced by buildDocumentsList(), documentEventOccured(), and ~OfficeDocumentsManager().
|
private |
Definition at line 150 of file tdoc_docmgr.hxx.
Referenced by buildDocumentsList(), destroy(), and OfficeDocumentsManager().
|
private |
Definition at line 151 of file tdoc_docmgr.hxx.
Referenced by isBasicIDE().