diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-30 05:21:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-30 08:13:18 +0200 |
commit | 1be9365d7f7c33e23d4599931616fdf56bb26fbf (patch) | |
tree | 23429d95239eb22085967e23afb7ed42ea94f9df /chart2 | |
parent | fbe09a2a02fba03eaa6c649d0ca08cd0df73c7e2 (diff) |
support querying about hidden cells in chart data sequences
Change-Id: I8886c022d709acfd0f65453e36f29c1c953b4b1c
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx index 1c0d37b6646f..41442fde0f49 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx @@ -1982,6 +1982,8 @@ public: virtual void setPropertyValue( const ::com::sun::star::uno::Any& rOuterValue, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xInnerPropertySet ) const throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; + virtual Any getPropertyValue(const Reference<beans::XPropertySet>& xInnerPropertySet) const + throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException); private: //member ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact; @@ -2002,11 +2004,20 @@ void WrappedIncludeHiddenCellsProperty::setPropertyValue( const Any& rOuterValue { bool bNewValue = false; if( ! (rOuterValue >>= bNewValue) ) - throw lang::IllegalArgumentException( "Property Dim3D requires boolean value", 0, 0 ); + throw lang::IllegalArgumentException( "Property IncludeHiddenCells requires boolean value", 0, 0 ); ChartModelHelper::setIncludeHiddenCells( bNewValue, *m_spChart2ModelContact->getModel() ); } +Any WrappedIncludeHiddenCellsProperty::getPropertyValue( const Reference< beans::XPropertySet >& /*xInnerPropertySet*/ ) const + throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) +{ + bool bValue = ChartModelHelper::isIncludeHiddenCells( m_spChart2ModelContact->getChartModel() ); + uno::Any aAny; + aAny <<= bValue; + return aAny; +} + // ____ XDiagramProvider ____ Reference< chart2::XDiagram > SAL_CALL DiagramWrapper::getDiagram() throw (uno::RuntimeException, std::exception) |