diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-03 08:54:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-03 08:50:50 +0000 |
commit | 83721f4365d234b62f9e3517345c8d3fda19f2c6 (patch) | |
tree | af77c202dbdf0b969559441c724020e5d7a9da92 /chart2/source/model | |
parent | 9007cc7bcaa8bc1b38c54f167349f71373f02dec (diff) |
makeAny->Any in basctl..chart2
Change-Id: Ief1cdffbfc59ab4e35ac945d020772ff84c50d61
Reviewed-on: https://gerrit.libreoffice.org/33867
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model')
19 files changed, 85 insertions, 85 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index 11e1a6bc57a0..8ea6da924081 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -115,7 +115,7 @@ uno::Reference< embed::XStorage > lcl_getWriteStorage( ! ( xProp->getPropertyValue( "MediaType") >>= aMediaType ) || ( aMediaType.isEmpty() )) { - xProp->setPropertyValue( "MediaType", uno::makeAny( _sMediaType )); + xProp->setPropertyValue( "MediaType", uno::Any( _sMediaType )); } } catch (const uno::Exception& ex) @@ -352,10 +352,10 @@ sal_Int32 XMLFilter::impl_Import( // needed for relative URLs, but in clipboard copy/paste there may be none SAL_INFO_IF(aBaseUri.isEmpty(), "chart2", "chart::XMLFilter: no base URL"); if( !aBaseUri.isEmpty() ) - xImportInfo->setPropertyValue( "BaseURI", uno::makeAny( aBaseUri ) ); + xImportInfo->setPropertyValue( "BaseURI", uno::Any( aBaseUri ) ); if( !aHierarchName.isEmpty() ) - xImportInfo->setPropertyValue( "StreamRelPath", uno::makeAny( aHierarchName ) ); + xImportInfo->setPropertyValue( "StreamRelPath", uno::Any( aHierarchName ) ); // import meta information if( bOasis ) @@ -418,7 +418,7 @@ sal_Int32 XMLFilter::impl_ImportStream( return 0; if( xImportInfo.is() ) - xImportInfo->setPropertyValue( "StreamName", uno::makeAny( rStreamName ) ); + xImportInfo->setPropertyValue( "StreamName", uno::Any( rStreamName ) ); if( xStorage.is() && xStorage->isStreamElement( rStreamName ) ) @@ -595,9 +595,9 @@ sal_Int32 XMLFilter::impl_Export( SvtSaveOptions aSaveOpt; OUString sUsePrettyPrinting( "UsePrettyPrinting" ); bool bUsePrettyPrinting( aSaveOpt.IsPrettyPrinting() ); - xInfoSet->setPropertyValue( sUsePrettyPrinting, uno::makeAny( bUsePrettyPrinting ) ); + xInfoSet->setPropertyValue( sUsePrettyPrinting, uno::Any( bUsePrettyPrinting ) ); if( ! bOasis ) - xInfoSet->setPropertyValue( "ExportTableNumberList", uno::makeAny( true )); + xInfoSet->setPropertyValue( "ExportTableNumberList", uno::Any( true )); sal_Int32 nArgs = 2; if( xGraphicObjectResolver.is()) @@ -685,9 +685,9 @@ sal_Int32 XMLFilter::impl_ExportStream( uno::Reference< beans::XPropertySet > xStreamProp( xOutputStream, uno::UNO_QUERY ); if(xStreamProp.is()) try { - xStreamProp->setPropertyValue( "MediaType", uno::makeAny( OUString("text/xml") ) ); - xStreamProp->setPropertyValue( "Compressed", uno::makeAny( true ) );//@todo? - xStreamProp->setPropertyValue( "UseCommonStoragePasswordEncryption", uno::makeAny( true ) ); + xStreamProp->setPropertyValue( "MediaType", uno::Any( OUString("text/xml") ) ); + xStreamProp->setPropertyValue( "Compressed", uno::Any( true ) );//@todo? + xStreamProp->setPropertyValue( "UseCommonStoragePasswordEncryption", uno::Any( true ) ); } catch (const uno::Exception& rEx) { @@ -703,7 +703,7 @@ sal_Int32 XMLFilter::impl_ExportStream( rFilterProperties.getConstArray()[0] >>= xInfoSet; OSL_ENSURE( xInfoSet.is(), "missing infoset for export" ); if( xInfoSet.is() ) - xInfoSet->setPropertyValue( "StreamName", uno::makeAny( rStreamName ) ); + xInfoSet->setPropertyValue( "StreamName", uno::Any( rStreamName ) ); } Reference< XExporter > xExporter( xServiceFactory->createInstanceWithArguments( diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index b4ab8bd6389e..140998b0057a 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -350,7 +350,7 @@ Axis::Axis( Reference< uno::XComponentContext > const & /* xContext */ ) : { osl_atomic_increment(&m_refCount); setFastPropertyValue_NoBroadcast( - ::chart::LinePropertiesHelper::PROP_LINE_COLOR, uno::makeAny( static_cast< sal_Int32 >( 0xb3b3b3 ) ) ); // gray30 + ::chart::LinePropertiesHelper::PROP_LINE_COLOR, uno::Any( static_cast< sal_Int32 >( 0xb3b3b3 ) ) ); // gray30 if( m_xGrid.is()) ModifyListenerHelper::addListener( m_xGrid, m_xModifyEventForwarder ); diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx index 04babbc036dd..5b4e7c395d86 100644 --- a/chart2/source/model/main/BaseCoordinateSystem.cxx +++ b/chart2/source/model/main/BaseCoordinateSystem.cxx @@ -148,9 +148,9 @@ BaseCoordinateSystem::BaseCoordinateSystem( m_aOrigin.realloc( m_nDimensionCount ); for( sal_Int32 i = 0; i < m_nDimensionCount; ++i ) - m_aOrigin[ i ] = uno::makeAny( double( 0.0 ) ); + m_aOrigin[ i ] = uno::Any( double( 0.0 ) ); - setFastPropertyValue_NoBroadcast( PROP_COORDINATESYSTEM_SWAPXANDYAXIS, uno::makeAny( false )); + setFastPropertyValue_NoBroadcast( PROP_COORDINATESYSTEM_SWAPXANDYAXIS, uno::Any( false )); } // explicit diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index dadecb76a516..f7a19f16bf86 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -732,7 +732,7 @@ Reference< chart2::data::XDataSource > ChartModel::impl_createDefaultData() //init internal dataprovider { uno::Sequence< uno::Any > aArgs(1); - beans::NamedValue aParam( "CreateDefaultData" ,uno::makeAny(true) ); + beans::NamedValue aParam( "CreateDefaultData" ,uno::Any(true) ); aArgs[0] <<= aParam; xIni->initialize(aArgs); } @@ -740,21 +740,21 @@ Reference< chart2::data::XDataSource > ChartModel::impl_createDefaultData() uno::Sequence< beans::PropertyValue > aArgs( 4 ); aArgs[0] = beans::PropertyValue( "CellRangeRepresentation", -1, - uno::makeAny( OUString("all") ), beans::PropertyState_DIRECT_VALUE ); + uno::Any( OUString("all") ), beans::PropertyState_DIRECT_VALUE ); aArgs[1] = beans::PropertyValue( "HasCategories", -1, - uno::makeAny( true ), + uno::Any( true ), beans::PropertyState_DIRECT_VALUE ); aArgs[2] = beans::PropertyValue( "FirstCellAsLabel", -1, - uno::makeAny( true ), + uno::Any( true ), beans::PropertyState_DIRECT_VALUE ); aArgs[3] = beans::PropertyValue( "DataRowSource", -1, - uno::makeAny( css::chart::ChartDataRowSource_COLUMNS ), + uno::Any( css::chart::ChartDataRowSource_COLUMNS ), beans::PropertyState_DIRECT_VALUE ); xDataSource = m_xInternalDataProvider->createDataSource( aArgs ); } @@ -802,7 +802,7 @@ void SAL_CALL ChartModel::attachDataProvider( const uno::Reference< chart2::data try { bool bIncludeHiddenCells = ChartModelHelper::isIncludeHiddenCells( Reference< frame::XModel >(this) ); - xProp->setPropertyValue("IncludeHiddenCells", uno::makeAny(bIncludeHiddenCells)); + xProp->setPropertyValue("IncludeHiddenCells", uno::Any(bIncludeHiddenCells)); } catch (const beans::UnknownPropertyException&) { @@ -1317,7 +1317,7 @@ void ChartModel::setTimeBased(bool bTimeBased) if(xTimeBased.is()) { uno::Reference< beans::XPropertySet > xPropSet(xTimeBased, uno::UNO_QUERY_THROW); - xPropSet->setPropertyValue("TimeBased", uno::makeAny(bTimeBased)); + xPropSet->setPropertyValue("TimeBased", uno::Any(bTimeBased)); } } } diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx index bba125948d3a..7ad28cbcc927 100644 --- a/chart2/source/model/main/ChartModel_Persistence.cxx +++ b/chart2/source/model/main/ChartModel_Persistence.cxx @@ -98,7 +98,7 @@ void lcl_addStorageToMediaDescriptor( { rOutMD.realloc( rOutMD.getLength() + 1 ); rOutMD[rOutMD.getLength() - 1] = beans::PropertyValue( - "Storage", -1, uno::makeAny( xStorage ), beans::PropertyState_DIRECT_VALUE ); + "Storage", -1, uno::Any( xStorage ), beans::PropertyState_DIRECT_VALUE ); } Reference< embed::XStorage > lcl_createStorage( @@ -364,7 +364,7 @@ void ChartModel::impl_store( { xPropSet->setPropertyValue( "SavedObject", - uno::makeAny( aMDHelper.HierarchicalDocumentName ) ); + uno::Any( aMDHelper.HierarchicalDocumentName ) ); } catch ( const uno::Exception& ) { @@ -391,7 +391,7 @@ void ChartModel::insertDefaultChart() if( bSupportsCategories ) { aParam.realloc( 1 ); - aParam[0] = beans::PropertyValue( "HasCategories", -1, uno::makeAny( true ), + aParam[0] = beans::PropertyValue( "HasCategories", -1, uno::Any( true ), beans::PropertyState_DIRECT_VALUE ); } @@ -411,13 +411,13 @@ void ChartModel::insertDefaultChart() Reference< beans::XPropertySet > xLegendProperties( xLegend, uno::UNO_QUERY ); if( xLegendProperties.is() ) { - xLegendProperties->setPropertyValue( "FillStyle", uno::makeAny( drawing::FillStyle_NONE )); - xLegendProperties->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_NONE )); - xLegendProperties->setPropertyValue( "LineColor", uno::makeAny( static_cast< sal_Int32 >( 0xb3b3b3 ) )); // gray30 - xLegendProperties->setPropertyValue( "FillColor", uno::makeAny( static_cast< sal_Int32 >( 0xe6e6e6 ) ) ); // gray10 + xLegendProperties->setPropertyValue( "FillStyle", uno::Any( drawing::FillStyle_NONE )); + xLegendProperties->setPropertyValue( "LineStyle", uno::Any( drawing::LineStyle_NONE )); + xLegendProperties->setPropertyValue( "LineColor", uno::Any( static_cast< sal_Int32 >( 0xb3b3b3 ) )); // gray30 + xLegendProperties->setPropertyValue( "FillColor", uno::Any( static_cast< sal_Int32 >( 0xe6e6e6 ) ) ); // gray10 if( bIsRTL ) - xLegendProperties->setPropertyValue( "AnchorPosition", uno::makeAny( chart2::LegendPosition_LINE_START )); + xLegendProperties->setPropertyValue( "AnchorPosition", uno::Any( chart2::LegendPosition_LINE_START )); } if(xDiagram.is()) xDiagram->setLegend( xLegend ); @@ -426,8 +426,8 @@ void ChartModel::insertDefaultChart() Reference< beans::XPropertySet > xDiagramProperties( xDiagram, uno::UNO_QUERY ); if( xDiagramProperties.is() ) { - xDiagramProperties->setPropertyValue( "RightAngledAxes", uno::makeAny( true )); - xDiagramProperties->setPropertyValue( "D3DScenePerspective", uno::makeAny( drawing::ProjectionMode_PARALLEL )); + xDiagramProperties->setPropertyValue( "RightAngledAxes", uno::Any( true )); + xDiagramProperties->setPropertyValue( "D3DScenePerspective", uno::Any( drawing::ProjectionMode_PARALLEL )); ThreeDHelper::setScheme( xDiagram, ThreeDLookScheme_Realistic ); } @@ -437,18 +437,18 @@ void ChartModel::insertDefaultChart() Reference< beans::XPropertySet > xWall( xDiagram->getWall() ); if( xWall.is() ) { - xWall->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_SOLID ) ); - xWall->setPropertyValue( "FillStyle", uno::makeAny( drawing::FillStyle_NONE ) ); - xWall->setPropertyValue( "LineColor", uno::makeAny( static_cast< sal_Int32 >( 0xb3b3b3 ) ) ); // gray30 - xWall->setPropertyValue( "FillColor", uno::makeAny( static_cast< sal_Int32 >( 0xe6e6e6 ) ) ); // gray10 + xWall->setPropertyValue( "LineStyle", uno::Any( drawing::LineStyle_SOLID ) ); + xWall->setPropertyValue( "FillStyle", uno::Any( drawing::FillStyle_NONE ) ); + xWall->setPropertyValue( "LineColor", uno::Any( static_cast< sal_Int32 >( 0xb3b3b3 ) ) ); // gray30 + xWall->setPropertyValue( "FillColor", uno::Any( static_cast< sal_Int32 >( 0xe6e6e6 ) ) ); // gray10 } Reference< beans::XPropertySet > xFloor( xDiagram->getFloor() ); if( xFloor.is() ) { - xFloor->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_NONE ) ); - xFloor->setPropertyValue( "FillStyle", uno::makeAny( drawing::FillStyle_SOLID ) ); - xFloor->setPropertyValue( "LineColor", uno::makeAny( static_cast< sal_Int32 >( 0xb3b3b3 ) ) ); // gray30 - xFloor->setPropertyValue( "FillColor", uno::makeAny( static_cast< sal_Int32 >( 0xcccccc ) ) ); // gray20 + xFloor->setPropertyValue( "LineStyle", uno::Any( drawing::LineStyle_NONE ) ); + xFloor->setPropertyValue( "FillStyle", uno::Any( drawing::FillStyle_SOLID ) ); + xFloor->setPropertyValue( "LineColor", uno::Any( static_cast< sal_Int32 >( 0xb3b3b3 ) ) ); // gray30 + xFloor->setPropertyValue( "FillColor", uno::Any( static_cast< sal_Int32 >( 0xcccccc ) ) ); // gray20 } } diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx index 47508e5d05f5..12aea1fe3496 100644 --- a/chart2/source/model/main/Diagram.cxx +++ b/chart2/source/model/main/Diagram.cxx @@ -317,7 +317,7 @@ Diagram::Diagram( uno::Reference< uno::XComponentContext > const & xContext ) : // straight ono the scene). These defaults have been acquired from the old // chart implementation. setFastPropertyValue_NoBroadcast( - SceneProperties::PROP_SCENE_CAMERA_GEOMETRY, uno::makeAny( + SceneProperties::PROP_SCENE_CAMERA_GEOMETRY, uno::Any( ThreeDHelper::getDefaultCameraGeometry())); } @@ -680,7 +680,7 @@ void SAL_CALL Diagram::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) co { sal_Int32 nPerspective = ::basegfx::fround( ThreeDHelper::CameraDistanceToPerspective( ThreeDHelper::getCameraDistance( const_cast< Diagram* >( this ) ) ) ); - rValue = uno::makeAny(nPerspective); + rValue = uno::Any(nPerspective); } else if( PROP_DIAGRAM_ROTATION_HORIZONTAL == nHandle || PROP_DIAGRAM_ROTATION_VERTICAL == nHandle ) @@ -692,7 +692,7 @@ void SAL_CALL Diagram::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) co nAngleDegree = nHorizontal; else nAngleDegree = nVertical; - rValue = uno::makeAny(nAngleDegree); + rValue = uno::Any(nAngleDegree); } else ::property::OPropertySet::getFastPropertyValue( rValue,nHandle ); diff --git a/chart2/source/model/main/StockBar.cxx b/chart2/source/model/main/StockBar.cxx index 480cc29a41d0..a66243b847cd 100644 --- a/chart2/source/model/main/StockBar.cxx +++ b/chart2/source/model/main/StockBar.cxx @@ -118,10 +118,10 @@ StockBar::StockBar( bool bRisingCourse ) : { setFastPropertyValue_NoBroadcast( ::chart::FillProperties::PROP_FILL_COLOR, - uno::makeAny( sal_Int32( 0x000000 ))); // black + uno::Any( sal_Int32( 0x000000 ))); // black setFastPropertyValue_NoBroadcast( ::chart::LinePropertiesHelper::PROP_LINE_COLOR, - uno::makeAny( sal_Int32( 0xb3b3b3 ))); // gray30 + uno::Any( sal_Int32( 0xb3b3b3 ))); // gray30 } } diff --git a/chart2/source/model/template/AreaChartTypeTemplate.cxx b/chart2/source/model/template/AreaChartTypeTemplate.cxx index 3353d0d752f7..abe4f805d69d 100644 --- a/chart2/source/model/template/AreaChartTypeTemplate.cxx +++ b/chart2/source/model/template/AreaChartTypeTemplate.cxx @@ -122,7 +122,7 @@ AreaChartTypeTemplate::AreaChartTypeTemplate( ::property::OPropertySet( m_aMutex ), m_eStackMode( eStackMode ) { - setFastPropertyValue_NoBroadcast( PROP_AREA_TEMPLATE_DIMENSION, uno::makeAny( nDim )); + setFastPropertyValue_NoBroadcast( PROP_AREA_TEMPLATE_DIMENSION, uno::Any( nDim )); } AreaChartTypeTemplate::~AreaChartTypeTemplate() @@ -179,7 +179,7 @@ void SAL_CALL AreaChartTypeTemplate::applyStyle( ::sal_Int32 nSeriesCount ) { ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount ); - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); } void SAL_CALL AreaChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram >& xDiagram ) @@ -187,7 +187,7 @@ void SAL_CALL AreaChartTypeTemplate::resetStyles( const Reference< chart2::XDiag ChartTypeTemplate::resetStyles( xDiagram ); ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec( DiagramHelper::getDataSeriesFromDiagram( xDiagram )); - uno::Any aLineStyleAny( uno::makeAny( drawing::LineStyle_NONE )); + uno::Any aLineStyleAny( drawing::LineStyle_NONE ); for( ::std::vector< Reference< chart2::XDataSeries > >::iterator aIt( aSeriesVec.begin()); aIt != aSeriesVec.end(); ++aIt ) { diff --git a/chart2/source/model/template/BarChartTypeTemplate.cxx b/chart2/source/model/template/BarChartTypeTemplate.cxx index b06e7bb08746..a2943f81a633 100644 --- a/chart2/source/model/template/BarChartTypeTemplate.cxx +++ b/chart2/source/model/template/BarChartTypeTemplate.cxx @@ -189,7 +189,7 @@ sal_Bool SAL_CALL BarChartTypeTemplate::matchesTemplate( if( !bGeomAmbiguous ) { setFastPropertyValue_NoBroadcast( - PROP_BAR_TEMPLATE_GEOMETRY3D, uno::makeAny( aCommonGeom )); + PROP_BAR_TEMPLATE_GEOMETRY3D, uno::Any( aCommonGeom )); } } @@ -250,7 +250,7 @@ void SAL_CALL BarChartTypeTemplate::applyStyle( ::sal_Int32 nSeriesCount ) { ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount ); - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); if( getDimension() == 3 ) { try @@ -273,7 +273,7 @@ void SAL_CALL BarChartTypeTemplate::resetStyles( ChartTypeTemplate::resetStyles( xDiagram ); ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec( DiagramHelper::getDataSeriesFromDiagram( xDiagram )); - uno::Any aLineStyleAny( uno::makeAny( drawing::LineStyle_NONE )); + uno::Any aLineStyleAny( drawing::LineStyle_NONE ); for( ::std::vector< Reference< chart2::XDataSeries > >::iterator aIt( aSeriesVec.begin()); aIt != aSeriesVec.end(); ++aIt ) { diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.cxx b/chart2/source/model/template/BubbleChartTypeTemplate.cxx index 78a297305aa1..39a33f1a8908 100644 --- a/chart2/source/model/template/BubbleChartTypeTemplate.cxx +++ b/chart2/source/model/template/BubbleChartTypeTemplate.cxx @@ -147,7 +147,7 @@ void SAL_CALL BubbleChartTypeTemplate::applyStyle( ::sal_Int32 nSeriesCount ) { ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount ); - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); } // ____ XChartTypeTemplate ____ diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx index 22c74c5ff7ea..4e0d14f3b540 100644 --- a/chart2/source/model/template/CandleStickChartType.cxx +++ b/chart2/source/model/template/CandleStickChartType.cxx @@ -159,9 +159,9 @@ CandleStickChartType::CandleStickChartType( ModifyListenerHelper::addListener( xBlackDayProps, m_xModifyEventForwarder ); setFastPropertyValue_NoBroadcast( - PROP_CANDLESTICKCHARTTYPE_WHITE_DAY, uno::makeAny( xWhiteDayProps )); + PROP_CANDLESTICKCHARTTYPE_WHITE_DAY, uno::Any( xWhiteDayProps )); setFastPropertyValue_NoBroadcast( - PROP_CANDLESTICKCHARTTYPE_BLACK_DAY, uno::makeAny( xBlackDayProps )); + PROP_CANDLESTICKCHARTTYPE_BLACK_DAY, uno::Any( xBlackDayProps )); } CandleStickChartType::CandleStickChartType( const CandleStickChartType & rOther ) : diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index da1cfefda6bf..d62068c9afac 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -64,7 +64,7 @@ void lcl_applyDefaultStyle( if( xSeriesProp.is() && xColorScheme.is() ) xSeriesProp->setPropertyValue( "Color", - uno::makeAny( xColorScheme->getColorByIndex( nIndex ))); + uno::Any( xColorScheme->getColorByIndex( nIndex ))); } } @@ -113,7 +113,7 @@ void lcl_ensureCorrectMissingValueTreatment( const Reference< chart2::XDiagram > ::chart::ChartTypeHelper::getSupportedMissingValueTreatments( xChartType ) ); if( aAvailableMissingValueTreatment.getLength() ) - xDiaProp->setPropertyValue( "MissingValueTreatment", uno::makeAny( aAvailableMissingValueTreatment[0] ) ); + xDiaProp->setPropertyValue( "MissingValueTreatment", uno::Any( aAvailableMissingValueTreatment[0] ) ); else xDiaProp->setPropertyValue( "MissingValueTreatment", uno::Any() ); } @@ -214,7 +214,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagram( const uno::Reference< XDiagram > if( aData.Categories.is()) { aParam.realloc( 1 ); - aParam[0] = beans::PropertyValue( "HasCategories", -1, uno::makeAny( true ), + aParam[0] = beans::PropertyValue( "HasCategories", -1, uno::Any( true ), beans::PropertyState_DIRECT_VALUE ); } aData = xInterpreter->interpretDataSource( xSource, aParam, aFlatSeriesSeq ); @@ -388,7 +388,7 @@ void SAL_CALL ChartTypeTemplate::applyStyle( try { StackMode eStackMode = getStackMode( nChartTypeIndex ); - const uno::Any aPropValue = uno::makeAny( + const uno::Any aPropValue = uno::Any( ( (eStackMode == StackMode_Y_STACKED) || (eStackMode == StackMode_Y_STACKED_PERCENT) ) ? chart2::StackingDirection_Y_STACKING @@ -447,7 +447,7 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram if( xAxisProp.is()) { // set number format to source format - xAxisProp->setPropertyValue(CHART_UNONAME_LINK_TO_SRC_NUMFMT, uno::makeAny(true)); + xAxisProp->setPropertyValue(CHART_UNONAME_LINK_TO_SRC_NUMFMT, uno::Any(true)); xAxisProp->setPropertyValue(CHART_UNONAME_NUMFMT, uno::Any()); } } @@ -745,7 +745,7 @@ void ChartTypeTemplate::adaptAxes( if( xAxisProp.is()) { // set number format to source format - xAxisProp->setPropertyValue(CHART_UNONAME_LINK_TO_SRC_NUMFMT, uno::makeAny(true)); + xAxisProp->setPropertyValue(CHART_UNONAME_LINK_TO_SRC_NUMFMT, uno::Any(true)); xAxisProp->setPropertyValue(CHART_UNONAME_NUMFMT, uno::Any()); } } diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx index 9809cd0f0845..4ca7024bd139 100644 --- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx +++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx @@ -127,7 +127,7 @@ ColumnLineChartTypeTemplate::ColumnLineChartTypeTemplate( ::property::OPropertySet( m_aMutex ), m_eStackMode( eStackMode ) { - setFastPropertyValue_NoBroadcast( PROP_COL_LINE_NUMBER_OF_LINES, uno::makeAny( nNumberOfLines )); + setFastPropertyValue_NoBroadcast( PROP_COL_LINE_NUMBER_OF_LINES, uno::Any( nNumberOfLines )); } ColumnLineChartTypeTemplate::~ColumnLineChartTypeTemplate() @@ -242,7 +242,7 @@ void SAL_CALL ColumnLineChartTypeTemplate::applyStyle( if( nChartTypeIndex==0 ) // columns { - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); } else if( nChartTypeIndex==1 ) // lines { @@ -332,7 +332,7 @@ sal_Bool SAL_CALL ColumnLineChartTypeTemplate::matchesTemplate( if( xSeriesContainer.is() ) { sal_Int32 nNumberOfLines = xSeriesContainer->getDataSeries().getLength(); - setFastPropertyValue_NoBroadcast( PROP_COL_LINE_NUMBER_OF_LINES, uno::makeAny( nNumberOfLines )); + setFastPropertyValue_NoBroadcast( PROP_COL_LINE_NUMBER_OF_LINES, uno::Any( nNumberOfLines )); } } } diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx index d3e7c85f5352..57f03562e85d 100644 --- a/chart2/source/model/template/DataInterpreter.cxx +++ b/chart2/source/model/template/DataInterpreter.cxx @@ -330,7 +330,7 @@ void DataInterpreter::SetRole( const Reference< data::XDataSequence > & xSeq, co try { Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY_THROW ); - xProp->setPropertyValue( "Role", uno::makeAny( rRole )); + xProp->setPropertyValue( "Role", uno::Any( rRole )); } catch( const uno::Exception & ex ) { diff --git a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx index c8cf9b490efa..ed5ba7807abf 100644 --- a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx +++ b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx @@ -156,7 +156,7 @@ GL3DBarChartTypeTemplate::getChartTypeForNewSeries( const uno::Sequence<uno::Ref new GL3DBarChartType(GetComponentContext())); bool bVal = false; getFastPropertyValue(PROP_GL3DCHARTTYPE_ROUNDED_EDGE) >>= bVal; - chart->setPropertyValue(CHART_UNONAME_ROUNDED_EDGE, uno::makeAny(bVal)); + chart->setPropertyValue(CHART_UNONAME_ROUNDED_EDGE, uno::Any(bVal)); xResult = chart.get(); } catch (const uno::Exception & ex) diff --git a/chart2/source/model/template/PieChartTypeTemplate.cxx b/chart2/source/model/template/PieChartTypeTemplate.cxx index 0144b54a6924..15a27541bedb 100644 --- a/chart2/source/model/template/PieChartTypeTemplate.cxx +++ b/chart2/source/model/template/PieChartTypeTemplate.cxx @@ -160,9 +160,9 @@ PieChartTypeTemplate::PieChartTypeTemplate( ChartTypeTemplate( xContext, rServiceName ), ::property::OPropertySet( m_aMutex ) { - setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_OFFSET_MODE, uno::makeAny( eMode )); - setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_DIMENSION, uno::makeAny( nDim )); - setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_USE_RINGS, uno::makeAny( bRings )); + setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_OFFSET_MODE, uno::Any( eMode )); + setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_DIMENSION, uno::Any( nDim )); + setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_USE_RINGS, uno::Any( bRings )); } PieChartTypeTemplate::~PieChartTypeTemplate() @@ -359,7 +359,7 @@ sal_Bool SAL_CALL PieChartTypeTemplate::matchesTemplate( { eOffsetMode = chart2::PieChartOffsetMode_ALL_EXPLODED; if( bAdaptProperties ) - setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_DEFAULT_OFFSET, uno::makeAny( fOffset )); + setFastPropertyValue_NoBroadcast( PROP_PIE_TEMPLATE_DEFAULT_OFFSET, uno::Any( fOffset )); } bResult = ( eOffsetMode == ePieOffsetMode ); @@ -505,7 +505,7 @@ void SAL_CALL PieChartTypeTemplate::applyStyle( if( bSetOffset ) { // set the offset to the series and to the attributed data points - xProp->setPropertyValue( aOffsetPropName, uno::makeAny( fOffsetToSet )); + xProp->setPropertyValue( aOffsetPropName, uno::Any( fOffsetToSet )); // remove hard attributes from data points for( sal_Int32 nPtIdx=0; nPtIdx<aAttributedDataPointIndexList.getLength(); ++nPtIdx ) @@ -519,10 +519,10 @@ void SAL_CALL PieChartTypeTemplate::applyStyle( } // line style - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); // vary colors by point - xProp->setPropertyValue( "VaryColorsByPoint", uno::makeAny( true )); + xProp->setPropertyValue( "VaryColorsByPoint", uno::Any( true )); } catch( const uno::Exception & ex ) { @@ -574,7 +574,7 @@ void SAL_CALL PieChartTypeTemplate::resetStyles( const Reference< chart2::XDiagr // line style ::std::vector< Reference< chart2::XDataSeries > > aSeriesVec( DiagramHelper::getDataSeriesFromDiagram( xDiagram )); - uno::Any aLineStyleAny( uno::makeAny( drawing::LineStyle_NONE )); + uno::Any aLineStyleAny( drawing::LineStyle_NONE ); for( ::std::vector< Reference< chart2::XDataSeries > >::iterator aIt( aSeriesVec.begin()); aIt != aSeriesVec.end(); ++aIt ) { diff --git a/chart2/source/model/template/ScatterChartType.cxx b/chart2/source/model/template/ScatterChartType.cxx index 922dfb90f26f..be1f3ec99472 100644 --- a/chart2/source/model/template/ScatterChartType.cxx +++ b/chart2/source/model/template/ScatterChartType.cxx @@ -149,13 +149,13 @@ ScatterChartType::ScatterChartType( { if( eCurveStyle != chart2::CurveStyle_LINES ) setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_CURVE_STYLE, - uno::makeAny( eCurveStyle )); + uno::Any( eCurveStyle )); if( nResolution != 20 ) setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_CURVE_RESOLUTION, - uno::makeAny( nResolution )); + uno::Any( nResolution )); if( nOrder != 3 ) setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_SPLINE_ORDER, - uno::makeAny( nOrder )); + uno::Any( nOrder )); } ScatterChartType::ScatterChartType( const ScatterChartType & rOther ) : diff --git a/chart2/source/model/template/ScatterChartTypeTemplate.cxx b/chart2/source/model/template/ScatterChartTypeTemplate.cxx index bde601008446..ea5c553637f5 100644 --- a/chart2/source/model/template/ScatterChartTypeTemplate.cxx +++ b/chart2/source/model/template/ScatterChartTypeTemplate.cxx @@ -212,7 +212,7 @@ void SAL_CALL ScatterChartTypeTemplate::applyStyle( DataSeriesHelper::switchLinesOnOrOff( xProp, m_bHasLines ); DataSeriesHelper::makeLinesThickOrThin( xProp, m_nDim==2 ); if( m_nDim==3 ) - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); } catch( const uno::Exception & ex ) { diff --git a/chart2/source/model/template/StockChartTypeTemplate.cxx b/chart2/source/model/template/StockChartTypeTemplate.cxx index 3b58a76aa969..d453fec3cf51 100644 --- a/chart2/source/model/template/StockChartTypeTemplate.cxx +++ b/chart2/source/model/template/StockChartTypeTemplate.cxx @@ -163,15 +163,15 @@ StockChartTypeTemplate::StockChartTypeTemplate( { setFastPropertyValue_NoBroadcast( PROP_STOCKCHARTTYPE_TEMPLATE_OPEN, - uno::makeAny( ( eVariant == OPEN_LOW_HI_CLOSE || + uno::Any( ( eVariant == OPEN_LOW_HI_CLOSE || eVariant == VOL_OPEN_LOW_HI_CLOSE ))); setFastPropertyValue_NoBroadcast( PROP_STOCKCHARTTYPE_TEMPLATE_VOLUME, - uno::makeAny( ( eVariant == VOL_LOW_HI_CLOSE || + uno::Any( ( eVariant == VOL_LOW_HI_CLOSE || eVariant == VOL_OPEN_LOW_HI_CLOSE ))); setFastPropertyValue_NoBroadcast( PROP_STOCKCHARTTYPE_TEMPLATE_JAPANESE, - uno::makeAny( bJapaneseStyle )); + uno::Any( bJapaneseStyle )); } StockChartTypeTemplate::~StockChartTypeTemplate() @@ -234,12 +234,12 @@ void SAL_CALL StockChartTypeTemplate::applyStyle( Reference< beans::XPropertySet > xProp( xSeries, uno::UNO_QUERY ); if( xProp.is() ) - xProp->setPropertyValue( "AttachedAxisIndex", uno::makeAny( nNewAxisIndex ) ); + xProp->setPropertyValue( "AttachedAxisIndex", uno::Any( nNewAxisIndex ) ); if( bHasVolume && nChartTypeIndex==0 ) { //switch lines off for volume bars - DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) ); + DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::Any( drawing::LineStyle_NONE ) ); } else { @@ -249,7 +249,7 @@ void SAL_CALL StockChartTypeTemplate::applyStyle( drawing::LineStyle eStyle = drawing::LineStyle_NONE; xProp->getPropertyValue( "LineStyle" ) >>= eStyle; if( eStyle == drawing::LineStyle_NONE ) - xProp->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_SOLID )); + xProp->setPropertyValue( "LineStyle", uno::Any( drawing::LineStyle_SOLID )); } } @@ -273,7 +273,7 @@ void SAL_CALL StockChartTypeTemplate::resetStyles( { Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY ); if( xProp.is() ) - xProp->setPropertyValue( "AttachedAxisIndex", uno::makeAny( sal_Int32(0) ) ); + xProp->setPropertyValue( "AttachedAxisIndex", uno::Any( sal_Int32(0) ) ); } } @@ -360,9 +360,9 @@ void StockChartTypeTemplate::createChartTypes( Reference< beans::XPropertySet > xCTProp( xCT, uno::UNO_QUERY ); if( xCTProp.is()) { - xCTProp->setPropertyValue( "Japanese", uno::makeAny( bJapaneseStyle )); - xCTProp->setPropertyValue( "ShowFirst", uno::makeAny( bShowFirst )); - xCTProp->setPropertyValue( "ShowHighLow", uno::makeAny( bShowHighLow )); + xCTProp->setPropertyValue( "Japanese", uno::Any( bJapaneseStyle )); + xCTProp->setPropertyValue( "ShowFirst", uno::Any( bShowFirst )); + xCTProp->setPropertyValue( "ShowHighLow", uno::Any( bShowHighLow )); } if( aSeriesSeq.getLength() > nSeriesIndex && |