LibreOffice Module scripting (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
func_provider::ActiveMSPList Class Reference

#include <ActiveMSPList.hxx>

Inheritance diagram for func_provider::ActiveMSPList:
[legend]
Collaboration diagram for func_provider::ActiveMSPList:
[legend]

Public Member Functions

 ActiveMSPList (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~ActiveMSPList () override
 
css::uno::Reference< css::script::provider::XScriptProvider > getMSPFromStringContext (const OUString &context)
 
css::uno::Reference< css::script::provider::XScriptProvider > getMSPFromAnyContext (const css::uno::Any &context)
 
css::uno::Reference< css::script::provider::XScriptProvider > getMSPFromInvocationContext (const css::uno::Reference< css::document::XScriptInvocationContext > &context)
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

void addActiveMSP (const css::uno::Reference< css::uno::XInterface > &xComponent, const css::uno::Reference< css::script::provider::XScriptProvider > &msp)
 
css::uno::Reference< css::script::provider::XScriptProvider > createNewMSP (const css::uno::Any &context)
 
css::uno::Reference< css::script::provider::XScriptProvider > createNewMSP (const OUString &context)
 
void createNonDocMSPs ()
 

Private Attributes

Msp_hash m_hMsps
 
ScriptComponent_map m_mScriptComponents
 
osl::Mutex m_mutex
 
OUString userDirString
 
OUString shareDirString
 
OUString bundledDirString
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Friends

class NonDocMSPCreator
 

Detailed Description

Definition at line 47 of file ActiveMSPList.hxx.

Constructor & Destructor Documentation

◆ ActiveMSPList()

func_provider::ActiveMSPList::ActiveMSPList ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit

Definition at line 37 of file ActiveMSPList.cxx.

References bundledDirString, m_xContext, shareDirString, and userDirString.

◆ ~ActiveMSPList()

func_provider::ActiveMSPList::~ActiveMSPList ( )
overridevirtual

Definition at line 44 of file ActiveMSPList.cxx.

Member Function Documentation

◆ addActiveMSP()

void func_provider::ActiveMSPList::addActiveMSP ( const css::uno::Reference< css::uno::XInterface > &  xComponent,
const css::uno::Reference< css::script::provider::XScriptProvider > &  msp 
)
private

◆ createNewMSP() [1/2]

css::uno::Reference< css::script::provider::XScriptProvider > func_provider::ActiveMSPList::createNewMSP ( const css::uno::Any &  context)
private

◆ createNewMSP() [2/2]

css::uno::Reference< css::script::provider::XScriptProvider > func_provider::ActiveMSPList::createNewMSP ( const OUString &  context)
inlineprivate

Definition at line 76 of file ActiveMSPList.hxx.

References createNewMSP().

◆ createNonDocMSPs()

void func_provider::ActiveMSPList::createNonDocMSPs ( )
private

◆ disposing()

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

Definition at line 249 of file ActiveMSPList.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_mScriptComponents, m_mutex, pos, and Source.

◆ getMSPFromAnyContext()

Reference< provider::XScriptProvider > func_provider::ActiveMSPList::getMSPFromAnyContext ( const css::uno::Any &  context)

◆ getMSPFromInvocationContext()

Reference< provider::XScriptProvider > func_provider::ActiveMSPList::getMSPFromInvocationContext ( const css::uno::Reference< css::document::XScriptInvocationContext > &  context)

Definition at line 121 of file ActiveMSPList.cxx.

References addActiveMSP(), createNewMSP(), m_mScriptComponents, m_mutex, and pos.

Referenced by getMSPFromAnyContext().

◆ getMSPFromStringContext()

Reference< provider::XScriptProvider > func_provider::ActiveMSPList::getMSPFromStringContext ( const OUString &  context)

Friends And Related Function Documentation

◆ NonDocMSPCreator

friend class NonDocMSPCreator
friend

Definition at line 81 of file ActiveMSPList.hxx.

Member Data Documentation

◆ bundledDirString

OUString func_provider::ActiveMSPList::bundledDirString
private

Definition at line 89 of file ActiveMSPList.hxx.

Referenced by ActiveMSPList(), and createNonDocMSPs().

◆ m_hMsps

Msp_hash func_provider::ActiveMSPList::m_hMsps
private

◆ m_mScriptComponents

ScriptComponent_map func_provider::ActiveMSPList::m_mScriptComponents
private

◆ m_mutex

osl::Mutex func_provider::ActiveMSPList::m_mutex
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > func_provider::ActiveMSPList::m_xContext
private

Definition at line 90 of file ActiveMSPList.hxx.

Referenced by createNonDocMSPs(), and getMSPFromAnyContext().

◆ shareDirString

OUString func_provider::ActiveMSPList::shareDirString
private

Definition at line 88 of file ActiveMSPList.hxx.

Referenced by ActiveMSPList(), createNonDocMSPs(), and getMSPFromAnyContext().

◆ userDirString

OUString func_provider::ActiveMSPList::userDirString
private

Definition at line 87 of file ActiveMSPList.hxx.

Referenced by ActiveMSPList(), and createNonDocMSPs().


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