LibreOffice Module ucb (master) 1
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
tdoc_ucp::OfficeDocumentsManager Class Reference

#include <tdoc_docmgr.hxx>

Inheritance diagram for tdoc_ucp::OfficeDocumentsManager:
[legend]
Collaboration diagram for tdoc_ucp::OfficeDocumentsManager:
[legend]

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
 

Detailed Description

Definition at line 64 of file tdoc_docmgr.hxx.

Constructor & Destructor Documentation

◆ OfficeDocumentsManager()

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.

◆ ~OfficeDocumentsManager()

OfficeDocumentsManager::~OfficeDocumentsManager ( )
overridevirtual

Definition at line 101 of file tdoc_docmgr.cxx.

References m_xDocCloseListener.

Member Function Documentation

◆ buildDocumentsList()

void OfficeDocumentsManager::buildDocumentsList ( )
private

◆ destroy()

void OfficeDocumentsManager::destroy ( )

Definition at line 112 of file tdoc_docmgr.cxx.

References m_xDocEvtNotifier.

◆ disposing()

void SAL_CALL OfficeDocumentsManager::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 399 of file tdoc_docmgr.cxx.

◆ documentEventOccured()

void SAL_CALL OfficeDocumentsManager::documentEventOccured ( const css::document::DocumentEvent &  Event)
overridevirtual

◆ isBasicIDE()

bool OfficeDocumentsManager::isBasicIDE ( const css::uno::Reference< css::frame::XModel > &  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().

◆ isDocumentPreview()

bool OfficeDocumentsManager::isDocumentPreview ( const css::uno::Reference< css::frame::XModel > &  xModel)
staticprivate

Definition at line 558 of file tdoc_docmgr.cxx.

References comphelper::NamedValueCollection::getOrDefault(), u, and xModel.

Referenced by isOfficeDocument().

◆ isHelpDocument()

bool OfficeDocumentsManager::isHelpDocument ( const css::uno::Reference< css::frame::XModel > &  xModel)
staticprivate

Definition at line 569 of file tdoc_docmgr.cxx.

References xModel.

Referenced by isOfficeDocument().

◆ isOfficeDocument()

bool OfficeDocumentsManager::isOfficeDocument ( const css::uno::Reference< css::uno::XInterface > &  xDoc)
private

◆ isWithoutOrInTopLevelFrame()

bool OfficeDocumentsManager::isWithoutOrInTopLevelFrame ( const css::uno::Reference< css::frame::XModel > &  xModel)
staticprivate

Definition at line 580 of file tdoc_docmgr.cxx.

References xController, xFrame, and xModel.

Referenced by isOfficeDocument().

◆ queryDocumentId()

OUString OfficeDocumentsManager::queryDocumentId ( const css::uno::Reference< css::frame::XModel > &  xModel)
static

Definition at line 493 of file tdoc_docmgr.cxx.

References getDocumentId(), and xModel.

Referenced by tdoc_ucp::ContentProvider::createDocumentContentIdentifier().

◆ queryDocumentModel()

uno::Reference< frame::XModel > OfficeDocumentsManager::queryDocumentModel ( const OUString &  rDocId)

Definition at line 501 of file tdoc_docmgr.cxx.

References m_aDocs, and m_aMtx.

◆ queryDocuments()

uno::Sequence< OUString > OfficeDocumentsManager::queryDocuments ( )

Definition at line 513 of file tdoc_docmgr.cxx.

References m_aDocs, m_aMtx, and comphelper::mapKeysToSequence().

◆ queryStorage()

uno::Reference< embed::XStorage > OfficeDocumentsManager::queryStorage ( const OUString &  rDocId)

Definition at line 481 of file tdoc_docmgr.cxx.

References m_aDocs, and m_aMtx.

◆ queryStorageTitle()

OUString OfficeDocumentsManager::queryStorageTitle ( const OUString &  rDocId)

Definition at line 522 of file tdoc_docmgr.cxx.

References m_aDocs, and m_aMtx.

◆ queryStreamDateModified()

css::util::DateTime OfficeDocumentsManager::queryStreamDateModified ( OUString const &  uri)

Definition at line 534 of file tdoc_docmgr.cxx.

References getDocumentId(), m_aDocs, and m_aMtx.

◆ updateStreamDateModified()

void OfficeDocumentsManager::updateStreamDateModified ( OUString const &  uri)

Member Data Documentation

◆ m_aDocs

DocumentList tdoc_ucp::OfficeDocumentsManager::m_aDocs
private

◆ m_aMtx

std::mutex tdoc_ucp::OfficeDocumentsManager::m_aMtx
private

◆ m_pDocEventListener

ContentProvider* const tdoc_ucp::OfficeDocumentsManager::m_pDocEventListener
private

Definition at line 153 of file tdoc_docmgr.hxx.

Referenced by documentEventOccured().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > tdoc_ucp::OfficeDocumentsManager::m_xContext
private

Definition at line 149 of file tdoc_docmgr.hxx.

Referenced by isBasicIDE().

◆ m_xDocCloseListener

::rtl::Reference<OfficeDocumentsCloseListener> const tdoc_ucp::OfficeDocumentsManager::m_xDocCloseListener
private

◆ m_xDocEvtNotifier

css::uno::Reference< css::frame::XGlobalEventBroadcaster > tdoc_ucp::OfficeDocumentsManager::m_xDocEvtNotifier
private

Definition at line 150 of file tdoc_docmgr.hxx.

Referenced by buildDocumentsList(), destroy(), and OfficeDocumentsManager().

◆ m_xModuleMgr

css::uno::Reference< css::frame::XModuleManager2 > tdoc_ucp::OfficeDocumentsManager::m_xModuleMgr
private

Definition at line 151 of file tdoc_docmgr.hxx.

Referenced by isBasicIDE().


The documentation for this class was generated from the following files: