19#ifndef INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_SHAPE_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_SHAPE_HXX
23#include <com/sun/star/report/XShape.hpp>
27#include <com/sun/star/lang/XServiceInfo.hpp>
35 typedef ::cppu::WeakComponentImplHelper< css::report::XShape
47 ::std::unique_ptr< ::comphelper::OPropertyArrayAggregationHelper>
m_pAggHelper;
63 void set(
const OUString& _sProperty
65 ,css::style::ParagraphAdjust& _member)
70 if (
static_cast<sal_Int16
>(_member) !=
Value )
72 prepareSet(_sProperty, css::uno::Any(
static_cast<sal_Int16
>(_member)), css::uno::Any(
Value), &l);
73 _member =
static_cast<css::style::ParagraphAdjust
>(
Value);
78 template <
typename T>
void set(
const OUString& _sProperty
85 if ( _member !=
Value )
87 prepareSet(_sProperty, css::uno::Any(_member), css::uno::Any(
Value), &l);
93 void set(
const OUString& _sProperty
100 if ( _member !=
Value )
102 prepareSet(_sProperty, css::uno::Any(_member), css::uno::Any(
Value), &l);
112 explicit OShape(css::uno::Reference< css::uno::XComponentContext >
const & _xContext);
113 explicit OShape(css::uno::Reference< css::uno::XComponentContext >
const & _xContext
114 ,
const css::uno::Reference< css::lang::XMultiServiceFactory > & _xFactory
115 ,css::uno::Reference< css::drawing::XShape >& _xShape
116 ,OUString _sServiceName);
132 virtual
void SAL_CALL
setPropertyValue( const OUString& aPropertyName, const css::
uno::
Any& aValue ) override;
148 virtual
void SAL_CALL
setCustomShapeData( const OUString& _customshapedata ) override;
164 virtual ::sal_Int32 SAL_CALL
getZOrder() override;
165 virtual
void SAL_CALL
setZOrder( ::sal_Int32 _zorder ) override;
167 virtual
void SAL_CALL
setTransformation( const css::drawing::HomogenMatrix3& _transformation ) override;
173 virtual
void SAL_CALL
dispose() override;
176 cppu::WeakComponentImplHelperBase::addEventListener(aListener);
178 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener > & aListener)
override
180 cppu::WeakComponentImplHelperBase::removeEventListener(aListener);
184 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
getParent( )
override;
185 virtual void SAL_CALL
setParent(
const css::uno::Reference< css::uno::XInterface >& Parent )
override;
188 virtual void SAL_CALL
addContainerListener(
const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
189 virtual void SAL_CALL
removeContainerListener(
const css::uno::Reference< css::container::XContainerListener >& xListener )
override;
196 virtual void SAL_CALL
replaceByIndex( ::sal_Int32
Index,
const css::uno::Any& Element )
override;
199 virtual void SAL_CALL
insertByIndex( ::sal_Int32
Index,
const css::uno::Any& Element )
override;
203 virtual ::sal_Int32 SAL_CALL
getCount( )
override;
204 virtual css::uno::Any SAL_CALL
getByIndex( ::sal_Int32
Index )
override;
#define REPORTCONTROLMODEL_HEADER()
#define REPORTCONTROLFORMAT_HEADER()
#define REPORTCOMPONENT_HEADER()
mutable::osl::Mutex m_aMutex
void prepareSet(rtl::OUString const &propertyName, css::uno::Any const &oldValue, css::uno::Any const &newValue, BoundListeners *boundListeners)
virtual void SAL_CALL dispose() override
cppu::IPropertyArrayHelper & getInfoHelper()
static css::uno::Sequence< OUString > getSupportedServiceNames_Static()
virtual void SAL_CALL setCustomShapeData(const OUString &_customshapedata) override
OUString m_CustomShapeData
virtual void SAL_CALL removeByIndex(::sal_Int32 Index) override
virtual void SAL_CALL setZOrder(::sal_Int32 _zorder) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ::sal_Int32 SAL_CALL getCount() override
void set(const OUString &_sProperty, sal_Int16 Value, css::style::ParagraphAdjust &_member)
virtual void SAL_CALL setCustomShapeGeometry(const css::uno::Sequence< css::beans::PropertyValue > &_customshapegeometry) override
virtual void SAL_CALL removeContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
virtual void SAL_CALL insertByIndex(::sal_Int32 Index, const css::uno::Any &Element) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCustomShapeGeometry() override
virtual css::uno::Any SAL_CALL getByIndex(::sal_Int32 Index) override
OReportControlModel m_aProps
virtual sal_Bool SAL_CALL hasElements() override
css::uno::Sequence< css::beans::PropertyValue > m_CustomShapeGeometry
static css::uno::Reference< css::uno::XInterface > create(css::uno::Reference< css::uno::XComponentContext > const &xContext)
virtual void SAL_CALL addContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
virtual void SAL_CALL setCustomShapeEngine(const OUString &_customshapeengine) override
css::drawing::HomogenMatrix3 m_Transformation
static OUString getImplementationName_Static()
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
::std::unique_ptr< ::comphelper::OPropertyArrayAggregationHelper > m_pAggHelper
virtual OUString SAL_CALL getCustomShapeData() override
virtual void SAL_CALL setTransformation(const css::drawing::HomogenMatrix3 &_transformation) override
OShape(const OShape &)=delete
virtual void SAL_CALL replaceByIndex(::sal_Int32 Index, const css::uno::Any &Element) override
virtual ::sal_Int32 SAL_CALL getZOrder() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual OUString SAL_CALL getShapeType() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
OShape & operator=(const OShape &)=delete
virtual void SAL_CALL setOpaque(sal_Bool _opaque) override
void set(const OUString &_sProperty, const T &Value, T &_member)
virtual css::drawing::HomogenMatrix3 SAL_CALL getTransformation() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual OUString SAL_CALL getCustomShapeEngine() override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
void set(const OUString &_sProperty, bool Value, bool &_member)
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
OUString m_CustomShapeEngine
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
OShape(css::uno::Reference< css::uno::XComponentContext > const &_xContext)
OShape(css::uno::Reference< css::uno::XComponentContext > const &_xContext, const css::uno::Reference< css::lang::XMultiServiceFactory > &_xFactory, css::uno::Reference< css::drawing::XShape > &_xShape, OUString _sServiceName)
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
virtual ~OShape() override
virtual sal_Bool SAL_CALL getOpaque() override
::cppu::PropertySetMixin< css::report::XShape > ShapePropertySet
::cppu::WeakComponentImplHelper< css::report::XShape,css::lang::XServiceInfo > ShapeBase
#define DECLARE_XINTERFACE()