diff options
author | obo <obo@openoffice.org> | 2010-10-08 08:00:07 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-10-08 08:00:07 +0200 |
commit | 65dc8ada712a15d43e01e11b8e378b7044feb4d4 (patch) | |
tree | d41e2f3ee3f654f8a3d7a236d943209a04d18b4a /reportdesign/source/ui/inspection/DataProviderHandler.cxx | |
parent | 30891b5b51d5bef92450ffd89a2c0150709957a3 (diff) | |
parent | e5ab3e1c6d76f36d9d1fe44f5c48981fc9e73942 (diff) |
CWS-TOOLING: integrate CWS dba33j
Notes
Notes:
split repo tag: base_ooo/OOO330_m10
split repo tag: base_ooo/OOO330_m11
Diffstat (limited to 'reportdesign/source/ui/inspection/DataProviderHandler.cxx')
-rw-r--r-- | reportdesign/source/ui/inspection/DataProviderHandler.cxx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/reportdesign/source/ui/inspection/DataProviderHandler.cxx b/reportdesign/source/ui/inspection/DataProviderHandler.cxx index 57e293994741..d62a9443d490 100644 --- a/reportdesign/source/ui/inspection/DataProviderHandler.cxx +++ b/reportdesign/source/ui/inspection/DataProviderHandler.cxx @@ -27,6 +27,7 @@ #include "precompiled_reportdesign.hxx" #include "DataProviderHandler.hxx" #include <com/sun/star/lang/XInitialization.hpp> +#include <comphelper/namedvaluecollection.hxx> #include <comphelper/sequence.hxx> #include <comphelper/property.hxx> #include <comphelper/types.hxx> @@ -469,21 +470,13 @@ void SAL_CALL DataProviderHandler::actuatingPropertyChanged(const ::rtl::OUStrin sal_Bool bModified = xReport->isModified(); // this fills the chart again - uno::Sequence< beans::PropertyValue > aArgs( 4 ); - aArgs[0] = beans::PropertyValue( - ::rtl::OUString::createFromAscii("CellRangeRepresentation"), -1, - uno::makeAny( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("all")) ), beans::PropertyState_DIRECT_VALUE ); - aArgs[1] = beans::PropertyValue( - ::rtl::OUString::createFromAscii("HasCategories"), -1, - uno::makeAny( sal_True ), beans::PropertyState_DIRECT_VALUE ); - aArgs[2] = beans::PropertyValue( - ::rtl::OUString::createFromAscii("FirstCellAsLabel"), -1, - uno::makeAny( sal_True ), beans::PropertyState_DIRECT_VALUE ); - aArgs[3] = beans::PropertyValue( - ::rtl::OUString::createFromAscii("DataRowSource"), -1, - uno::makeAny( chart::ChartDataRowSource_COLUMNS ), beans::PropertyState_DIRECT_VALUE ); + ::comphelper::NamedValueCollection aArgs; + aArgs.put( "CellRangeRepresentation", uno::makeAny( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "all" ) ) ) ); + aArgs.put( "HasCategories", uno::makeAny( sal_True ) ); + aArgs.put( "FirstCellAsLabel", uno::makeAny( sal_True ) ); + aArgs.put( "DataRowSource", uno::makeAny( chart::ChartDataRowSource_COLUMNS ) ); uno::Reference< chart2::data::XDataReceiver > xReceiver(m_xChartModel,uno::UNO_QUERY_THROW); - xReceiver->setArguments( aArgs ); + xReceiver->setArguments( aArgs.getPropertyValues() ); if ( !bModified ) xReport->setModified(sal_False); } // if ( NewValue != OldValue ) |