26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/uno/Sequence.hxx>
35using ::com::sun::star::uno::Reference;
36using ::com::sun::star::uno::Sequence;
37using ::com::sun::star::beans::Property;
44 static ::cppu::OPropertyArrayHelper aPropHelper = []()
65 m_xParentProperties( rParentProperties ),
66 m_xModifyEventForwarder( new ModifyEventForwarder() ),
67 m_bNoParentPropAllowed( false )
69 SetNewValuesExplicitlyEvenIfTheyEqualDefault();
76 m_bNoParentPropAllowed( true )
88 if( ( aValue >>= xPropertySet )
93 if( ( aValue >>= xPropertySet )
109 if( ( aValue >>= xPropertySet )
110 && xPropertySet.is())
114 if( ( aValue >>= xPropertySet )
115 && xPropertySet.is())
118 catch(
const uno::Exception & )
149 OSL_ENSURE(
m_bNoParentPropAllowed,
"data point needs a parent property set to provide values correctly" );
154 rAny = xFast->getFastPropertyValue(
nHandle );
158 sal_Int32 nHandle,
const uno::Any& rValue )
167 (aOldValue >>= xBroadcaster) &&
173 OSL_ASSERT( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
175 (rValue >>= xBroadcaster) &&
187 return StaticDataPointInfoHelper();
195 return xPropertySetInfo;
235 return "com.sun.star.comp.chart.DataPoint" ;
246 "com.sun.star.drawing.FillProperties",
247 "com.sun.star.chart2.DataPoint",
248 "com.sun.star.chart2.DataPointProperties",
249 "com.sun.star.beans.PropertySet"
PropertiesInfo aProperties
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
bool m_bNoParentPropAllowed
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
virtual void firePropertyChangeEvent() override
implement this method in derived classes to get called when properties change.
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
The same as setFastPropertyValue; nHandle is always valid.
virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any &rAny) const override
implement this method to provide default values for all properties supporting defaults.
DataPoint(const css::uno::Reference< css::beans::XPropertySet > &rParentProperties)
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
The InfoHelper table contains all property names and types of this object.
rtl::Reference< ModifyEventForwarder > m_xModifyEventForwarder
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual ~DataPoint() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
css::uno::WeakReference< css::beans::XPropertySet > m_xParentProperties
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
This helper class serves as forwarder of modify events.
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
void SAL_CALL disposing()
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
The same as getFastPropertyValue, but return the value through rValue and nHandle is always valid.
void SetNewValuesExplicitlyEvenIfTheyEqualDefault()
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
The same as setFastPropertyValue; nHandle is always valid.
#define DBG_UNHANDLED_EXCEPTION(...)
OOO_DLLPUBLIC_CHARTTOOLS void AddPropertiesToVector(std::vector< css::beans::Property > &rOutProperties)
@ PROP_DATAPOINT_ERROR_BAR_Y
@ PROP_DATAPOINT_ERROR_BAR_X
void removeListener(const InterfaceRef &xObject, const css::uno::Reference< css::util::XModifyListener > &xListener)
void addListener(const InterfaceRef &xObject, const css::uno::Reference< css::util::XModifyListener > &xListener)
::cppu::WeakImplHelper< css::container::XChild, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener, css::lang::XServiceInfo > DataPoint_Base
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)