LibreOffice Module forms (master) 1
|
#include <clickableimage.hxx>
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_Impl * | getImageProducerThread () |
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_Impl > | m_pThread |
::comphelper::OInterfaceContainerHelper3< css::form::submission::XSubmissionVetoListener > | m_aSubmissionVetoListeners |
ControlFeatureInterception | m_aFeatureInterception |
Friends | |
class | OImageProducerThread_Impl |
Definition at line 184 of file clickableimage.hxx.
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.
|
overridevirtual |
Definition at line 95 of file clickableimage.cxx.
References cppu::OComponentHelper::acquire(), and frm::OControl::dispose().
|
overrideprotectedvirtual |
Reimplemented from frm::OControl.
Reimplemented in frm::OImageButtonControl.
Definition at line 77 of file clickableimage.cxx.
References frm::OControl::_getTypes(), aTypes, concatSequences(), and cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 >::getTypes().
Referenced by frm::OButtonControl::_getTypes().
|
protectedvirtual |
Reimplemented in frm::OButtonControl.
Definition at line 189 of file clickableimage.cxx.
References approveAction(), frm::OControl::getModel(), and PROPERTY_BUTTONTYPE.
Referenced by frm::OButtonControl::actionPerformed_Impl(), and frm::OImageButtonControl::mousePressed().
|
overrideprotectedvirtual |
Definition at line 116 of file clickableimage.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_aApproveActionListeners.
|
overrideprotectedvirtual |
Definition at line 338 of file clickableimage.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_aSubmissionVetoListeners.
|
protected |
approves the action by calling the approve listeners
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().
|
overrideprotectedvirtual |
Reimplemented from frm::OControl.
Reimplemented in frm::OImageButtonControl, and frm::OImageButtonControl.
Definition at line 203 of file FormComponent.cxx.
References query_aggregation().
|
overrideprotectedvirtual |
Reimplemented from frm::OControl.
Reimplemented in frm::OButtonControl, frm::OImageButtonControl, and frm::OImageButtonControl.
Definition at line 143 of file clickableimage.cxx.
References aEvent, frm::ControlFeatureInterception::dispose(), comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), frm::OControl::disposing(), m_aActionListeners, m_aApproveActionListeners, m_aFeatureInterception, frm::OControl::m_aMutex, m_aSubmissionVetoListeners, and m_pThread.
Referenced by frm::OButtonControl::disposing().
|
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().
|
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().
|
overrideprotectedvirtual |
Reimplemented from frm::OControl.
Reimplemented in frm::OButtonControl, and frm::OImageButtonControl.
Definition at line 362 of file clickableimage.cxx.
References FRM_SUN_CONTROL_SUBMITBUTTON, and frm::OControl::getSupportedServiceNames().
Referenced by frm::OButtonControl::getSupportedServiceNames().
|
private |
Definition at line 374 of file clickableimage.cxx.
References Exception, cppu::getCaughtException(), frm::OControl::getModel(), m_aSubmissionVetoListeners, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), and TOOLS_WARN_EXCEPTION.
Referenced by submit(), and submitWithInteraction().
|
overrideprotectedvirtual |
Reimplemented from frm::OControl.
Reimplemented in frm::OButtonControl, and frm::OImageButtonControl.
Definition at line 106 of file clickableimage.cxx.
References Any, and frm::OControl::queryAggregation().
Referenced by frm::OButtonControl::queryAggregation(), and frm::OImageButtonControl::queryAggregation().
|
overrideprotectedvirtual |
Reimplemented in frm::OButtonControl.
Definition at line 130 of file clickableimage.cxx.
References m_aFeatureInterception, and frm::ControlFeatureInterception::registerDispatchProviderInterceptor().
|
overrideprotectedvirtual |
Reimplemented in frm::OButtonControl.
Definition at line 136 of file clickableimage.cxx.
References m_aFeatureInterception, and frm::ControlFeatureInterception::releaseDispatchProviderInterceptor().
|
overrideprotectedvirtual |
Definition at line 123 of file clickableimage.cxx.
References m_aApproveActionListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overrideprotectedvirtual |
Definition at line 344 of file clickableimage.cxx.
References m_aSubmissionVetoListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overrideprotectedvirtual |
Definition at line 356 of file clickableimage.cxx.
References implSubmit().
|
overrideprotectedvirtual |
Definition at line 350 of file clickableimage.cxx.
References implSubmit().
|
friend |
Definition at line 187 of file clickableimage.hxx.
Referenced by getImageProducerThread().
|
protected |
Definition at line 198 of file clickableimage.hxx.
Referenced by frm::OButtonControl::setActionCommand().
|
protected |
Definition at line 197 of file clickableimage.hxx.
Referenced by frm::OButtonControl::addActionListener(), disposing(), and frm::OButtonControl::removeActionListener().
|
protected |
Definition at line 196 of file clickableimage.hxx.
Referenced by addApproveActionListener(), approveAction(), disposing(), frm::OImageButtonControl::mousePressed(), and removeApproveActionListener().
|
private |
Definition at line 193 of file clickableimage.hxx.
Referenced by disposing(), registerDispatchProviderInterceptor(), and releaseDispatchProviderInterceptor().
|
private |
Definition at line 192 of file clickableimage.hxx.
Referenced by addSubmissionVetoListener(), disposing(), implSubmit(), and removeSubmissionVetoListener().
|
private |
Definition at line 190 of file clickableimage.hxx.
Referenced by disposing(), and getImageProducerThread().