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:
Collaboration diagram for tdoc_ucp::OfficeDocumentsManager:


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)

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 60 of file tdoc_docmgr.hxx.

Constructor & Destructor Documentation

OfficeDocumentsManager::OfficeDocumentsManager ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
ContentProvider pDocEventListener 

Definition at line 83 of file tdoc_docmgr.cxx.

References buildDocumentsList(), frame, get(), m_xContext, and m_xDocEvtNotifier.

OfficeDocumentsManager::~OfficeDocumentsManager ( )

Definition at line 99 of file tdoc_docmgr.cxx.

References m_xDocCloseListener.

Member Function Documentation

void OfficeDocumentsManager::buildDocumentsList ( )
void OfficeDocumentsManager::destroy ( )

Definition at line 110 of file tdoc_docmgr.cxx.

References m_xDocEvtNotifier.

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

Definition at line 397 of file tdoc_docmgr.cxx.

void SAL_CALL OfficeDocumentsManager::documentEventOccured ( const css::document::DocumentEvent &  Event)
bool OfficeDocumentsManager::isBasicIDE ( const css::uno::Reference< css::frame::XModel > &  xModel)

Definition at line 581 of file tdoc_docmgr.cxx.

References m_aMtx, m_xContext, m_xModuleMgr, and TOOLS_WARN_EXCEPTION.

Referenced by isOfficeDocument().

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

Definition at line 532 of file tdoc_docmgr.cxx.

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

Referenced by isOfficeDocument().

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

Definition at line 543 of file tdoc_docmgr.cxx.

Referenced by isOfficeDocument().

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

Definition at line 554 of file tdoc_docmgr.cxx.

References xController, and xFrame.

Referenced by isOfficeDocument().

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

Definition at line 499 of file tdoc_docmgr.cxx.

References m_aDocs, and m_aMtx.

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

Definition at line 511 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 479 of file tdoc_docmgr.cxx.

References m_aDocs, and m_aMtx.

OUString OfficeDocumentsManager::queryStorageTitle ( const OUString &  rDocId)

Definition at line 520 of file tdoc_docmgr.cxx.

References m_aDocs, and m_aMtx.

Member Data Documentation

DocumentList tdoc_ucp::OfficeDocumentsManager::m_aDocs
std::mutex tdoc_ucp::OfficeDocumentsManager::m_aMtx
ContentProvider* const tdoc_ucp::OfficeDocumentsManager::m_pDocEventListener

Definition at line 145 of file tdoc_docmgr.hxx.

Referenced by documentEventOccured().

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

Definition at line 141 of file tdoc_docmgr.hxx.

Referenced by isBasicIDE().

::rtl::Reference<OfficeDocumentsCloseListener> const tdoc_ucp::OfficeDocumentsManager::m_xDocCloseListener
css::uno::Reference< css::frame::XGlobalEventBroadcaster > tdoc_ucp::OfficeDocumentsManager::m_xDocEvtNotifier

Definition at line 142 of file tdoc_docmgr.hxx.

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

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

Definition at line 143 of file tdoc_docmgr.hxx.

Referenced by isBasicIDE().

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