LibreOffice Module forms (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
frm::OClickableImageBaseControl Class Reference

#include <clickableimage.hxx>

Inheritance diagram for frm::OClickableImageBaseControl:
[legend]
Collaboration diagram for frm::OClickableImageBaseControl:
[legend]

Public Member Functions

 OClickableImageBaseControl (const css::uno::Reference< css::uno::XComponentContext > &_rxFactory, const OUString &_aService)
 
virtual ~OClickableImageBaseControl () override
 
- Public Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from frm::OControl
 OControl (const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const OUString &_rAggregateService, const bool _bSetDelegator=true)
 constructs a control More...
 
- Public Member Functions inherited from cppu::OComponentHelper
 OComponentHelper (::osl::Mutex &rMutex)
 
virtual ~OComponentHelper () SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE=0
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual void SAL_CALL dispose () SAL_OVERRIDE
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Protected Member Functions

virtual void SAL_CALL submit () override
 
virtual void SAL_CALL submitWithInteraction (const css::uno::Reference< css::task::XInteractionHandler > &aHandler) override
 
virtual void SAL_CALL addSubmissionVetoListener (const css::uno::Reference< css::form::submission::XSubmissionVetoListener > &listener) override
 
virtual void SAL_CALL removeSubmissionVetoListener (const css::uno::Reference< css::form::submission::XSubmissionVetoListener > &listener) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL addApproveActionListener (const css::uno::Reference< css::form::XApproveActionListener > &_rxListener) override
 
virtual void SAL_CALL removeApproveActionListener (const css::uno::Reference< css::form::XApproveActionListener > &_rxListener) override
 
virtual void SAL_CALL registerDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) override
 
virtual void SAL_CALL releaseDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) override
 
virtual void actionPerformed_Impl (bool bNotifyListener, const css::awt::MouseEvent &rEvt)
 
css::uno::Sequence< css::uno::Type > _getTypes () override
 
bool approveAction ()
 approves the action by calling the approve listeners More...
 
OImageProducerThread_ImplgetImageProducerThread ()
 retrieves (and if necessary creates) the image producer thread. More...
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
- Protected Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >
 ~ImplHelper3 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from frm::OControl
virtual ~OControl () override
 
void doSetDelegator ()
 sets the control as delegator at the aggregate More...
 
void doResetDelegator ()
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual void SAL_CALL setContext (const css::uno::Reference< css::uno::XInterface > &Context) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getContext () override
 
virtual void SAL_CALL createPeer (const css::uno::Reference< css::awt::XToolkit > &Toolkit, const css::uno::Reference< css::awt::XWindowPeer > &Parent) override
 
virtual css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer () override
 
virtual sal_Bool SAL_CALL setModel (const css::uno::Reference< css::awt::XControlModel > &Model) override
 
virtual css::uno::Reference< css::awt::XControlModel > SAL_CALL getModel () override
 
virtual css::uno::Reference< css::awt::XView > SAL_CALL getView () override
 
virtual void SAL_CALL setDesignMode (sal_Bool bOn) override
 
virtual sal_Bool SAL_CALL isDesignMode () override
 
virtual sal_Bool SAL_CALL isTransparent () override
 
virtual css::uno::Sequence< css::uno::Type > _getTypes ()
 
css::uno::Sequence< OUString > getAggregateServiceNames () const
 
virtual void SAL_CALL disposing ()
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Protected Attributes

::comphelper::OInterfaceContainerHelper3< css::form::XApproveActionListener > m_aApproveActionListeners
 
::comphelper::OInterfaceContainerHelper3< css::awt::XActionListener > m_aActionListeners
 
OUString m_aActionCommand
 
- Protected Attributes inherited from frm::OControl
::osl::Mutex m_aMutex
 
css::uno::Reference< css::awt::XControl > m_xControl
 
css::uno::Reference< css::uno::XAggregation > m_xAggregate
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
WindowStateGuard m_aWindowStateGuard
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Private Member Functions

void implSubmit (const css::awt::MouseEvent &_rEvent, const css::uno::Reference< css::task::XInteractionHandler > &aHandler)
 

Private Attributes

rtl::Reference< OImageProducerThread_Implm_pThread
 
::comphelper::OInterfaceContainerHelper3< css::form::submission::XSubmissionVetoListener > m_aSubmissionVetoListeners
 
ControlFeatureInterception m_aFeatureInterception
 

Friends

class OImageProducerThread_Impl
 

Detailed Description

Definition at line 184 of file clickableimage.hxx.

Constructor & Destructor Documentation

◆ OClickableImageBaseControl()

frm::OClickableImageBaseControl::OClickableImageBaseControl ( const css::uno::Reference< css::uno::XComponentContext > &  _rxFactory,
const OUString &  _aService 
)

Definition at line 85 of file clickableimage.cxx.

References m_aMutex.

◆ ~OClickableImageBaseControl()

frm::OClickableImageBaseControl::~OClickableImageBaseControl ( )
overridevirtual

Member Function Documentation

◆ _getTypes()

Sequence< Type > frm::OClickableImageBaseControl::_getTypes ( )
overrideprotectedvirtual

◆ actionPerformed_Impl()

void frm::OClickableImageBaseControl::actionPerformed_Impl ( bool  bNotifyListener,
const css::awt::MouseEvent &  rEvt 
)
protectedvirtual

◆ addApproveActionListener()

void frm::OClickableImageBaseControl::addApproveActionListener ( const css::uno::Reference< css::form::XApproveActionListener > &  _rxListener)
overrideprotectedvirtual

◆ addSubmissionVetoListener()

void SAL_CALL frm::OClickableImageBaseControl::addSubmissionVetoListener ( const css::uno::Reference< css::form::submission::XSubmissionVetoListener > &  listener)
overrideprotectedvirtual

◆ approveAction()

bool frm::OClickableImageBaseControl::approveAction ( )
protected

approves the action by calling the approve listeners

Returns
<TRUE> if and only if the action has not been cancelled by a listener

Definition at line 171 of file clickableimage.cxx.

References aEvent, comphelper::OInterfaceIteratorHelper3< class ListenerT >::hasMoreElements(), m_aApproveActionListeners, and comphelper::OInterfaceIteratorHelper3< class ListenerT >::next().

Referenced by frm::OButtonControl::actionPerformed_Impl(), and actionPerformed_Impl().

◆ disposing() [1/3]

void frm::OControl::disposing ( )
overrideprotectedvirtual

Reimplemented from frm::OControl.

Reimplemented in frm::OImageButtonControl, and frm::OImageButtonControl.

Definition at line 203 of file FormComponent.cxx.

References query_aggregation().

◆ disposing() [2/3]

void frm::OClickableImageBaseControl::disposing ( )
overrideprotectedvirtual

◆ disposing() [3/3]

void SAL_CALL frm::OControl::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

Reimplemented from frm::OControl.

Reimplemented in frm::OImageButtonControl.

Definition at line 214 of file FormComponent.cxx.

References frm::OControl::m_xAggregate, and query_aggregation().

◆ getImageProducerThread()

OImageProducerThread_Impl * frm::OClickableImageBaseControl::getImageProducerThread ( )
protected

retrieves (and if necessary creates) the image producer thread.

Must be called with our mutex locked

Definition at line 160 of file clickableimage.cxx.

References m_pThread, and OImageProducerThread_Impl.

Referenced by frm::OImageButtonControl::mousePressed().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL frm::OClickableImageBaseControl::getSupportedServiceNames ( )
overrideprotectedvirtual

◆ implSubmit()

void frm::OClickableImageBaseControl::implSubmit ( const css::awt::MouseEvent &  _rEvent,
const css::uno::Reference< css::task::XInteractionHandler > &  aHandler 
)
private

◆ queryAggregation()

Any SAL_CALL frm::OClickableImageBaseControl::queryAggregation ( const css::uno::Type &  _rType)
overrideprotectedvirtual

◆ registerDispatchProviderInterceptor()

void SAL_CALL frm::OClickableImageBaseControl::registerDispatchProviderInterceptor ( const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &  Interceptor)
overrideprotectedvirtual

◆ releaseDispatchProviderInterceptor()

void SAL_CALL frm::OClickableImageBaseControl::releaseDispatchProviderInterceptor ( const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &  Interceptor)
overrideprotectedvirtual

◆ removeApproveActionListener()

void frm::OClickableImageBaseControl::removeApproveActionListener ( const css::uno::Reference< css::form::XApproveActionListener > &  _rxListener)
overrideprotectedvirtual

◆ removeSubmissionVetoListener()

void SAL_CALL frm::OClickableImageBaseControl::removeSubmissionVetoListener ( const css::uno::Reference< css::form::submission::XSubmissionVetoListener > &  listener)
overrideprotectedvirtual

◆ submit()

void SAL_CALL frm::OClickableImageBaseControl::submit ( )
overrideprotectedvirtual

Definition at line 356 of file clickableimage.cxx.

References implSubmit().

◆ submitWithInteraction()

void SAL_CALL frm::OClickableImageBaseControl::submitWithInteraction ( const css::uno::Reference< css::task::XInteractionHandler > &  aHandler)
overrideprotectedvirtual

Definition at line 350 of file clickableimage.cxx.

References implSubmit().

Friends And Related Function Documentation

◆ OImageProducerThread_Impl

friend class OImageProducerThread_Impl
friend

Definition at line 187 of file clickableimage.hxx.

Referenced by getImageProducerThread().

Member Data Documentation

◆ m_aActionCommand

OUString frm::OClickableImageBaseControl::m_aActionCommand
protected

Definition at line 198 of file clickableimage.hxx.

Referenced by frm::OButtonControl::setActionCommand().

◆ m_aActionListeners

::comphelper::OInterfaceContainerHelper3<css::awt::XActionListener> frm::OClickableImageBaseControl::m_aActionListeners
protected

◆ m_aApproveActionListeners

::comphelper::OInterfaceContainerHelper3<css::form::XApproveActionListener> frm::OClickableImageBaseControl::m_aApproveActionListeners
protected

◆ m_aFeatureInterception

ControlFeatureInterception frm::OClickableImageBaseControl::m_aFeatureInterception
private

◆ m_aSubmissionVetoListeners

::comphelper::OInterfaceContainerHelper3<css::form::submission::XSubmissionVetoListener> frm::OClickableImageBaseControl::m_aSubmissionVetoListeners
private

◆ m_pThread

rtl::Reference<OImageProducerThread_Impl> frm::OClickableImageBaseControl::m_pThread
private

Definition at line 190 of file clickableimage.hxx.

Referenced by disposing(), and getImageProducerThread().


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