diff options
Diffstat (limited to 'forms/source/component/ImageControl.hxx')
-rw-r--r-- | forms/source/component/ImageControl.hxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/forms/source/component/ImageControl.hxx b/forms/source/component/ImageControl.hxx index 01ae8018a24f..245d13163e4f 100644 --- a/forms/source/component/ImageControl.hxx +++ b/forms/source/component/ImageControl.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FORMS_SOURCE_COMPONENT_IMAGECONTROL_HXX -#define INCLUDED_FORMS_SOURCE_COMPONENT_IMAGECONTROL_HXX +#pragma once #include <FormComponent.hxx> #include "imgprod.hxx" @@ -26,6 +25,7 @@ #include <com/sun/star/awt/XMouseListener.hpp> #include <com/sun/star/util/XModifyBroadcaster.hpp> #include <com/sun/star/graphic/XGraphicObject.hpp> +#include <comphelper/interfacecontainer3.hxx> #include <cppuhelper/implbase2.hxx> #include <rtl/ref.hxx> @@ -58,7 +58,14 @@ class OImageControlModel final ImageProducer* GetImageProducer() { return m_xImageProducer.get(); } public: - DECLARE_DEFAULT_LEAF_XTOR( OImageControlModel ); + OImageControlModel( + const css::uno::Reference< css::uno::XComponentContext>& _rxFactory + ); + OImageControlModel( + const OImageControlModel* _pOriginal, + const css::uno::Reference< css::uno::XComponentContext>& _rxFactory + ); + virtual ~OImageControlModel() override; virtual void SAL_CALL getFastPropertyValue(css::uno::Any& rValue, sal_Int32 nHandle ) const override; virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any& rValue) override; @@ -139,7 +146,7 @@ class OImageControlControl : public OBoundControl , public OImageControlControl_Base { private: - ::comphelper::OInterfaceContainerHelper2 m_aModifyListeners; + ::comphelper::OInterfaceContainerHelper3<css::util::XModifyListener> m_aModifyListeners; // XTypeProvider virtual css::uno::Sequence< css::uno::Type> _getTypes() override; @@ -186,6 +193,4 @@ private: } // namespace frm -#endif // INCLUDED_FORMS_SOURCE_COMPONENT_IMAGECONTROL_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |