diff options
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/model/main/Diagram.cxx | 2 | ||||
-rw-r--r-- | chart2/source/model/template/PieChartType.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/charttypes/PieChart.cxx | 3 | ||||
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 4 |
4 files changed, 5 insertions, 6 deletions
diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx index 810da642c78f..1d0295a6c8a6 100644 --- a/chart2/source/model/main/Diagram.cxx +++ b/chart2/source/model/main/Diagram.cxx @@ -168,7 +168,7 @@ void lcl_AddPropertiesToVector( beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEVOID )); rOutProperties.push_back( - Property( C2U("3DRelativeHeight"), + Property( "3DRelativeHeight", PROP_DIAGRAM_3DRELATIVEHEIGHT, ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)), beans::PropertyAttribute::MAYBEVOID )); diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx index 5bef973816d9..b54d9769d41f 100644 --- a/chart2/source/model/template/PieChartType.cxx +++ b/chart2/source/model/template/PieChartType.cxx @@ -56,7 +56,7 @@ static void lcl_AddPropertiesToVector( beans::PropertyAttribute::BOUND | beans::PropertyAttribute::MAYBEDEFAULT )); rOutProperties.push_back( - Property( C2U("3DRelativeHeight"), + Property( "3DRelativeHeight", PROP_PIECHARTTYPE_3DRELATIVEHEIGHT, ::getCppuType( reinterpret_cast< const sal_Int32 * >(0)), beans::PropertyAttribute::MAYBEVOID )); diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx index b532c2064d25..64b2f2b01e9d 100644 --- a/chart2/source/view/charttypes/PieChart.cxx +++ b/chart2/source/view/charttypes/PieChart.cxx @@ -346,7 +346,7 @@ void PieChart::createShapes() { try { - uno::Any aAny = xPropertySet->getPropertyValue( C2U("3DRelativeHeight") ); + uno::Any aAny = xPropertySet->getPropertyValue( "3DRelativeHeight" ); aAny >>= n3DRelativeHeight; } catch(const uno::Exception& e) {} @@ -391,7 +391,6 @@ void PieChart::createShapes() if( !bIsVisible ) continue; - double fLogicZ = -1.0;//as defined double fDepth = this->getTransformedDepth() * (n3DRelativeHeight / 100.0); uno::Reference< drawing::XShapes > xSeriesGroupShape_Shapes = getSeriesGroupShape(pSeries, xSeriesTarget); diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 70612e01550a..d6efb503d796 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -678,10 +678,10 @@ void SeriesPlotterContainer::initializeCooSysAndSeriesPlotter( try { sal_Int32 n3DRelativeHeightOldValue(100); - uno::Any aAny = xPropertySet->getPropertyValue( C2U("3DRelativeHeight") ); + uno::Any aAny = xPropertySet->getPropertyValue( "3DRelativeHeight" ); aAny >>= n3DRelativeHeightOldValue; if (n3DRelativeHeightOldValue != n3DRelativeHeight) - xPropertySet->setPropertyValue( C2U("3DRelativeHeight"), uno::makeAny(n3DRelativeHeight) ); + xPropertySet->setPropertyValue( "3DRelativeHeight", uno::makeAny(n3DRelativeHeight) ); } catch(const uno::Exception& e){} } |