43template<
typename PROPERTYTYPE >
47 virtual PROPERTYTYPE
getValueFromSeries(
const css::uno::Reference< css::beans::XPropertySet >& xSeriesPropertySet )
const =0;
48 virtual void setValueToSeries(
const css::uno::Reference< css::beans::XPropertySet >& xSeriesPropertySet,
const PROPERTYTYPE & aNewValue )
const =0;
51 , std::shared_ptr<Chart2ModelContact> spChart2ModelContact
63 rHasAmbiguousValue =
false;
66 bool bHasDetectableInnerValue =
false;
70 std::vector< rtl::Reference< DataSeries > > aSeriesVector =
71 xDiagram->getDataSeries();
72 for (
auto const& series : aSeriesVector)
75 if( !bHasDetectableInnerValue )
79 if( rValue != aCurValue )
81 rHasAmbiguousValue =
true;
87 bHasDetectableInnerValue =
true;
89 return bHasDetectableInnerValue;
96 std::vector< rtl::Reference< DataSeries > > aSeriesVector =
98 for (
auto const& series : aSeriesVector)
104 virtual void setPropertyValue(
const css::uno::Any& rOuterValue,
const css::uno::Reference< css::beans::XPropertySet >& xInnerPropertySet )
const override
106 PROPERTYTYPE aNewValue = PROPERTYTYPE();
107 if( ! (rOuterValue >>= aNewValue) )
108 throw css::lang::IllegalArgumentException(
"statistic property requires different type",
nullptr, 0 );
114 bool bHasAmbiguousValue =
false;
115 PROPERTYTYPE aOldValue = PROPERTYTYPE();
118 if( bHasAmbiguousValue || aNewValue != aOldValue )
128 virtual css::uno::Any
getPropertyValue(
const css::uno::Reference< css::beans::XPropertySet >& xInnerPropertySet )
const override
132 bool bHasAmbiguousValue =
false;
133 PROPERTYTYPE aValue = PROPERTYTYPE();
136 if(bHasAmbiguousValue)
151 virtual css::uno::Any
getPropertyDefault(
const css::uno::Reference< css::beans::XPropertyState >& )
const override
virtual css::uno::Any getPropertyDefault(const css::uno::Reference< css::beans::XPropertyState > &) const override
virtual css::uno::Any getPropertyValue(const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const override
virtual void setPropertyValue(const css::uno::Any &rOuterValue, const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const override
void setInnerValue(PROPERTYTYPE aNewValue) const
virtual PROPERTYTYPE getValueFromSeries(const css::uno::Reference< css::beans::XPropertySet > &xSeriesPropertySet) const =0
css::uno::Any m_aOuterValue
virtual void setValueToSeries(const css::uno::Reference< css::beans::XPropertySet > &xSeriesPropertySet, const PROPERTYTYPE &aNewValue) const =0
tSeriesOrDiagramPropertyType m_ePropertyType
bool detectInnerValue(PROPERTYTYPE &rValue, bool &rHasAmbiguousValue) const
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact
css::uno::Any m_aDefaultValue
WrappedSeriesOrDiagramProperty(const OUString &rName, const css::uno::Any &rDefaulValue, std::shared_ptr< Chart2ModelContact > spChart2ModelContact, tSeriesOrDiagramPropertyType ePropertyType)
tSeriesOrDiagramPropertyType