24#include <com/sun/star/form/XImageProducerSupplier.hpp>
25#include <com/sun/star/awt/XMouseListener.hpp>
26#include <com/sun/star/util/XModifyBroadcaster.hpp>
27#include <com/sun/star/graphic/XGraphicObject.hpp>
40 , css::awt::XImageProducer
51 css::uno::Reference< css::graphic::XGraphicObject >
56 virtual css::uno::Sequence< css::uno::Type>
_getTypes()
override;
62 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
66 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
70 virtual void SAL_CALL
getFastPropertyValue(css::uno::Any& rValue, sal_Int32 nHandle )
const override;
73 virtual sal_Bool SAL_CALL
convertFastPropertyValue(css::uno::Any& rConvertedValue, css::uno::Any& rOldValue, sal_Int32 nHandle,
const css::uno::Any& rValue )
override;
77 virtual css::uno::Any SAL_CALL
queryAggregation(
const css::uno::Type& _rType)
override;
81 {
return "com.sun.star.form.OImageControlModel"; }
87 virtual void SAL_CALL
write(
const css::uno::Reference< css::io::XObjectOutputStream>& _rxOutStream)
override;
88 virtual void SAL_CALL
read(
const css::uno::Reference< css::io::XObjectInputStream>& _rxInStream)
override;
91 virtual css::uno::Reference< css::awt::XImageProducer> SAL_CALL
getImageProducer()
override;
94 virtual void SAL_CALL
addConsumer(
const css::uno::Reference< css::awt::XImageConsumer >& xConsumer )
override;
95 virtual void SAL_CALL
removeConsumer(
const css::uno::Reference< css::awt::XImageConsumer >& xConsumer )
override;
100 css::uno::Sequence< css::beans::Property >& _rAggregateProps
103 css::uno::Sequence< css::beans::Property >& _rProps
112 virtual void onConnectedDbColumn(
const css::uno::Reference< css::uno::XInterface >& _rxForm )
override;
124 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL
createClone( )
override;
143 , css::util::XModifyBroadcaster
152 virtual css::uno::Sequence< css::uno::Type>
_getTypes()
override;
155 explicit OImageControlControl(
const css::uno::Reference< css::uno::XComponentContext>& _rxFactory);
159 virtual css::uno::Any SAL_CALL
queryAggregation(
const css::uno::Type& _rType )
override;
162 virtual void SAL_CALL
disposing(
const css::lang::EventObject& _rSource)
override;
166 {
return "com.sun.star.form.OImageControlControl"; }
171 virtual void SAL_CALL
mousePressed(
const css::awt::MouseEvent& e)
override;
172 virtual void SAL_CALL
mouseReleased(
const css::awt::MouseEvent& e)
override;
173 virtual void SAL_CALL
mouseEntered(
const css::awt::MouseEvent& e)
override;
174 virtual void SAL_CALL
mouseExited(
const css::awt::MouseEvent& e)
override;
177 virtual void SAL_CALL
addModifyListener(
const css::uno::Reference< css::util::XModifyListener >& aListener )
override;
178 virtual void SAL_CALL
removeModifyListener(
const css::uno::Reference< css::util::XModifyListener >& aListener )
override;
181 virtual void SAL_CALL
disposing()
override;
virtual void SAL_CALL disposing() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
OImageControlControl(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
void implClearGraphics(bool _bForce)
::comphelper::OInterfaceContainerHelper3< css::util::XModifyListener > m_aModifyListeners
virtual void SAL_CALL disposing() override
virtual void SAL_CALL mouseEntered(const css::awt::MouseEvent &e) override
bool impl_isEmptyGraphics_nothrow() const
determines whether the control does currently have an empty graphic set
OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL disposing(const css::lang::EventObject &_rSource) override
bool implInsertGraphics()
virtual void SAL_CALL mouseExited(const css::awt::MouseEvent &e) override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
virtual css::uno::Sequence< css::uno::Type > _getTypes() override
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) 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 removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual void SAL_CALL mouseReleased(const css::awt::MouseEvent &e) override
bool impl_updateStreamForURL_lck(const OUString &_rURL, ValueChangeInstigator _eInstigator)
updates the binary stream, created from loading the file which the given URL points to,...
virtual OUString SAL_CALL getServiceName() override
OUString SAL_CALL getImplementationName() override
virtual css::uno::Any translateDbColumnToControlValue() override
translates a db column value into a control value.
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Sequence< css::uno::Type > _getTypes() override
ImageProducer * GetImageProducer()
virtual void SAL_CALL addConsumer(const css::uno::Reference< css::awt::XImageConsumer > &xConsumer) override
DECL_LINK(OnImageImportDone, ::Graphic *, void)
virtual ~OImageControlModel() override
virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override
virtual void resetNoBroadcast() override
called to reset the control to some kind of default.
virtual css::uno::Any getControlValue() const override
retrieves the current value of the control
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual void describeFixedProperties(css::uno::Sequence< css::beans::Property > &_rProps) const override
describes the properties provided by this class, or its respective derived class
virtual void doSetControlValue(const css::uno::Any &_rValue) override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
rtl::Reference< ImageProducer > m_xImageProducer
virtual void onDisconnectedDbColumn() override
called whenever a connection to a database column has been suspended
virtual bool commitControlValueToDbColumn(bool _bPostReset) override
commits the current control value to the database column we're bound to @precond we're properly bound...
virtual void describeAggregateProperties(css::uno::Sequence< css::beans::Property > &_rAggregateProps) const override
describes the properties of our aggregate
virtual bool approveDbColumnType(sal_Int32 _nColumnType) override
nFieldType is the type of the field, on which the model will be linked.
OImageControlModel(const OImageControlModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual void onConnectedDbColumn(const css::uno::Reference< css::uno::XInterface > &_rxForm) override
called whenever a connection to a database column has been established
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
void impl_handleNewImageURL_lck(ValueChangeInstigator _eInstigator)
displays the image described by the given URL @precond our own mutex is locked
virtual css::uno::Reference< css::awt::XImageProducer > SAL_CALL getImageProducer() override
virtual void SAL_CALL removeConsumer(const css::uno::Reference< css::awt::XImageConsumer > &xConsumer) override
virtual void SAL_CALL startProduction() override
OImageControlModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
css::uno::Reference< css::graphic::XGraphicObject > m_xGraphicObject
virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override
ListBox is a bit confusing / different from other form components, so here are a few notes:
::cppu::ImplHelper2< css::awt::XMouseListener, css::util::XModifyBroadcaster > OImageControlControl_Base
::cppu::ImplHelper2< css::form::XImageProducerSupplier, css::awt::XImageProducer > OImageControlModel_Base
#define DECLARE_UNO3_AGG_DEFAULTS(classname, baseclass)