diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-07-25 07:26:21 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-07-25 07:26:21 +0000 |
commit | 14e57f13290151b26e71c68ef56e655d87551f86 (patch) | |
tree | bb62ea30c071ac787e6a76368ec985fcf3b4cb1d /chart2/source | |
parent | 488bc27146ed9a9813950eecface66a4db0e4de1 (diff) |
INTEGRATION: CWS chart07 (1.5.12); FILE MERGED
2007/07/02 21:34:07 bm 1.5.12.2: #i78873# fire event listeners when data changes
2007/06/26 09:57:04 bm 1.5.12.1: #i78785# fix for (broken) gcc 3.3 for Mac OS/X Panther applied
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx index 176ad38c6e27..fe8c1d812ec3 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ChartDataWrapper.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: vg $ $Date: 2007-05-22 17:16:54 $ + * last change: $Author: rt $ $Date: 2007-07-25 08:26:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -358,7 +358,7 @@ void SAL_CALL ChartDataWrapper::removeEventListener( } // ____ XEventListener ____ -void SAL_CALL ChartDataWrapper::disposing( const lang::EventObject& Source ) +void SAL_CALL ChartDataWrapper::disposing( const lang::EventObject& /* Source */ ) throw (uno::RuntimeException) { } @@ -500,7 +500,7 @@ void ChartDataWrapper::refreshData() for( sal_Int32 nInner=0; nInner<nInnerSize; ++nInner ) { - uno::Sequence< double > aValues( + uno::Sequence< double > aValues = uno::Sequence< double > ( lcl_DataSequenceToDoubleSeq() (aSequenceVector[nInner] )); sal_Int32 nMax = ::std::min( nOuterSize, aValues.getLength()); for( sal_Int32 nOuter=0; nOuter<nMax; ++nOuter ) @@ -673,6 +673,12 @@ void ChartDataWrapper::applyData( bool bSetValues, bool bSetRowDescriptions, boo bool bOnlyAtFirstChartType = false; DiagramHelper::setStackMode( xDia, eStackMode, bOnlyAtFirstChartType ); } + + // notify listeners + ::com::sun::star::chart::ChartDataChangeEvent aEvent( + static_cast< ::cppu::OWeakObject* >( this ), + ::com::sun::star::chart::ChartDataChangeType_ALL, 0, 0, 0, 0 ); + fireChartDataChangeEvent( aEvent ); // \-- locked controllers } |