32using ::com::sun::star::uno::Reference;
33using ::com::sun::star::uno::Sequence;
34using ::com::sun::star::uno::Any;
43 const OUString& rOuterName
44 , OUString aInnerSequencePropertyName
45 , sal_Int32 nDefaultValue
46 , std::shared_ptr<Chart2ModelContact> spChart2ModelContact )
51 , m_nDefaultValue( nDefaultValue )
52 , m_InnerSequencePropertyName(
std::move( aInnerSequencePropertyName ))
68 sal_Int32 nNewValue = 0;
69 if( ! (rOuterValue >>= nNewValue) )
70 throw lang::IllegalArgumentException(
"GapWidth and Overlap property require value of type sal_Int32",
nullptr, 0 );
81 const std::vector< rtl::Reference< ChartType > > aChartTypeList( xDiagram->getChartTypes() );
89 tools::Long nOldLength = aBarPositionSequence.getLength();
92 auto pBarPositionSequence = aBarPositionSequence.getArray();
101 catch( uno::Exception& e )
115 bool bInnerValueDetected =
false;
120 std::vector< rtl::Reference< ChartType > > aChartTypeList = xDiagram->getChartTypes();
121 for( std::size_t nN = 0; nN < aChartTypeList.size() && !bInnerValueDetected; nN++ )
130 bInnerValueDetected =
true;
133 catch( uno::Exception& e )
141 if( bInnerValueDetected )
150 const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact)
159 const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact )
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact
sal_Int32 m_nDimensionIndex
virtual ~WrappedBarOverlapProperty() override
WrappedBarOverlapProperty(const std::shared_ptr< Chart2ModelContact > &spChart2ModelContact)
void setDimensionAndAxisIndex(sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex)
virtual css::uno::Any getPropertyValue(const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const override
OUString m_InnerSequencePropertyName
WrappedBarPositionProperty_Base(const OUString &rOuterName, OUString aInnerSequencePropertyName, sal_Int32 nDefaultValue, std::shared_ptr< Chart2ModelContact > spChart2ModelContact)
sal_Int32 m_nDefaultValue
virtual void setPropertyValue(const css::uno::Any &rOuterValue, const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const override
sal_Int32 m_nDimensionIndex
css::uno::Any m_aOuterValue
std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact
virtual ~WrappedBarPositionProperty_Base() override
WrappedGapwidthProperty(const std::shared_ptr< Chart2ModelContact > &spChart2ModelContact)
virtual ~WrappedGapwidthProperty() override
const sal_Int32 DEFAULT_OVERLAP
const sal_Int32 DEFAULT_GAPWIDTH