LibreOffice Module forms (master) 1
|
#include <ImageControl.hxx>
Public Member Functions | |
OImageControlControl (const css::uno::Reference< css::uno::XComponentContext > &_rxFactory) | |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &_rSource) override |
OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | mousePressed (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseReleased (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseEntered (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | mouseExited (const css::awt::MouseEvent &e) override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | disposing () override |
Public Member Functions inherited from frm::OBoundControl | |
OBoundControl (const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const OUString &_rAggregateService, const bool _bSetDelegator=true) | |
virtual | ~OBoundControl () override |
virtual css::uno::Any SAL_CALL | queryAggregation (const css::uno::Type &_rType) override |
virtual sal_Bool SAL_CALL | getLock () override |
virtual void SAL_CALL | setLock (sal_Bool _bLock) override |
virtual sal_Bool SAL_CALL | setModel (const css::uno::Reference< css::awt::XControlModel > &Model) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | disposing () 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 > () |
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 cppu::ImplHelper1< class Ifc1 > | |
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 cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
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 |
Private Member Functions | |
virtual css::uno::Sequence< css::uno::Type > | _getTypes () override |
void | implClearGraphics (bool _bForce) |
bool | implInsertGraphics () |
bool | impl_isEmptyGraphics_nothrow () const |
determines whether the control does currently have an empty graphic set More... | |
Private Attributes | |
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > | m_aModifyListeners |
Additional Inherited Members | |
Protected Member Functions inherited from frm::OBoundControl | |
virtual css::uno::Sequence< css::uno::Type > | _getTypes () override |
void | _setLock (bool _bLock) |
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 Member Functions inherited from cppu::ImplHelper3< class Ifc1, class Ifc2, class Ifc3 > | |
~ImplHelper3 () SAL_NOEXCEPT | |
Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 > | |
~ImplHelper1 () SAL_NOEXCEPT | |
Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
~ImplHelper2 () SAL_NOEXCEPT | |
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 |
Definition at line 145 of file ImageControl.hxx.
|
explicit |
Definition at line 681 of file ImageControl.cxx.
References m_aMutex, cppu::OWeakObject::m_refCount, frm::OControl::m_xAggregate, and query_aggregation().
|
overrideprivatevirtual |
Reimplemented from frm::OBoundControl.
Definition at line 672 of file ImageControl.cxx.
References frm::OBoundControl::_getTypes(), concatSequences(), and cppu::ImplHelper2< class Ifc1, class Ifc2 >::getTypes().
|
overridevirtual |
Definition at line 723 of file ImageControl.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), and m_aModifyListeners.
|
overridevirtual |
Reimplemented from frm::OBoundControl.
Definition at line 735 of file ImageControl.cxx.
References aEvent, comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), frm::OBoundControl::disposing(), and m_aModifyListeners.
|
overridevirtual |
Reimplemented from frm::OBoundControl.
|
inlineoverridevirtual |
Implements frm::OControl.
Definition at line 165 of file ImageControl.hxx.
|
overridevirtual |
Reimplemented from frm::OControl.
Definition at line 711 of file ImageControl.cxx.
References FRM_SUN_CONTROL_IMAGECONTROL, frm::OControl::getSupportedServiceNames(), and STARDIV_ONE_FORM_CONTROL_IMAGECONTROL.
|
private |
determines whether the control does currently have an empty graphic set
Definition at line 842 of file ImageControl.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and frm::OControl::getModel().
Referenced by mousePressed().
|
private |
Definition at line 750 of file ImageControl.cxx.
References Any, frm::OControl::getModel(), and PROPERTY_IMAGE_URL.
Referenced by implInsertGraphics(), and mousePressed().
|
private |
Definition at line 773 of file ImageControl.cxx.
References Any, ERRCODE_NONE, Exception, sfx2::FileDialogHelper::Execute(), sfx2::FileDialogHelper::FormsInsertImage, sfx2::FileDialogHelper::GetFilePicker(), Application::GetFrameWeld(), sfx2::FileDialogHelper::GetGraphic(), frm::OControl::getModel(), sfx2::FileDialogHelper::GetPath(), Graphic::GetXGraphic(), hasProperty(), implClearGraphics(), frm::ResourceManager::loadString(), PROPERTY_BOUNDFIELD, PROPERTY_FIELDTYPE, PROPERTY_GRAPHIC, PROPERTY_IMAGE_URL, sfx2::FileDialogHelper::SetContext(), sfx2::FileDialogHelper::SetTitle(), TOOLS_WARN_EXCEPTION, and xController.
Referenced by mousePressed().
|
overridevirtual |
Definition at line 967 of file ImageControl.cxx.
|
overridevirtual |
Definition at line 972 of file ImageControl.cxx.
|
overridevirtual |
Definition at line 863 of file ImageControl.cxx.
References aEvent, bReadOnly, DBG_ASSERT, frm::OControl::getModel(), frm::OControl::getPeer(), hasProperty(), ID_CLEAR_GRAPHICS, ID_OPEN_GRAPHICS, impl_isEmptyGraphics_nothrow(), implClearGraphics(), implInsertGraphics(), frm::ResourceManager::loadString(), m_aModifyListeners, frm::OControl::m_xContext, comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach(), PROPERTY_BOUNDFIELD, PROPERTY_CONTROLSOURCE, and PROPERTY_READONLY.
|
overridevirtual |
Definition at line 962 of file ImageControl.cxx.
|
overridevirtual |
Reimplemented from frm::OBoundControl.
Definition at line 697 of file ImageControl.cxx.
References Any, and frm::OBoundControl::queryAggregation().
|
overridevirtual |
Definition at line 729 of file ImageControl.cxx.
References m_aModifyListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
private |
Definition at line 149 of file ImageControl.hxx.
Referenced by addModifyListener(), disposing(), mousePressed(), and removeModifyListener().