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

#include <dlgevtatt.hxx>

Inheritance diagram for dlgprov::DialogEventsAttacherImpl:
[legend]
Collaboration diagram for dlgprov::DialogEventsAttacherImpl:
[legend]

Public Member Functions

 DialogEventsAttacherImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::awt::XControl > &xControl, const css::uno::Reference< css::uno::XInterface > &xHandler, const css::uno::Reference< css::beans::XIntrospectionAccess > &xIntrospect, bool bProviderMode, const css::uno::Reference< css::script::XScriptListener > &xRTLListener, const OUString &sDialogLibName)
 
virtual ~DialogEventsAttacherImpl () override
 
virtual void SAL_CALL attachEvents (const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &Objects, const css::uno::Reference< css::script::XScriptListener > &, const css::uno::Any &Helper) override
 

Private Member Functions

css::uno::Reference< css::script::XScriptListener > const & getScriptListenerForKey (const OUString &sScriptName)
 
css::uno::Reference< css::script::XScriptEventsSupplier > getFakeVbaEventsSupplier (const css::uno::Reference< css::awt::XControl > &xControl, OUString const &sCodeName)
 
void nestedAttachEvents (const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &Objects, const css::uno::Any &Helper, OUString &sDialogCodeName)
 
void attachEventsToControl (const css::uno::Reference< css::awt::XControl > &xControl, const css::uno::Reference< css::script::XScriptEventsSupplier > &events, const css::uno::Any &Helper)
 

Private Attributes

bool mbUseFakeVBAEvents
 
ListenerHash listenersForTypes
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher
 

Detailed Description

Definition at line 46 of file dlgevtatt.hxx.

Constructor & Destructor Documentation

◆ DialogEventsAttacherImpl()

dlgprov::DialogEventsAttacherImpl::DialogEventsAttacherImpl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::frame::XModel > &  xModel,
const css::uno::Reference< css::awt::XControl > &  xControl,
const css::uno::Reference< css::uno::XInterface > &  xHandler,
const css::uno::Reference< css::beans::XIntrospectionAccess > &  xIntrospect,
bool  bProviderMode,
const css::uno::Reference< css::script::XScriptListener > &  xRTLListener,
const OUString &  sDialogLibName 
)

Definition at line 158 of file dlgevtatt.cxx.

References listenersForTypes, m_xContext, and mbUseFakeVBAEvents.

◆ ~DialogEventsAttacherImpl()

dlgprov::DialogEventsAttacherImpl::~DialogEventsAttacherImpl ( )
overridevirtual

Definition at line 187 of file dlgevtatt.cxx.

Member Function Documentation

◆ attachEvents()

void SAL_CALL dlgprov::DialogEventsAttacherImpl::attachEvents ( const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &  Objects,
const css::uno::Reference< css::script::XScriptListener > &  ,
const css::uno::Any &  Helper 
)
overridevirtual

◆ attachEventsToControl()

void dlgprov::DialogEventsAttacherImpl::attachEventsToControl ( const css::uno::Reference< css::awt::XControl > &  xControl,
const css::uno::Reference< css::script::XScriptEventsSupplier > &  events,
const css::uno::Any &  Helper 
)
private

◆ getFakeVbaEventsSupplier()

Reference< XScriptEventsSupplier > dlgprov::DialogEventsAttacherImpl::getFakeVbaEventsSupplier ( const css::uno::Reference< css::awt::XControl > &  xControl,
OUString const &  sCodeName 
)
private

Definition at line 200 of file dlgevtatt.cxx.

References m_xContext, and xSMgr.

Referenced by nestedAttachEvents().

◆ getScriptListenerForKey()

Reference< script::XScriptListener > const & dlgprov::DialogEventsAttacherImpl::getScriptListenerForKey ( const OUString &  sScriptName)
private
Exceptions
css::uno::RuntimeException

Definition at line 193 of file dlgevtatt.cxx.

References listenersForTypes.

Referenced by attachEventsToControl().

◆ nestedAttachEvents()

void dlgprov::DialogEventsAttacherImpl::nestedAttachEvents ( const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &  Objects,
const css::uno::Any &  Helper,
OUString &  sDialogCodeName 
)
private

Member Data Documentation

◆ listenersForTypes

ListenerHash dlgprov::DialogEventsAttacherImpl::listenersForTypes
private

Definition at line 50 of file dlgevtatt.hxx.

Referenced by DialogEventsAttacherImpl(), and getScriptListenerForKey().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > dlgprov::DialogEventsAttacherImpl::m_xContext
private

Definition at line 51 of file dlgevtatt.hxx.

Referenced by attachEvents(), and getFakeVbaEventsSupplier().

◆ m_xEventAttacher

css::uno::Reference< css::script::XEventAttacher > dlgprov::DialogEventsAttacherImpl::m_xEventAttacher
private

Definition at line 52 of file dlgevtatt.hxx.

Referenced by attachEvents(), and attachEventsToControl().

◆ mbUseFakeVBAEvents

bool dlgprov::DialogEventsAttacherImpl::mbUseFakeVBAEvents
private

Definition at line 49 of file dlgevtatt.hxx.

Referenced by DialogEventsAttacherImpl(), and nestedAttachEvents().


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