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)
 

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

osl::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 61 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(), get(), m_xContext, and m_xDocEvtNotifier.

OfficeDocumentsManager::~OfficeDocumentsManager ( )
overridevirtual

Definition at line 99 of file tdoc_docmgr.cxx.

References m_xDocCloseListener.

Member Function Documentation

void OfficeDocumentsManager::buildDocumentsList ( )
private
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)
overridevirtual

Definition at line 397 of file tdoc_docmgr.cxx.

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

Definition at line 583 of file tdoc_docmgr.cxx.

References m_aMtx, m_xContext, and m_xModuleMgr.

Referenced by isOfficeDocument().

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

Definition at line 532 of file tdoc_docmgr.cxx.

References comphelper::NamedValueCollection::getOrDefault().

Referenced by isOfficeDocument().

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

Definition at line 545 of file tdoc_docmgr.cxx.

Referenced by isOfficeDocument().

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

Definition at line 556 of file tdoc_docmgr.cxx.

References xController, and xFrame.

Referenced by isOfficeDocument().

OUString OfficeDocumentsManager::queryDocumentId ( const css::uno::Reference< css::frame::XModel > &  xModel)
static
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
private
osl::Mutex tdoc_ucp::OfficeDocumentsManager::m_aMtx
private
ContentProvider* const tdoc_ucp::OfficeDocumentsManager::m_pDocEventListener
private

Definition at line 146 of file tdoc_docmgr.hxx.

Referenced by documentEventOccured().

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

Definition at line 142 of file tdoc_docmgr.hxx.

Referenced by isBasicIDE().

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

Definition at line 143 of file tdoc_docmgr.hxx.

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

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

Definition at line 144 of file tdoc_docmgr.hxx.

Referenced by isBasicIDE().


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