summaryrefslogtreecommitdiff
path: root/chart2/source/model/template
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-01-30 11:44:23 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-30 12:54:40 +0000
commit97eb8a6e0eb830f37dcba64a51d725aab4c5ff53 (patch)
treea1a95b8249052d846a997ad1729758168d6a3b24 /chart2/source/model/template
parentf8569cd9a28a3a8856dba4ad53218aa6cc073521 (diff)
Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd Reviewed-on: https://gerrit.libreoffice.org/1924 Tested-by: Luboš Luňák <l.lunak@suse.cz> Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'chart2/source/model/template')
-rw-r--r--chart2/source/model/template/AreaChartType.cxx4
-rw-r--r--chart2/source/model/template/AreaChartTypeTemplate.cxx10
-rw-r--r--chart2/source/model/template/BarChartType.cxx4
-rw-r--r--chart2/source/model/template/BarChartTypeTemplate.cxx16
-rw-r--r--chart2/source/model/template/BubbleChartType.cxx16
-rw-r--r--chart2/source/model/template/BubbleChartTypeTemplate.cxx4
-rw-r--r--chart2/source/model/template/BubbleDataInterpreter.cxx22
-rw-r--r--chart2/source/model/template/CandleStickChartType.cxx34
-rw-r--r--chart2/source/model/template/ChartType.cxx8
-rw-r--r--chart2/source/model/template/ChartTypeManager.cxx140
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx40
-rw-r--r--chart2/source/model/template/ColumnChartType.cxx8
-rw-r--r--chart2/source/model/template/ColumnLineChartTypeTemplate.cxx6
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx30
-rw-r--r--chart2/source/model/template/FilledNetChartType.cxx6
-rw-r--r--chart2/source/model/template/LineChartType.cxx12
-rw-r--r--chart2/source/model/template/LineChartTypeTemplate.cxx30
-rw-r--r--chart2/source/model/template/NetChartType.cxx8
-rw-r--r--chart2/source/model/template/NetChartTypeTemplate.cxx6
-rw-r--r--chart2/source/model/template/PieChartType.cxx8
-rw-r--r--chart2/source/model/template/PieChartTypeTemplate.cxx36
-rw-r--r--chart2/source/model/template/ScatterChartType.cxx18
-rw-r--r--chart2/source/model/template/ScatterChartTypeTemplate.cxx32
-rw-r--r--chart2/source/model/template/StockChartTypeTemplate.cxx30
-rw-r--r--chart2/source/model/template/StockDataInterpreter.cxx18
-rw-r--r--chart2/source/model/template/XYDataInterpreter.cxx16
26 files changed, 281 insertions, 281 deletions
diff --git a/chart2/source/model/template/AreaChartType.cxx b/chart2/source/model/template/AreaChartType.cxx
index a00dc9dac108..2a06ac188695 100644
--- a/chart2/source/model/template/AreaChartType.cxx
+++ b/chart2/source/model/template/AreaChartType.cxx
@@ -56,13 +56,13 @@ uno::Sequence< ::rtl::OUString > AreaChartType::getSupportedServiceNames_Static(
{
uno::Sequence< ::rtl::OUString > aServices( 2 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_AREA;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( AreaChartType,
- C2U( "com.sun.star.comp.chart.AreaChartType" ));
+ OUString("com.sun.star.comp.chart.AreaChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/AreaChartTypeTemplate.cxx b/chart2/source/model/template/AreaChartTypeTemplate.cxx
index 7b63bee3908f..695d662da3db 100644
--- a/chart2/source/model/template/AreaChartTypeTemplate.cxx
+++ b/chart2/source/model/template/AreaChartTypeTemplate.cxx
@@ -53,7 +53,7 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "Dimension" ),
+ Property( "Dimension",
PROP_AREA_TEMPLATE_DIMENSION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -194,7 +194,7 @@ void SAL_CALL AreaChartTypeTemplate::applyStyle(
throw (uno::RuntimeException)
{
ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount );
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
}
void SAL_CALL AreaChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram >& xDiagram )
@@ -211,9 +211,9 @@ void SAL_CALL AreaChartTypeTemplate::resetStyles( const Reference< chart2::XDiag
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY );
if( xState.is() &&
xProp.is() &&
- xProp->getPropertyValue( C2U("BorderStyle")) == aLineStyleAny )
+ xProp->getPropertyValue( "BorderStyle") == aLineStyleAny )
{
- xState->setPropertyToDefault( C2U("BorderStyle"));
+ xState->setPropertyToDefault( "BorderStyle");
}
}
}
@@ -253,7 +253,7 @@ uno::Sequence< ::rtl::OUString > AreaChartTypeTemplate::getSupportedServiceNames
{
uno::Sequence< ::rtl::OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/BarChartType.cxx b/chart2/source/model/template/BarChartType.cxx
index 5450bc9bee90..cec160893c6c 100644
--- a/chart2/source/model/template/BarChartType.cxx
+++ b/chart2/source/model/template/BarChartType.cxx
@@ -57,13 +57,13 @@ uno::Sequence< ::rtl::OUString > BarChartType::getSupportedServiceNames_Static()
{
uno::Sequence< ::rtl::OUString > aServices( 2 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_BAR;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( BarChartType,
- C2U( "com.sun.star.comp.chart.BarChartType" ));
+ OUString("com.sun.star.comp.chart.BarChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/BarChartTypeTemplate.cxx b/chart2/source/model/template/BarChartTypeTemplate.cxx
index 49c51d56be05..7f936b4f1b5b 100644
--- a/chart2/source/model/template/BarChartTypeTemplate.cxx
+++ b/chart2/source/model/template/BarChartTypeTemplate.cxx
@@ -54,13 +54,13 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "Dimension" ),
+ Property( "Dimension",
PROP_BAR_TEMPLATE_DIMENSION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "Geometry3D" ),
+ Property( "Geometry3D",
PROP_BAR_TEMPLATE_GEOMETRY3D,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -264,7 +264,7 @@ void SAL_CALL BarChartTypeTemplate::applyStyle(
throw (uno::RuntimeException)
{
ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount );
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
if( getDimension() == 3 )
{
try
@@ -272,7 +272,7 @@ void SAL_CALL BarChartTypeTemplate::applyStyle(
//apply Geometry3D
uno::Any aAGeometry3D;
this->getFastPropertyValue( aAGeometry3D, PROP_BAR_TEMPLATE_GEOMETRY3D );
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "Geometry3D" ), aAGeometry3D );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "Geometry3D", aAGeometry3D );
}
catch( const uno::Exception & ex )
{
@@ -296,12 +296,12 @@ void SAL_CALL BarChartTypeTemplate::resetStyles(
if( xState.is())
{
if( getDimension() == 3 )
- xState->setPropertyToDefault( C2U("Geometry3D"));
+ xState->setPropertyToDefault( "Geometry3D");
Reference< beans::XPropertySet > xProp( xState, uno::UNO_QUERY );
if( xProp.is() &&
- xProp->getPropertyValue( C2U("BorderStyle")) == aLineStyleAny )
+ xProp->getPropertyValue( "BorderStyle") == aLineStyleAny )
{
- xState->setPropertyToDefault( C2U("BorderStyle"));
+ xState->setPropertyToDefault( "BorderStyle");
}
}
}
@@ -325,7 +325,7 @@ Sequence< OUString > BarChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx
index aff8baa2d17d..d18219356b6a 100644
--- a/chart2/source/model/template/BubbleChartType.cxx
+++ b/chart2/source/model/template/BubbleChartType.cxx
@@ -169,17 +169,17 @@ uno::Sequence< ::rtl::OUString > SAL_CALL BubbleChartType::getSupportedMandatory
{
uno::Sequence< ::rtl::OUString > aMandRolesSeq(4);
aMandRolesSeq.realloc( 4 );
- aMandRolesSeq[0] = C2U( "label" );
- aMandRolesSeq[1] = C2U( "values-x" );
- aMandRolesSeq[2] = C2U( "values-y" );
- aMandRolesSeq[3] = C2U( "values-size" );
+ aMandRolesSeq[0] = "label";
+ aMandRolesSeq[1] = "values-x";
+ aMandRolesSeq[2] = "values-y";
+ aMandRolesSeq[3] = "values-size";
return aMandRolesSeq;
}
OUString SAL_CALL BubbleChartType::getRoleOfSequenceForSeriesLabel()
throw (uno::RuntimeException)
{
- return C2U( "values-size" );
+ return OUString("values-size");
}
// ____ OPropertySet ____
@@ -210,14 +210,14 @@ uno::Sequence< ::rtl::OUString > BubbleChartType::getSupportedServiceNames_Stati
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_BUBBLE;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( BubbleChartType,
- C2U( "com.sun.star.comp.chart.BubbleChartType" ));
+ OUString("com.sun.star.comp.chart.BubbleChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.cxx b/chart2/source/model/template/BubbleChartTypeTemplate.cxx
index b48c3696578f..79fef5d67752 100644
--- a/chart2/source/model/template/BubbleChartTypeTemplate.cxx
+++ b/chart2/source/model/template/BubbleChartTypeTemplate.cxx
@@ -164,7 +164,7 @@ void SAL_CALL BubbleChartTypeTemplate::applyStyle(
throw (uno::RuntimeException)
{
ChartTypeTemplate::applyStyle( xSeries, nChartTypeIndex, nSeriesIndex, nSeriesCount );
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
try
{
@@ -279,7 +279,7 @@ Sequence< OUString > BubbleChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/BubbleDataInterpreter.cxx b/chart2/source/model/template/BubbleDataInterpreter.cxx
index 9e7db81b72c2..be2f1f0aee3f 100644
--- a/chart2/source/model/template/BubbleDataInterpreter.cxx
+++ b/chart2/source/model/template/BubbleDataInterpreter.cxx
@@ -86,7 +86,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::interpretDataSource(
xCategories.set( aData[nDataIdx] );
if( xCategories.is())
{
- SetRole( xCategories->getValues(), C2U("categories"));
+ SetRole( xCategories->getValues(), "categories");
if( bUseCategoriesAsX )
{
bSetXValues = false;
@@ -99,20 +99,20 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::interpretDataSource(
{
xValuesX.set( aData[nDataIdx] );
if( xValuesX.is())
- SetRole( xValuesX->getValues(), C2U("values-x"));
+ SetRole( xValuesX->getValues(), "values-x");
}
else if( bNextIsYValues )
{
aYValuesVector.push_back( aData[nDataIdx] );
if( aData[nDataIdx].is())
- SetRole( aData[nDataIdx]->getValues(), C2U("values-y"));
+ SetRole( aData[nDataIdx]->getValues(), "values-y");
bNextIsYValues = false;
}
else if( !bNextIsYValues )
{
aSizeValuesVector.push_back( aData[nDataIdx] );
if( aData[nDataIdx].is())
- SetRole( aData[nDataIdx]->getValues(), C2U("values-size"));
+ SetRole( aData[nDataIdx]->getValues(), "values-size");
bNextIsYValues = (nDataSeqCount-(nDataIdx+1)) >= 2;//two or more left
}
}
@@ -179,11 +179,11 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::reinterpretDataSeries(
Sequence< Reference< data::XLabeledDataSequence > > aNewSequences;
Reference< data::XLabeledDataSequence > xValuesSize(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-size"), false ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values-size", false ));
Reference< data::XLabeledDataSequence > xValuesY(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-y"), false ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values-y", false ));
Reference< data::XLabeledDataSequence > xValuesX(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-x"), false ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values-x", false ));
if( ! xValuesX.is() ||
! xValuesY.is() ||
@@ -191,7 +191,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::reinterpretDataSeries(
{
vector< Reference< data::XLabeledDataSequence > > aValueSeqVec(
DataSeriesHelper::getAllDataSequencesByRole(
- xSeriesSource->getDataSequences(), C2U("values"), true ));
+ xSeriesSource->getDataSequences(), "values", true ));
if( xValuesX.is())
aValueSeqVec.erase( find( aValueSeqVec.begin(), aValueSeqVec.end(), xValuesX ));
if( xValuesY.is())
@@ -206,7 +206,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::reinterpretDataSeries(
{
xValuesSize.set( aValueSeqVec[nIndex++] );
if( xValuesSize.is())
- SetRole( xValuesSize->getValues(), C2U("values-size"));
+ SetRole( xValuesSize->getValues(), "values-size");
}
if( ! xValuesY.is() &&
@@ -214,7 +214,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::reinterpretDataSeries(
{
xValuesY.set( aValueSeqVec[nIndex++] );
if( xValuesY.is())
- SetRole( xValuesY->getValues(), C2U("values-y"));
+ SetRole( xValuesY->getValues(), "values-y");
}
if( ! xValuesX.is() &&
@@ -222,7 +222,7 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::reinterpretDataSeries(
{
xValuesX.set( aValueSeqVec[nIndex++] );
if( xValuesX.is())
- SetRole( xValuesY->getValues(), C2U("values-x"));
+ SetRole( xValuesY->getValues(), "values-x");
}
}
if( xValuesSize.is())
diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx
index 7593bee4a06e..d1ccc532ef0e 100644
--- a/chart2/source/model/template/CandleStickChartType.cxx
+++ b/chart2/source/model/template/CandleStickChartType.cxx
@@ -52,33 +52,33 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "Japanese" ),
+ Property( "Japanese",
PROP_CANDLESTICKCHARTTYPE_JAPANESE,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "WhiteDay" ),
+ Property( "WhiteDay",
PROP_CANDLESTICKCHARTTYPE_WHITE_DAY,
::getCppuType( reinterpret_cast< Reference< beans::XPropertySet > *>(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
- Property( C2U( "BlackDay" ),
+ Property( "BlackDay",
PROP_CANDLESTICKCHARTTYPE_BLACK_DAY,
::getCppuType( reinterpret_cast< Reference< beans::XPropertySet > *>(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEVOID ));
rOutProperties.push_back(
- Property( C2U( "ShowFirst" ),
+ Property( "ShowFirst",
PROP_CANDLESTICKCHARTTYPE_SHOW_FIRST,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "ShowHighLow" ),
+ Property( "ShowHighLow",
PROP_CANDLESTICKCHARTTYPE_SHOW_HIGH_LOW,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
@@ -232,17 +232,17 @@ uno::Sequence< ::rtl::OUString > SAL_CALL CandleStickChartType::getSupportedMand
::std::vector< OUString > aMandRoles;
- aMandRoles.push_back( C2U( "label" ));
+ aMandRoles.push_back( "label");
if( bShowFirst )
- aMandRoles.push_back( C2U( "values-first" ));
+ aMandRoles.push_back( "values-first");
if( bShowHiLow )
{
- aMandRoles.push_back( C2U( "values-min" ));
- aMandRoles.push_back( C2U( "values-max" ));
+ aMandRoles.push_back( "values-min");
+ aMandRoles.push_back( "values-max");
}
- aMandRoles.push_back( C2U( "values-last" ));
+ aMandRoles.push_back( "values-last");
return ContainerHelper::ContainerToSequence( aMandRoles );
}
@@ -258,12 +258,12 @@ Sequence< OUString > SAL_CALL CandleStickChartType::getSupportedOptionalRoles()
::std::vector< OUString > aOptRoles;
if( ! bShowFirst )
- aOptRoles.push_back( C2U( "values-first" ));
+ aOptRoles.push_back( "values-first");
if( ! bShowHiLow )
{
- aOptRoles.push_back( C2U( "values-min" ));
- aOptRoles.push_back( C2U( "values-max" ));
+ aOptRoles.push_back( "values-min");
+ aOptRoles.push_back( "values-max");
}
return ContainerHelper::ContainerToSequence( aOptRoles );
@@ -272,7 +272,7 @@ Sequence< OUString > SAL_CALL CandleStickChartType::getSupportedOptionalRoles()
OUString SAL_CALL CandleStickChartType::getRoleOfSequenceForSeriesLabel()
throw (uno::RuntimeException)
{
- return C2U( "values-last" );
+ return OUString("values-last");
}
// ____ OPropertySet ____
@@ -332,14 +332,14 @@ uno::Sequence< ::rtl::OUString > CandleStickChartType::getSupportedServiceNames_
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_CANDLESTICK;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( CandleStickChartType,
- C2U( "com.sun.star.comp.chart.CandleStickChartType" ));
+ OUString("com.sun.star.comp.chart.CandleStickChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/ChartType.cxx b/chart2/source/model/template/ChartType.cxx
index b87107a975f1..d78d16ed0e89 100644
--- a/chart2/source/model/template/ChartType.cxx
+++ b/chart2/source/model/template/ChartType.cxx
@@ -112,8 +112,8 @@ Sequence< OUString > SAL_CALL ChartType::getSupportedMandatoryRoles()
throw (uno::RuntimeException)
{
Sequence< OUString > aDefaultSeq(2);
- aDefaultSeq[0] = C2U( "label" );
- aDefaultSeq[1] = C2U( "values-y" );
+ aDefaultSeq[0] = "label";
+ aDefaultSeq[1] = "values-y";
return aDefaultSeq;
}
@@ -126,7 +126,7 @@ Sequence< OUString > SAL_CALL ChartType::getSupportedOptionalRoles()
OUString SAL_CALL ChartType::getRoleOfSequenceForSeriesLabel()
throw (uno::RuntimeException)
{
- return C2U( "values-y" );
+ return OUString("values-y");
}
void ChartType::impl_addDataSeriesWithoutNotification(
@@ -161,7 +161,7 @@ void SAL_CALL ChartType::removeDataSeries( const Reference< chart2::XDataSeries
if( aIt == m_aDataSeries.end())
throw container::NoSuchElementException(
- C2U( "The given series is no element of this charttype" ),
+ "The given series is no element of this charttype",
static_cast< uno::XWeak * >( this ));
ModifyListenerHelper::removeListener( xDataSeries, m_xModifyEventForwarder );
diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx
index 61f55cffd54c..25aba04d05c1 100644
--- a/chart2/source/model/template/ChartTypeManager.cxx
+++ b/chart2/source/model/template/ChartTypeManager.cxx
@@ -135,72 +135,72 @@ const tTemplateMapType & lcl_DefaultChartTypeMap()
{
static const tTemplateMapType aMap = tTemplateMapType(
::comphelper::MakeMap< tTemplateMapType::key_type, tTemplateMapType::mapped_type >
- ( C2U( "com.sun.star.chart2.template.Symbol" ), TEMPLATE_SYMBOL )
- ( C2U( "com.sun.star.chart2.template.StackedSymbol" ), TEMPLATE_STACKEDSYMBOL )
- ( C2U( "com.sun.star.chart2.template.PercentStackedSymbol" ), TEMPLATE_PERCENTSTACKEDSYMBOL )
- ( C2U( "com.sun.star.chart2.template.Line" ), TEMPLATE_LINE )
- ( C2U( "com.sun.star.chart2.template.StackedLine" ), TEMPLATE_STACKEDLINE )
- ( C2U( "com.sun.star.chart2.template.PercentStackedLine" ), TEMPLATE_PERCENTSTACKEDLINE )
- ( C2U( "com.sun.star.chart2.template.LineSymbol" ), TEMPLATE_LINESYMBOL )
- ( C2U( "com.sun.star.chart2.template.StackedLineSymbol" ), TEMPLATE_STACKEDLINESYMBOL )
- ( C2U( "com.sun.star.chart2.template.PercentStackedLineSymbol" ), TEMPLATE_PERCENTSTACKEDLINESYMBOL )
- ( C2U( "com.sun.star.chart2.template.ThreeDLine" ), TEMPLATE_THREEDLINE )
- ( C2U( "com.sun.star.chart2.template.StackedThreeDLine" ), TEMPLATE_STACKEDTHREEDLINE )
- ( C2U( "com.sun.star.chart2.template.PercentStackedThreeDLine" ), TEMPLATE_PERCENTSTACKEDTHREEDLINE )
- ( C2U( "com.sun.star.chart2.template.ThreeDLineDeep" ), TEMPLATE_THREEDLINEDEEP )
- ( C2U( "com.sun.star.chart2.template.Column" ), TEMPLATE_COLUMN )
- ( C2U( "com.sun.star.chart2.template.StackedColumn" ), TEMPLATE_STACKEDCOLUMN )
- ( C2U( "com.sun.star.chart2.template.PercentStackedColumn" ), TEMPLATE_PERCENTSTACKEDCOLUMN )
- ( C2U( "com.sun.star.chart2.template.Bar" ), TEMPLATE_BAR )
- ( C2U( "com.sun.star.chart2.template.StackedBar" ), TEMPLATE_STACKEDBAR )
- ( C2U( "com.sun.star.chart2.template.PercentStackedBar" ), TEMPLATE_PERCENTSTACKEDBAR )
- ( C2U( "com.sun.star.chart2.template.ThreeDColumnDeep" ), TEMPLATE_THREEDCOLUMNDEEP )
- ( C2U( "com.sun.star.chart2.template.ThreeDColumnFlat" ), TEMPLATE_THREEDCOLUMNFLAT )
- ( C2U( "com.sun.star.chart2.template.StackedThreeDColumnFlat" ), TEMPLATE_STACKEDTHREEDCOLUMNFLAT )
- ( C2U( "com.sun.star.chart2.template.PercentStackedThreeDColumnFlat" ), TEMPLATE_PERCENTSTACKEDTHREEDCOLUMNFLAT )
- ( C2U( "com.sun.star.chart2.template.ThreeDBarDeep" ), TEMPLATE_THREEDBARDEEP )
- ( C2U( "com.sun.star.chart2.template.ThreeDBarFlat" ), TEMPLATE_THREEDBARFLAT )
- ( C2U( "com.sun.star.chart2.template.StackedThreeDBarFlat" ), TEMPLATE_STACKEDTHREEDBARFLAT )
- ( C2U( "com.sun.star.chart2.template.PercentStackedThreeDBarFlat" ), TEMPLATE_PERCENTSTACKEDTHREEDBARFLAT )
- ( C2U( "com.sun.star.chart2.template.ColumnWithLine" ), TEMPLATE_COLUMNWITHLINE )
- ( C2U( "com.sun.star.chart2.template.StackedColumnWithLine" ), TEMPLATE_STACKEDCOLUMNWITHLINE )
- ( C2U( "com.sun.star.chart2.template.Area" ), TEMPLATE_AREA )
- ( C2U( "com.sun.star.chart2.template.StackedArea" ), TEMPLATE_STACKEDAREA )
- ( C2U( "com.sun.star.chart2.template.PercentStackedArea" ), TEMPLATE_PERCENTSTACKEDAREA )
- ( C2U( "com.sun.star.chart2.template.ThreeDArea" ), TEMPLATE_THREEDAREA )
- ( C2U( "com.sun.star.chart2.template.StackedThreeDArea" ), TEMPLATE_STACKEDTHREEDAREA )
- ( C2U( "com.sun.star.chart2.template.PercentStackedThreeDArea" ), TEMPLATE_PERCENTSTACKEDTHREEDAREA )
- ( C2U( "com.sun.star.chart2.template.Pie" ), TEMPLATE_PIE )
- ( C2U( "com.sun.star.chart2.template.PieAllExploded" ), TEMPLATE_PIEALLEXPLODED )
- ( C2U( "com.sun.star.chart2.template.Donut" ), TEMPLATE_DONUT )
- ( C2U( "com.sun.star.chart2.template.DonutAllExploded" ), TEMPLATE_DONUTALLEXPLODED )
- ( C2U( "com.sun.star.chart2.template.ThreeDPie" ), TEMPLATE_THREEDPIE )
- ( C2U( "com.sun.star.chart2.template.ThreeDPieAllExploded" ), TEMPLATE_THREEDPIEALLEXPLODED )
- ( C2U( "com.sun.star.chart2.template.ThreeDDonut" ), TEMPLATE_THREEDDONUT )
- ( C2U( "com.sun.star.chart2.template.ThreeDDonutAllExploded" ), TEMPLATE_THREEDDONUTALLEXPLODED )
- ( C2U( "com.sun.star.chart2.template.ScatterLineSymbol" ), TEMPLATE_SCATTERLINESYMBOL )
- ( C2U( "com.sun.star.chart2.template.ScatterLine" ), TEMPLATE_SCATTERLINE )
- ( C2U( "com.sun.star.chart2.template.ScatterSymbol" ), TEMPLATE_SCATTERSYMBOL )
- ( C2U( "com.sun.star.chart2.template.ThreeDScatter" ), TEMPLATE_THREEDSCATTER )
- ( C2U( "com.sun.star.chart2.template.Net" ), TEMPLATE_NET )
- ( C2U( "com.sun.star.chart2.template.NetSymbol" ), TEMPLATE_NETSYMBOL )
- ( C2U( "com.sun.star.chart2.template.NetLine" ), TEMPLATE_NETLINE )
- ( C2U( "com.sun.star.chart2.template.StackedNet" ), TEMPLATE_STACKEDNET )
- ( C2U( "com.sun.star.chart2.template.StackedNetSymbol" ), TEMPLATE_STACKEDNETSYMBOL )
- ( C2U( "com.sun.star.chart2.template.StackedNetLine" ), TEMPLATE_STACKEDNETLINE )
- ( C2U( "com.sun.star.chart2.template.PercentStackedNet" ), TEMPLATE_PERCENTSTACKEDNET )
- ( C2U( "com.sun.star.chart2.template.PercentStackedNetSymbol" ), TEMPLATE_PERCENTSTACKEDNETSYMBOL )
- ( C2U( "com.sun.star.chart2.template.PercentStackedNetLine" ), TEMPLATE_PERCENTSTACKEDNETLINE )
- ( C2U( "com.sun.star.chart2.template.FilledNet" ), TEMPLATE_FILLEDNET )
- ( C2U( "com.sun.star.chart2.template.StackedFilledNet" ), TEMPLATE_STACKEDFILLEDNET )
- ( C2U( "com.sun.star.chart2.template.PercentStackedFilledNet" ), TEMPLATE_PERCENTSTACKEDFILLEDNET )
- ( C2U( "com.sun.star.chart2.template.StockLowHighClose" ), TEMPLATE_STOCKLOWHIGHCLOSE )
- ( C2U( "com.sun.star.chart2.template.StockOpenLowHighClose" ), TEMPLATE_STOCKOPENLOWHIGHCLOSE )
- ( C2U( "com.sun.star.chart2.template.StockVolumeLowHighClose" ), TEMPLATE_STOCKVOLUMELOWHIGHCLOSE )
- ( C2U( "com.sun.star.chart2.template.StockVolumeOpenLowHighClose" ), TEMPLATE_STOCKVOLUMEOPENLOWHIGHCLOSE )
- ( C2U( "com.sun.star.chart2.template.Bubble" ), TEMPLATE_BUBBLE )
-// ( C2U( "com.sun.star.chart2.template.Surface" ), TEMPLATE_SURFACE )
-// ( C2U( "com.sun.star.chart2.template.Addin" ), TEMPLATE_ADDIN )
+ ( "com.sun.star.chart2.template.Symbol", TEMPLATE_SYMBOL )
+ ( "com.sun.star.chart2.template.StackedSymbol", TEMPLATE_STACKEDSYMBOL )
+ ( "com.sun.star.chart2.template.PercentStackedSymbol", TEMPLATE_PERCENTSTACKEDSYMBOL )
+ ( "com.sun.star.chart2.template.Line", TEMPLATE_LINE )
+ ( "com.sun.star.chart2.template.StackedLine", TEMPLATE_STACKEDLINE )
+ ( "com.sun.star.chart2.template.PercentStackedLine", TEMPLATE_PERCENTSTACKEDLINE )
+ ( "com.sun.star.chart2.template.LineSymbol", TEMPLATE_LINESYMBOL )
+ ( "com.sun.star.chart2.template.StackedLineSymbol", TEMPLATE_STACKEDLINESYMBOL )
+ ( "com.sun.star.chart2.template.PercentStackedLineSymbol", TEMPLATE_PERCENTSTACKEDLINESYMBOL )
+ ( "com.sun.star.chart2.template.ThreeDLine", TEMPLATE_THREEDLINE )
+ ( "com.sun.star.chart2.template.StackedThreeDLine", TEMPLATE_STACKEDTHREEDLINE )
+ ( "com.sun.star.chart2.template.PercentStackedThreeDLine", TEMPLATE_PERCENTSTACKEDTHREEDLINE )
+ ( "com.sun.star.chart2.template.ThreeDLineDeep", TEMPLATE_THREEDLINEDEEP )
+ ( "com.sun.star.chart2.template.Column", TEMPLATE_COLUMN )
+ ( "com.sun.star.chart2.template.StackedColumn", TEMPLATE_STACKEDCOLUMN )
+ ( "com.sun.star.chart2.template.PercentStackedColumn", TEMPLATE_PERCENTSTACKEDCOLUMN )
+ ( "com.sun.star.chart2.template.Bar", TEMPLATE_BAR )
+ ( "com.sun.star.chart2.template.StackedBar", TEMPLATE_STACKEDBAR )
+ ( "com.sun.star.chart2.template.PercentStackedBar", TEMPLATE_PERCENTSTACKEDBAR )
+ ( "com.sun.star.chart2.template.ThreeDColumnDeep", TEMPLATE_THREEDCOLUMNDEEP )
+ ( "com.sun.star.chart2.template.ThreeDColumnFlat", TEMPLATE_THREEDCOLUMNFLAT )
+ ( "com.sun.star.chart2.template.StackedThreeDColumnFlat", TEMPLATE_STACKEDTHREEDCOLUMNFLAT )
+ ( "com.sun.star.chart2.template.PercentStackedThreeDColumnFlat", TEMPLATE_PERCENTSTACKEDTHREEDCOLUMNFLAT )
+ ( "com.sun.star.chart2.template.ThreeDBarDeep", TEMPLATE_THREEDBARDEEP )
+ ( "com.sun.star.chart2.template.ThreeDBarFlat", TEMPLATE_THREEDBARFLAT )
+ ( "com.sun.star.chart2.template.StackedThreeDBarFlat", TEMPLATE_STACKEDTHREEDBARFLAT )
+ ( "com.sun.star.chart2.template.PercentStackedThreeDBarFlat", TEMPLATE_PERCENTSTACKEDTHREEDBARFLAT )
+ ( "com.sun.star.chart2.template.ColumnWithLine", TEMPLATE_COLUMNWITHLINE )
+ ( "com.sun.star.chart2.template.StackedColumnWithLine", TEMPLATE_STACKEDCOLUMNWITHLINE )
+ ( "com.sun.star.chart2.template.Area", TEMPLATE_AREA )
+ ( "com.sun.star.chart2.template.StackedArea", TEMPLATE_STACKEDAREA )
+ ( "com.sun.star.chart2.template.PercentStackedArea", TEMPLATE_PERCENTSTACKEDAREA )
+ ( "com.sun.star.chart2.template.ThreeDArea", TEMPLATE_THREEDAREA )
+ ( "com.sun.star.chart2.template.StackedThreeDArea", TEMPLATE_STACKEDTHREEDAREA )
+ ( "com.sun.star.chart2.template.PercentStackedThreeDArea", TEMPLATE_PERCENTSTACKEDTHREEDAREA )
+ ( "com.sun.star.chart2.template.Pie", TEMPLATE_PIE )
+ ( "com.sun.star.chart2.template.PieAllExploded", TEMPLATE_PIEALLEXPLODED )
+ ( "com.sun.star.chart2.template.Donut", TEMPLATE_DONUT )
+ ( "com.sun.star.chart2.template.DonutAllExploded", TEMPLATE_DONUTALLEXPLODED )
+ ( "com.sun.star.chart2.template.ThreeDPie", TEMPLATE_THREEDPIE )
+ ( "com.sun.star.chart2.template.ThreeDPieAllExploded", TEMPLATE_THREEDPIEALLEXPLODED )
+ ( "com.sun.star.chart2.template.ThreeDDonut", TEMPLATE_THREEDDONUT )
+ ( "com.sun.star.chart2.template.ThreeDDonutAllExploded", TEMPLATE_THREEDDONUTALLEXPLODED )
+ ( "com.sun.star.chart2.template.ScatterLineSymbol", TEMPLATE_SCATTERLINESYMBOL )
+ ( "com.sun.star.chart2.template.ScatterLine", TEMPLATE_SCATTERLINE )
+ ( "com.sun.star.chart2.template.ScatterSymbol", TEMPLATE_SCATTERSYMBOL )
+ ( "com.sun.star.chart2.template.ThreeDScatter", TEMPLATE_THREEDSCATTER )
+ ( "com.sun.star.chart2.template.Net", TEMPLATE_NET )
+ ( "com.sun.star.chart2.template.NetSymbol", TEMPLATE_NETSYMBOL )
+ ( "com.sun.star.chart2.template.NetLine", TEMPLATE_NETLINE )
+ ( "com.sun.star.chart2.template.StackedNet", TEMPLATE_STACKEDNET )
+ ( "com.sun.star.chart2.template.StackedNetSymbol", TEMPLATE_STACKEDNETSYMBOL )
+ ( "com.sun.star.chart2.template.StackedNetLine", TEMPLATE_STACKEDNETLINE )
+ ( "com.sun.star.chart2.template.PercentStackedNet", TEMPLATE_PERCENTSTACKEDNET )
+ ( "com.sun.star.chart2.template.PercentStackedNetSymbol", TEMPLATE_PERCENTSTACKEDNETSYMBOL )
+ ( "com.sun.star.chart2.template.PercentStackedNetLine", TEMPLATE_PERCENTSTACKEDNETLINE )
+ ( "com.sun.star.chart2.template.FilledNet", TEMPLATE_FILLEDNET )
+ ( "com.sun.star.chart2.template.StackedFilledNet", TEMPLATE_STACKEDFILLEDNET )
+ ( "com.sun.star.chart2.template.PercentStackedFilledNet", TEMPLATE_PERCENTSTACKEDFILLEDNET )
+ ( "com.sun.star.chart2.template.StockLowHighClose", TEMPLATE_STOCKLOWHIGHCLOSE )
+ ( "com.sun.star.chart2.template.StockOpenLowHighClose", TEMPLATE_STOCKOPENLOWHIGHCLOSE )
+ ( "com.sun.star.chart2.template.StockVolumeLowHighClose", TEMPLATE_STOCKVOLUMELOWHIGHCLOSE )
+ ( "com.sun.star.chart2.template.StockVolumeOpenLowHighClose", TEMPLATE_STOCKVOLUMEOPENLOWHIGHCLOSE )
+ ( "com.sun.star.chart2.template.Bubble", TEMPLATE_BUBBLE )
+// ( "com.sun.star.chart2.template.Surface", TEMPLATE_SURFACE )
+// ( "com.sun.star.chart2.template.Addin", TEMPLATE_ADDIN )
);
return aMap;
@@ -573,7 +573,7 @@ uno::Sequence< OUString > SAL_CALL ChartTypeManager::getAvailableServiceNames()
if( xEnumAcc.is())
{
uno::Reference< container::XEnumeration > xEnum(
- xEnumAcc->createContentEnumeration( C2U( "com.sun.star.chart2.ChartTypeTemplate" ) ));
+ xEnumAcc->createContentEnumeration( "com.sun.star.chart2.ChartTypeTemplate" ));
if( xEnum.is())
{
uno::Reference< uno::XInterface > xFactIntf;
@@ -597,8 +597,8 @@ uno::Sequence< OUString > SAL_CALL ChartTypeManager::getAvailableServiceNames()
Sequence< OUString > ChartTypeManager::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
- aServices[ 0 ] = C2U( "com.sun.star.chart2.ChartTypeManager" );
- aServices[ 1 ] = C2U( "com.sun.star.lang.MultiServiceFactory" );
+ aServices[ 0 ] = "com.sun.star.chart2.ChartTypeManager";
+ aServices[ 1 ] = "com.sun.star.lang.MultiServiceFactory";
return aServices;
}
@@ -606,7 +606,7 @@ Sequence< OUString > ChartTypeManager::getSupportedServiceNames_Static()
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( ChartTypeManager,
- C2U( "com.sun.star.comp.chart.ChartTypeManager" ));
+ OUString("com.sun.star.comp.chart.ChartTypeManager") );
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 195dbb2f9f61..3f7899f34e15 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -67,7 +67,7 @@ void lcl_applyDefaultStyle(
Reference< chart2::XColorScheme > xColorScheme( xDiagram->getDefaultColorScheme());
if( xSeriesProp.is() && xColorScheme.is() )
xSeriesProp->setPropertyValue(
- C2U("Color"),
+ "Color",
uno::makeAny( xColorScheme->getColorByIndex( nIndex )));
}
}
@@ -75,7 +75,7 @@ void lcl_applyDefaultStyle(
void lcl_ensureCorrectLabelPlacement( const Reference< beans::XPropertySet >& xProp, const uno::Sequence < sal_Int32 >& rAvailablePlacements )
{
sal_Int32 nLabelPlacement=0;
- if( xProp.is() && (xProp->getPropertyValue( C2U( "LabelPlacement" ) ) >>= nLabelPlacement) )
+ if( xProp.is() && (xProp->getPropertyValue( "LabelPlacement" ) >>= nLabelPlacement) )
{
bool bValid = false;
for( sal_Int32 nN = 0; nN < rAvailablePlacements.getLength(); nN++ )
@@ -92,7 +92,7 @@ void lcl_ensureCorrectLabelPlacement( const Reference< beans::XPropertySet >& xP
//otherwise use the first supported one
if( rAvailablePlacements.getLength() )
aNewValue <<=rAvailablePlacements[0];
- xProp->setPropertyValue( C2U("LabelPlacement"), aNewValue );
+ xProp->setPropertyValue( "LabelPlacement", aNewValue );
}
}
}
@@ -101,10 +101,10 @@ void lcl_resetLabelPlacementIfDefault( const Reference< beans::XPropertySet >& x
{
sal_Int32 nLabelPlacement=0;
- if( xProp.is() && (xProp->getPropertyValue( C2U( "LabelPlacement" ) ) >>= nLabelPlacement) )
+ if( xProp.is() && (xProp->getPropertyValue( "LabelPlacement" ) >>= nLabelPlacement) )
{
if( nDefaultPlacement == nLabelPlacement )
- xProp->setPropertyValue( C2U("LabelPlacement"), uno::Any() );
+ xProp->setPropertyValue( "LabelPlacement", uno::Any() );
}
}
@@ -117,9 +117,9 @@ void lcl_ensureCorrectMissingValueTreatment( const Reference< chart2::XDiagram >
::chart::ChartTypeHelper::getSupportedMissingValueTreatments( xChartType ) );
if( aAvailableMissingValueTreatment.getLength() )
- xDiaProp->setPropertyValue( C2U( "MissingValueTreatment" ), uno::makeAny( aAvailableMissingValueTreatment[0] ) );
+ xDiaProp->setPropertyValue( "MissingValueTreatment", uno::makeAny( aAvailableMissingValueTreatment[0] ) );
else
- xDiaProp->setPropertyValue( C2U( "MissingValueTreatment" ), uno::Any() );
+ xDiaProp->setPropertyValue( "MissingValueTreatment", uno::Any() );
}
}
@@ -152,7 +152,7 @@ uno::Reference< XDiagram > SAL_CALL ChartTypeTemplate::createDiagramByDataSource
// create diagram
xDia.set(
GetComponentContext()->getServiceManager()->createInstanceWithContext(
- C2U( "com.sun.star.chart2.Diagram" ),
+ "com.sun.star.chart2.Diagram",
GetComponentContext() ),
uno::UNO_QUERY_THROW );
@@ -221,7 +221,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagram( const uno::Reference< XDiagram >
if( aData.Categories.is())
{
aParam.realloc( 1 );
- aParam[0] = beans::PropertyValue( C2U("HasCategories"), -1, uno::makeAny( true ),
+ aParam[0] = beans::PropertyValue( "HasCategories", -1, uno::makeAny( true ),
beans::PropertyState_DIRECT_VALUE );
}
aData = xInterpreter->interpretDataSource( xSource, aParam, aFlatSeriesSeq );
@@ -404,7 +404,7 @@ void SAL_CALL ChartTypeTemplate::applyStyle(
: (eStackMode == StackMode_Z_STACKED )
? chart2::StackingDirection_Z_STACKING
: chart2::StackingDirection_NO_STACKING );
- xSeriesProp->setPropertyValue( C2U("StackingDirection"), aPropValue );
+ xSeriesProp->setPropertyValue( "StackingDirection", aPropValue );
//ensure valid label placement
{
@@ -413,7 +413,7 @@ void SAL_CALL ChartTypeTemplate::applyStyle(
lcl_ensureCorrectLabelPlacement( xSeriesProp, aAvailablePlacements );
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
- if( xSeriesProp->getPropertyValue( C2U( "AttributedDataPoints" ) ) >>= aAttributedDataPointIndexList )
+ if( xSeriesProp->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
lcl_ensureCorrectLabelPlacement( xSeries->getDataPointByIndex(aAttributedDataPointIndexList[nN]), aAvailablePlacements );
}
@@ -458,9 +458,9 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram
if( xAxisProp.is())
{
// set number format to source format
- uno::Any aValue( xAxisProp->getPropertyValue(C2U("NumberFormat")));
+ uno::Any aValue( xAxisProp->getPropertyValue("NumberFormat"));
if( aValue.hasValue())
- xAxisProp->setPropertyValue(C2U("NumberFormat"), uno::Any());
+ xAxisProp->setPropertyValue("NumberFormat", uno::Any());
}
}
}
@@ -510,7 +510,7 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram
lcl_resetLabelPlacementIfDefault( xSeriesProp, nDefaultPlacement );
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
- if( xSeriesProp->getPropertyValue( C2U( "AttributedDataPoints" ) ) >>= aAttributedDataPointIndexList )
+ if( xSeriesProp->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
lcl_resetLabelPlacementIfDefault( xSeries->getDataPointByIndex(aAttributedDataPointIndexList[nN]), nDefaultPlacement );
}
@@ -762,9 +762,9 @@ void ChartTypeTemplate::adaptAxes(
if( xAxisProp.is())
{
// set number format to source format
- uno::Any aValue( xAxisProp->getPropertyValue(C2U("NumberFormat")));
+ uno::Any aValue( xAxisProp->getPropertyValue("NumberFormat"));
if( aValue.hasValue())
- xAxisProp->setPropertyValue(C2U("NumberFormat"), uno::Any());
+ xAxisProp->setPropertyValue("NumberFormat", uno::Any());
}
}
}
@@ -915,9 +915,9 @@ void ChartTypeTemplate::copyPropertiesFromOldToNewCoordianteSystem(
Sequence< OUString > ChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 3 );
- aServices[ 0 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
- aServices[ 1 ] = C2U( "com.sun.star.layout.LayoutElement" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 0 ] = "com.sun.star.chart2.ChartTypeTemplate";
+ aServices[ 1 ] = "com.sun.star.layout.LayoutElement";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
@@ -930,7 +930,7 @@ Reference< uno::XComponentContext > ChartTypeTemplate::GetComponentContext() con
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( ChartTypeTemplate,
- C2U( "com.sun.star.comp.chart.ChartTypeTemplate" ));
+ OUString("com.sun.star.comp.chart.ChartTypeTemplate") );
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/ColumnChartType.cxx b/chart2/source/model/template/ColumnChartType.cxx
index c4bb660d9f5c..90bf825e42de 100644
--- a/chart2/source/model/template/ColumnChartType.cxx
+++ b/chart2/source/model/template/ColumnChartType.cxx
@@ -43,14 +43,14 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "OverlapSequence" ),
+ Property( "OverlapSequence",
PROP_BARCHARTTYPE_OVERLAP_SEQUENCE,
::getCppuType( reinterpret_cast< const Sequence< sal_Int32 > * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "GapwidthSequence" ),
+ Property( "GapwidthSequence",
PROP_BARCHARTTYPE_GAPWIDTH_SEQUENCE,
::getCppuType( reinterpret_cast< const Sequence< sal_Int32 > * >(0)),
beans::PropertyAttribute::BOUND
@@ -182,13 +182,13 @@ uno::Sequence< ::rtl::OUString > ColumnChartType::getSupportedServiceNames_Stati
{
uno::Sequence< ::rtl::OUString > aServices( 2 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_COLUMN;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( ColumnChartType,
- C2U( "com.sun.star.comp.chart.ColumnChartType" ));
+ OUString("com.sun.star.comp.chart.ColumnChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
index 1df923c33e3f..28f956512355 100644
--- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
@@ -59,7 +59,7 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "NumberOfLines" ),
+ Property( "NumberOfLines",
PROP_COL_LINE_NUMBER_OF_LINES,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -258,7 +258,7 @@ void SAL_CALL ColumnLineChartTypeTemplate::applyStyle(
if( nChartTypeIndex==0 ) // columns
{
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
}
else if( nChartTypeIndex==1 ) // lines
{
@@ -425,7 +425,7 @@ uno::Sequence< ::rtl::OUString > ColumnLineChartTypeTemplate::getSupportedServic
{
uno::Sequence< ::rtl::OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 374add7f1626..613570f164b9 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -97,14 +97,14 @@ InterpretedData SAL_CALL DataInterpreter::interpretDataSource(
{
xCategories.set( aData[i] );
if( xCategories.is())
- SetRole( xCategories->getValues(), C2U("categories"));
+ SetRole( xCategories->getValues(), "categories");
bCategoriesUsed = true;
}
else
{
aSequencesVec.push_back( aData[i] );
if( aData[i].is())
- SetRole( aData[i]->getValues(), C2U("values-y"));
+ SetRole( aData[i]->getValues(), "values-y");
}
}
catch( const uno::Exception & ex )
@@ -160,14 +160,14 @@ InterpretedData SAL_CALL DataInterpreter::reinterpretDataSeries(
// values-y
Reference< data::XLabeledDataSequence > xValuesY(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-y"), false ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values-y", false ));
// re-use values-... as values-y
if( ! xValuesY.is())
{
xValuesY.set(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values"), true ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values", true ));
if( xValuesY.is())
- SetRole( xValuesY->getValues(), C2U("values-y"));
+ SetRole( xValuesY->getValues(), "values-y");
}
if( xValuesY.is())
{
@@ -328,7 +328,7 @@ OUString DataInterpreter::GetRole( const Reference< data::XDataSequence > & xSeq
try
{
Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY_THROW );
- xProp->getPropertyValue( C2U("Role")) >>= aResult;
+ xProp->getPropertyValue( "Role") >>= aResult;
}
catch( const uno::Exception & ex )
{
@@ -344,7 +344,7 @@ void DataInterpreter::SetRole( const Reference< data::XDataSequence > & xSeq, co
try
{
Reference< beans::XPropertySet > xProp( xSeq, uno::UNO_QUERY_THROW );
- xProp->setPropertyValue( C2U("Role"), uno::makeAny( rRole ));
+ xProp->setPropertyValue( "Role", uno::makeAny( rRole ));
}
catch( const uno::Exception & ex )
{
@@ -371,7 +371,7 @@ bool DataInterpreter::HasCategories(
bool bHasCategories = false;
if( rArguments.getLength() > 0 )
- GetProperty( rArguments, C2U(("HasCategories"))) >>= bHasCategories;
+ GetProperty( rArguments, "HasCategories" ) >>= bHasCategories;
for( sal_Int32 nLSeqIdx=0; ! bHasCategories && nLSeqIdx<rData.getLength(); ++nLSeqIdx )
bHasCategories = ( rData[nLSeqIdx].is() && GetRole( rData[nLSeqIdx]->getValues() ) == "categories");
@@ -383,7 +383,7 @@ bool DataInterpreter::UseCategoriesAsX( const Sequence< beans::PropertyValue > &
{
bool bUseCategoriesAsX = true;
if( rArguments.getLength() > 0 )
- GetProperty( rArguments, C2U(("UseCategoriesAsX"))) >>= bUseCategoriesAsX;
+ GetProperty( rArguments, "UseCategoriesAsX" ) >>= bUseCategoriesAsX;
return bUseCategoriesAsX;
}
@@ -392,12 +392,12 @@ bool DataInterpreter::UseCategoriesAsX( const Sequence< beans::PropertyValue > &
Sequence< OUString > DataInterpreter::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 1 );
- aServices[0] = C2U( "com.sun.star.chart2.DataInterpreter" );
+ aServices[0] = "com.sun.star.chart2.DataInterpreter";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
-APPHELPER_XSERVICEINFO_IMPL( DataInterpreter, C2U("com.sun.star.comp.chart2.DataInterpreter"));
+APPHELPER_XSERVICEINFO_IMPL( DataInterpreter, OUString("com.sun.star.comp.chart2.DataInterpreter") );
} // namespace chart
@@ -419,12 +419,12 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
{
if( aSequences[k].is())
{
- OUString aSourceRepr(C2U("<none>"));
+ OUString aSourceRepr("<none>");
if( aSequences[k]->getValues().is())
aSourceRepr = aSequences[k]->getValues()->getSourceRangeRepresentation();
xProp.set( aSequences[k]->getValues(), uno::UNO_QUERY );
if( xProp.is() &&
- ( xProp->getPropertyValue( C2U( "Role" )) >>= aId ))
+ ( xProp->getPropertyValue( "Role") >>= aId ))
{
OSL_TRACE( " <data sequence %d> Role: %s, Source: %s", k, U2C( aId ), U2C( aSourceRepr ));
}
@@ -433,12 +433,12 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
OSL_TRACE( " <data sequence %d> unknown Role, Source: %s", k, U2C( aSourceRepr ) );
}
- aSourceRepr = C2U("<none>");
+ aSourceRepr = "<none>";
if( aSequences[k]->getLabel().is())
aSourceRepr = OUString( aSequences[k]->getLabel()->getSourceRangeRepresentation());
xProp.set( aSequences[k]->getLabel(), uno::UNO_QUERY );
if( xProp.is() &&
- ( xProp->getPropertyValue( C2U( "Role" )) >>= aId ))
+ ( xProp->getPropertyValue( "Role") >>= aId ))
{
OSL_TRACE( " <data sequence label %d> Role: %s, Source: %s", k, U2C( aId ), U2C( aSourceRepr ));
}
diff --git a/chart2/source/model/template/FilledNetChartType.cxx b/chart2/source/model/template/FilledNetChartType.cxx
index 3ffd11967926..4c267fe40679 100644
--- a/chart2/source/model/template/FilledNetChartType.cxx
+++ b/chart2/source/model/template/FilledNetChartType.cxx
@@ -72,14 +72,14 @@ uno::Sequence< ::rtl::OUString > FilledNetChartType::getSupportedServiceNames_St
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_FILLED_NET;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( FilledNetChartType,
- C2U( "com.sun.star.comp.chart.FilledNetChartType" ));
+ OUString("com.sun.star.comp.chart.FilledNetChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/LineChartType.cxx b/chart2/source/model/template/LineChartType.cxx
index 5aaaec1adb99..d35dde6fe776 100644
--- a/chart2/source/model/template/LineChartType.cxx
+++ b/chart2/source/model/template/LineChartType.cxx
@@ -48,20 +48,20 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "CurveStyle" ),
+ Property( "CurveStyle",
PROP_LINECHARTTYPE_CURVE_STYLE,
::getCppuType( reinterpret_cast< const chart2::CurveStyle * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "CurveResolution" ),
+ Property( "CurveResolution",
PROP_LINECHARTTYPE_CURVE_RESOLUTION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "SplineOrder" ),
+ Property( "SplineOrder",
PROP_LINECHARTTYPE_SPLINE_ORDER,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -193,14 +193,14 @@ uno::Sequence< ::rtl::OUString > LineChartType::getSupportedServiceNames_Static(
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_LINE;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( LineChartType,
- C2U( "com.sun.star.comp.chart.LineChartType" ));
+ OUString("com.sun.star.comp.chart.LineChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/LineChartTypeTemplate.cxx b/chart2/source/model/template/LineChartTypeTemplate.cxx
index 78229978c392..5f264bee3100 100644
--- a/chart2/source/model/template/LineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/LineChartTypeTemplate.cxx
@@ -59,19 +59,19 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "CurveStyle" ),
+ Property( "CurveStyle",
PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE,
::getCppuType( reinterpret_cast< const chart2::CurveStyle * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "CurveResolution" ),
+ Property( "CurveResolution",
PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "SplineOrder" ),
+ Property( "SplineOrder",
PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -229,7 +229,7 @@ sal_Bool SAL_CALL LineChartTypeTemplate::matchesTemplate(
drawing::LineStyle eLineStyle;
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY_THROW );
- bool bCurrentHasSymbol = (xProp->getPropertyValue( C2U( "Symbol" )) >>= aSymbProp) &&
+ bool bCurrentHasSymbol = (xProp->getPropertyValue( "Symbol") >>= aSymbProp) &&
(aSymbProp.Style != chart2::SymbolStyle_NONE);
if( bCurrentHasSymbol )
@@ -241,7 +241,7 @@ sal_Bool SAL_CALL LineChartTypeTemplate::matchesTemplate(
break;
}
- bool bCurrentHasLine = (xProp->getPropertyValue( C2U( "LineStyle" )) >>= eLineStyle) &&
+ bool bCurrentHasLine = (xProp->getPropertyValue( "LineStyle") >>= eLineStyle) &&
( eLineStyle != drawing::LineStyle_NONE );
if( bCurrentHasLine )
@@ -278,9 +278,9 @@ sal_Bool SAL_CALL LineChartTypeTemplate::matchesTemplate(
uno::Reference< beans::XPropertySet > xChartTypeProp(
DiagramHelper::getChartTypeByIndex( xDiagram, 0 ),
uno::UNO_QUERY_THROW );
- setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE, xChartTypeProp->getPropertyValue(C2U("CurveStyle" )) );
- setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION, xChartTypeProp->getPropertyValue(C2U("CurveResolution" )) );
- setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER, xChartTypeProp->getPropertyValue(C2U("SplineOrder" )) );
+ setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE, xChartTypeProp->getPropertyValue("CurveStyle") );
+ setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION, xChartTypeProp->getPropertyValue("CurveResolution") );
+ setFastPropertyValue_NoBroadcast( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER, xChartTypeProp->getPropertyValue("SplineOrder") );
}
catch( const uno::Exception & ex )
{
@@ -306,11 +306,11 @@ Reference< chart2::XChartType > LineChartTypeTemplate::getChartTypeForIndex( sal
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "CurveStyle" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE ));
+ "CurveStyle", getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE ));
xCTProp->setPropertyValue(
- C2U( "CurveResolution" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
+ "CurveResolution", getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
xCTProp->setPropertyValue(
- C2U( "SplineOrder" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER ));
+ "SplineOrder", getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
catch( const uno::Exception & ex )
@@ -340,11 +340,11 @@ Reference< chart2::XChartType > SAL_CALL LineChartTypeTemplate::getChartTypeForN
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "CurveStyle" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE ));
+ "CurveStyle", getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_STYLE ));
xCTProp->setPropertyValue(
- C2U( "CurveResolution" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
+ "CurveResolution", getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
xCTProp->setPropertyValue(
- C2U( "SplineOrder" ), getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER ));
+ "SplineOrder", getFastPropertyValue( PROP_LINECHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
catch( const uno::Exception & ex )
@@ -384,7 +384,7 @@ Sequence< OUString > LineChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/NetChartType.cxx b/chart2/source/model/template/NetChartType.cxx
index 84ae4653054d..ca3ddc545056 100644
--- a/chart2/source/model/template/NetChartType.cxx
+++ b/chart2/source/model/template/NetChartType.cxx
@@ -62,7 +62,7 @@ Reference< XCoordinateSystem > SAL_CALL
{
if( DimensionCount != 2 )
throw lang::IllegalArgumentException(
- C2U( "NetChart must be two-dimensional" ),
+ "NetChart must be two-dimensional",
static_cast< ::cppu::OWeakObject* >( this ), 0 );
Reference< XCoordinateSystem > xResult(
@@ -178,14 +178,14 @@ uno::Sequence< ::rtl::OUString > NetChartType::getSupportedServiceNames_Static()
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_NET;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( NetChartType,
- C2U( "com.sun.star.comp.chart.NetChartType" ));
+ OUString("com.sun.star.comp.chart.NetChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/NetChartTypeTemplate.cxx b/chart2/source/model/template/NetChartTypeTemplate.cxx
index 0a1ae7836ae5..f7205f1581e1 100644
--- a/chart2/source/model/template/NetChartTypeTemplate.cxx
+++ b/chart2/source/model/template/NetChartTypeTemplate.cxx
@@ -126,7 +126,7 @@ sal_Bool SAL_CALL NetChartTypeTemplate::matchesTemplate(
drawing::LineStyle eLineStyle;
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY_THROW );
- bool bCurrentHasSymbol = (xProp->getPropertyValue( C2U( "Symbol" )) >>= aSymbProp) &&
+ bool bCurrentHasSymbol = (xProp->getPropertyValue( "Symbol") >>= aSymbProp) &&
(aSymbProp.Style != chart2::SymbolStyle_NONE);
if( bCurrentHasSymbol )
@@ -138,7 +138,7 @@ sal_Bool SAL_CALL NetChartTypeTemplate::matchesTemplate(
break;
}
- bool bCurrentHasLine = (xProp->getPropertyValue( C2U( "LineStyle" )) >>= eLineStyle) &&
+ bool bCurrentHasLine = (xProp->getPropertyValue( "LineStyle") >>= eLineStyle) &&
( eLineStyle != drawing::LineStyle_NONE );
if( bCurrentHasLine )
@@ -209,7 +209,7 @@ Sequence< OUString > NetChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx
index 450a622b52ab..41e44fafd89a 100644
--- a/chart2/source/model/template/PieChartType.cxx
+++ b/chart2/source/model/template/PieChartType.cxx
@@ -49,7 +49,7 @@ static void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "UseRings" ),
+ Property( "UseRings",
PROP_PIECHARTTYPE_USE_RINGS,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
@@ -217,14 +217,14 @@ uno::Sequence< ::rtl::OUString > PieChartType::getSupportedServiceNames_Static()
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_PIE;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( PieChartType,
- C2U( "com.sun.star.comp.chart.PieChartType" ));
+ OUString("com.sun.star.comp.chart.PieChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/PieChartTypeTemplate.cxx b/chart2/source/model/template/PieChartTypeTemplate.cxx
index 49cc2e1c944a..36c727a558d4 100644
--- a/chart2/source/model/template/PieChartTypeTemplate.cxx
+++ b/chart2/source/model/template/PieChartTypeTemplate.cxx
@@ -65,25 +65,25 @@ static void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "OffsetMode" ),
+ Property( "OffsetMode",
PROP_PIE_TEMPLATE_OFFSET_MODE,
::getCppuType( reinterpret_cast< const chart2::PieChartOffsetMode * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "DefaultOffset" ),
+ Property( "DefaultOffset",
PROP_PIE_TEMPLATE_DEFAULT_OFFSET,
::getCppuType( reinterpret_cast< const double * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "Dimension" ),
+ Property( "Dimension",
PROP_PIE_TEMPLATE_DIMENSION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "UseRings" ),
+ Property( "UseRings",
PROP_PIE_TEMPLATE_USE_RINGS,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
@@ -288,7 +288,7 @@ void PieChartTypeTemplate::createChartTypes(
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "UseRings" ), getFastPropertyValue( PROP_PIE_TEMPLATE_USE_RINGS ));
+ "UseRings", getFastPropertyValue( PROP_PIE_TEMPLATE_USE_RINGS ));
}
Reference< chart2::XChartTypeContainer > xCTCnt( rCoordSys[0], uno::UNO_QUERY_THROW );
xCTCnt->setChartTypes( Sequence< Reference< chart2::XChartType > >( &xCT, 1 ));
@@ -339,11 +339,11 @@ sal_Bool SAL_CALL PieChartTypeTemplate::matchesTemplate(
sal_Int32 nOuterSeriesIndex = 0; //@todo in future this will depend on Orientation of the radius axis scale
Reference< chart2::XDataSeries > xSeries( aSeriesVec[nOuterSeriesIndex] );
Reference< beans::XPropertySet > xProp( xSeries, uno::UNO_QUERY_THROW );
- xProp->getPropertyValue( C2U( "Offset" )) >>= fOffset;
+ xProp->getPropertyValue( "Offset") >>= fOffset;
//get AttributedDataPoints
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
- if( xProp->getPropertyValue( C2U( "AttributedDataPoints" ) ) >>= aAttributedDataPointIndexList )
+ if( xProp->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList )
{
for(sal_Int32 nN=aAttributedDataPointIndexList.getLength();nN--;)
{
@@ -351,7 +351,7 @@ sal_Bool SAL_CALL PieChartTypeTemplate::matchesTemplate(
if(xPointProp.is())
{
double fPointOffset=0.0;
- if( (xProp->getPropertyValue( C2U( "Offset" )) >>= fPointOffset ) )
+ if( (xProp->getPropertyValue( "Offset") >>= fPointOffset ) )
{
if( ! ::rtl::math::approxEqual( fPointOffset, fOffset ) )
{
@@ -387,7 +387,7 @@ sal_Bool SAL_CALL PieChartTypeTemplate::matchesTemplate(
uno::Reference< beans::XPropertySet > xCTProp(
DiagramHelper::getChartTypeByIndex( xDiagram, 0 ), uno::UNO_QUERY_THROW );
sal_Bool bUseRings = false;
- if( xCTProp->getPropertyValue( C2U( "UseRings" )) >>= bUseRings )
+ if( xCTProp->getPropertyValue( "UseRings") >>= bUseRings )
{
bResult = ( bTemplateUsesRings == bUseRings );
}
@@ -410,7 +410,7 @@ Reference< chart2::XChartType > PieChartTypeTemplate::getChartTypeForIndex( sal_
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "UseRings" ), getFastPropertyValue( PROP_PIE_TEMPLATE_USE_RINGS ));
+ "UseRings", getFastPropertyValue( PROP_PIE_TEMPLATE_USE_RINGS ));
}
}
@@ -439,7 +439,7 @@ Reference< chart2::XChartType > SAL_CALL PieChartTypeTemplate::getChartTypeForNe
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "UseRings" ), getFastPropertyValue( PROP_PIE_TEMPLATE_USE_RINGS ));
+ "UseRings", getFastPropertyValue( PROP_PIE_TEMPLATE_USE_RINGS ));
}
}
@@ -480,7 +480,7 @@ void SAL_CALL PieChartTypeTemplate::applyStyle(
double fOffsetToSet = fDefaultOffset;
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
- xProp->getPropertyValue( C2U( "AttributedDataPoints" ) ) >>= aAttributedDataPointIndexList;
+ xProp->getPropertyValue( "AttributedDataPoints" ) >>= aAttributedDataPointIndexList;
// determine whether to set the new offset
bool bSetOffset = ( ePieOffsetMode == chart2::PieChartOffsetMode_ALL_EXPLODED );
@@ -531,10 +531,10 @@ void SAL_CALL PieChartTypeTemplate::applyStyle(
}
// line style
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
// vary colors by point
- xProp->setPropertyValue( C2U("VaryColorsByPoint"), uno::makeAny( true ));
+ xProp->setPropertyValue( "VaryColorsByPoint", uno::makeAny( true ));
}
catch( const uno::Exception & ex )
{
@@ -595,12 +595,12 @@ void SAL_CALL PieChartTypeTemplate::resetStyles( const Reference< chart2::XDiagr
Reference< beans::XPropertyState > xState( *aIt, uno::UNO_QUERY );
if( xState.is())
{
- xState->setPropertyToDefault( C2U("VaryColorsByPoint"));
+ xState->setPropertyToDefault( "VaryColorsByPoint");
Reference< beans::XPropertySet > xProp( xState, uno::UNO_QUERY );
if( xProp.is() &&
- xProp->getPropertyValue( C2U("BorderStyle")) == aLineStyleAny )
+ xProp->getPropertyValue( "BorderStyle") == aLineStyleAny )
{
- xState->setPropertyToDefault( C2U("BorderStyle"));
+ xState->setPropertyToDefault( "BorderStyle");
}
}
}
@@ -625,7 +625,7 @@ uno::Sequence< ::rtl::OUString > PieChartTypeTemplate::getSupportedServiceNames_
{
uno::Sequence< ::rtl::OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/ScatterChartType.cxx b/chart2/source/model/template/ScatterChartType.cxx
index 2cab24ef67d9..20e89cb15ff7 100644
--- a/chart2/source/model/template/ScatterChartType.cxx
+++ b/chart2/source/model/template/ScatterChartType.cxx
@@ -52,20 +52,20 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "CurveStyle" ),
+ Property( "CurveStyle",
PROP_SCATTERCHARTTYPE_CURVE_STYLE,
::getCppuType( reinterpret_cast< const chart2::CurveStyle * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "CurveResolution" ),
+ Property( "CurveResolution",
PROP_SCATTERCHARTTYPE_CURVE_RESOLUTION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "SplineOrder" ),
+ Property( "SplineOrder",
PROP_SCATTERCHARTTYPE_SPLINE_ORDER,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -218,9 +218,9 @@ uno::Sequence< ::rtl::OUString > SAL_CALL ScatterChartType::getSupportedMandator
throw (uno::RuntimeException)
{
uno::Sequence< ::rtl::OUString > aMandRolesSeq(3);
- aMandRolesSeq[0] = C2U( "label" );
- aMandRolesSeq[1] = C2U( "values-x" );
- aMandRolesSeq[2] = C2U( "values-y" );
+ aMandRolesSeq[0] = "label";
+ aMandRolesSeq[1] = "values-x";
+ aMandRolesSeq[2] = "values-y";
return aMandRolesSeq;
}
@@ -259,14 +259,14 @@ uno::Sequence< ::rtl::OUString > ScatterChartType::getSupportedServiceNames_Stat
{
uno::Sequence< ::rtl::OUString > aServices( 3 );
aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_SCATTER;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartType" );
- aServices[ 2 ] = C2U( "com.sun.star.beans.PropertySet" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartType";
+ aServices[ 2 ] = "com.sun.star.beans.PropertySet";
return aServices;
}
// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
APPHELPER_XSERVICEINFO_IMPL( ScatterChartType,
- C2U( "com.sun.star.comp.chart.ScatterChartType" ));
+ OUString("com.sun.star.comp.chart.ScatterChartType") );
} // namespace chart
diff --git a/chart2/source/model/template/ScatterChartTypeTemplate.cxx b/chart2/source/model/template/ScatterChartTypeTemplate.cxx
index 2b895fd0b985..57a48ebda661 100644
--- a/chart2/source/model/template/ScatterChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ScatterChartTypeTemplate.cxx
@@ -61,19 +61,19 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "CurveStyle" ),
+ Property( "CurveStyle",
PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE,
::getCppuType( reinterpret_cast< const chart2::CurveStyle * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "CurveResolution" ),
+ Property( "CurveResolution",
PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "SplineOrder" ),
+ Property( "SplineOrder",
PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER,
::getCppuType( reinterpret_cast< const sal_Int32 * >(0)),
beans::PropertyAttribute::BOUND
@@ -221,7 +221,7 @@ void SAL_CALL ScatterChartTypeTemplate::applyStyle(
DataSeriesHelper::switchLinesOnOrOff( xProp, m_bHasLines );
DataSeriesHelper::makeLinesThickOrThin( xProp, m_nDim==2 );
if( m_nDim==3 )
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
}
catch( const uno::Exception & ex )
{
@@ -263,7 +263,7 @@ sal_Bool SAL_CALL ScatterChartTypeTemplate::matchesTemplate(
drawing::LineStyle eLineStyle;
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY_THROW );
- bool bCurrentHasSymbol = (xProp->getPropertyValue( C2U( "Symbol" )) >>= aSymbProp) &&
+ bool bCurrentHasSymbol = (xProp->getPropertyValue( "Symbol") >>= aSymbProp) &&
(aSymbProp.Style != chart2::SymbolStyle_NONE);
if( bCurrentHasSymbol )
@@ -275,7 +275,7 @@ sal_Bool SAL_CALL ScatterChartTypeTemplate::matchesTemplate(
break;
}
- bool bCurrentHasLine = (xProp->getPropertyValue( C2U( "LineStyle" )) >>= eLineStyle) &&
+ bool bCurrentHasLine = (xProp->getPropertyValue( "LineStyle") >>= eLineStyle) &&
( eLineStyle != drawing::LineStyle_NONE );
if( bCurrentHasLine )
@@ -312,9 +312,9 @@ sal_Bool SAL_CALL ScatterChartTypeTemplate::matchesTemplate(
uno::Reference< beans::XPropertySet > xChartTypeProp(
DiagramHelper::getChartTypeByIndex( xDiagram, 0 ),
uno::UNO_QUERY_THROW );
- setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE, xChartTypeProp->getPropertyValue(C2U("CurveStyle" )) );
- setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION, xChartTypeProp->getPropertyValue(C2U("CurveResolution" )) );
- setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER, xChartTypeProp->getPropertyValue(C2U("SplineOrder" )) );
+ setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE, xChartTypeProp->getPropertyValue("CurveStyle") );
+ setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION, xChartTypeProp->getPropertyValue("CurveResolution") );
+ setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER, xChartTypeProp->getPropertyValue("SplineOrder") );
}
catch( const uno::Exception & ex )
{
@@ -340,11 +340,11 @@ Reference< chart2::XChartType > ScatterChartTypeTemplate::getChartTypeForIndex(
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "CurveStyle" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE ));
+ "CurveStyle", getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE ));
xCTProp->setPropertyValue(
- C2U( "CurveResolution" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
+ "CurveResolution", getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
xCTProp->setPropertyValue(
- C2U( "SplineOrder" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ));
+ "SplineOrder", getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
catch( const uno::Exception & ex )
@@ -374,11 +374,11 @@ Reference< chart2::XChartType > SAL_CALL ScatterChartTypeTemplate::getChartTypeF
if( xCTProp.is())
{
xCTProp->setPropertyValue(
- C2U( "CurveStyle" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE ));
+ "CurveStyle", getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_STYLE ));
xCTProp->setPropertyValue(
- C2U( "CurveResolution" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
+ "CurveResolution", getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_CURVE_RESOLUTION ));
xCTProp->setPropertyValue(
- C2U( "SplineOrder" ), getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ));
+ "SplineOrder", getFastPropertyValue( PROP_SCATTERCHARTTYPE_TEMPLATE_SPLINE_ORDER ));
}
}
catch( const uno::Exception & ex )
@@ -404,7 +404,7 @@ Sequence< OUString > ScatterChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/StockChartTypeTemplate.cxx b/chart2/source/model/template/StockChartTypeTemplate.cxx
index fb50ae3faf58..b203abd4e8c4 100644
--- a/chart2/source/model/template/StockChartTypeTemplate.cxx
+++ b/chart2/source/model/template/StockChartTypeTemplate.cxx
@@ -68,25 +68,25 @@ void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
- Property( C2U( "Volume" ),
+ Property( "Volume",
PROP_STOCKCHARTTYPE_TEMPLATE_VOLUME,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "Open" ),
+ Property( "Open",
PROP_STOCKCHARTTYPE_TEMPLATE_OPEN,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "LowHigh" ),
+ Property( "LowHigh",
PROP_STOCKCHARTTYPE_TEMPLATE_LOW_HIGH,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
| beans::PropertyAttribute::MAYBEDEFAULT ));
rOutProperties.push_back(
- Property( C2U( "Japanese" ),
+ Property( "Japanese",
PROP_STOCKCHARTTYPE_TEMPLATE_JAPANESE,
::getBooleanCppuType(),
beans::PropertyAttribute::BOUND
@@ -246,12 +246,12 @@ void SAL_CALL StockChartTypeTemplate::applyStyle(
Reference< beans::XPropertySet > xProp( xSeries, uno::UNO_QUERY );
if( xProp.is() )
- xProp->setPropertyValue( C2U("AttachedAxisIndex"), uno::makeAny( nNewAxisIndex ) );
+ xProp->setPropertyValue( "AttachedAxisIndex", uno::makeAny( nNewAxisIndex ) );
if( bHasVolume && nChartTypeIndex==0 )
{
//switch lines off for volume bars
- DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, C2U( "BorderStyle" ), uno::makeAny( drawing::LineStyle_NONE ) );
+ DataSeriesHelper::setPropertyAlsoToAllAttributedDataPoints( xSeries, "BorderStyle", uno::makeAny( drawing::LineStyle_NONE ) );
}
else
{
@@ -259,9 +259,9 @@ void SAL_CALL StockChartTypeTemplate::applyStyle(
if( xProp.is() )
{
drawing::LineStyle eStyle = drawing::LineStyle_NONE;
- xProp->getPropertyValue( C2U("LineStyle") ) >>= eStyle;
+ xProp->getPropertyValue( "LineStyle" ) >>= eStyle;
if( eStyle == drawing::LineStyle_NONE )
- xProp->setPropertyValue( C2U("LineStyle"), uno::makeAny( drawing::LineStyle_SOLID ));
+ xProp->setPropertyValue( "LineStyle", uno::makeAny( drawing::LineStyle_SOLID ));
}
}
@@ -286,7 +286,7 @@ void SAL_CALL StockChartTypeTemplate::resetStyles(
{
Reference< beans::XPropertySet > xProp( *aIt, uno::UNO_QUERY );
if( xProp.is() )
- xProp->setPropertyValue( C2U("AttachedAxisIndex"), uno::makeAny( sal_Int32(0) ) );
+ xProp->setPropertyValue( "AttachedAxisIndex", uno::makeAny( sal_Int32(0) ) );
}
}
@@ -374,9 +374,9 @@ void StockChartTypeTemplate::createChartTypes(
Reference< beans::XPropertySet > xCTProp( xCT, uno::UNO_QUERY );
if( xCTProp.is())
{
- xCTProp->setPropertyValue( C2U("Japanese"), uno::makeAny( bJapaneseStyle ));
- xCTProp->setPropertyValue( C2U("ShowFirst"), uno::makeAny( bShowFirst ));
- xCTProp->setPropertyValue( C2U("ShowHighLow"), uno::makeAny( bShowHighLow ));
+ xCTProp->setPropertyValue( "Japanese", uno::makeAny( bJapaneseStyle ));
+ xCTProp->setPropertyValue( "ShowFirst", uno::makeAny( bShowFirst ));
+ xCTProp->setPropertyValue( "ShowHighLow", uno::makeAny( bShowHighLow ));
}
if( aSeriesSeq.getLength() > nSeriesIndex &&
@@ -475,12 +475,12 @@ sal_Bool SAL_CALL StockChartTypeTemplate::matchesTemplate(
if( xCTProp.is())
{
sal_Bool bJapaneseProp = sal_False;
- xCTProp->getPropertyValue( C2U("Japanese")) >>= bJapaneseProp;
+ xCTProp->getPropertyValue( "Japanese") >>= bJapaneseProp;
bResult = bResult && ( bHasJapaneseStyle == bJapaneseProp );
// in old chart japanese == showFirst
sal_Bool bShowFirstProp = sal_False;
- xCTProp->getPropertyValue( C2U("ShowFirst")) >>= bShowFirstProp;
+ xCTProp->getPropertyValue( "ShowFirst") >>= bShowFirstProp;
bResult = bResult && ( bHasOpenValue == bShowFirstProp );
}
}
@@ -530,7 +530,7 @@ Sequence< OUString > StockChartTypeTemplate::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 2 );
aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = C2U( "com.sun.star.chart2.ChartTypeTemplate" );
+ aServices[ 1 ] = "com.sun.star.chart2.ChartTypeTemplate";
return aServices;
}
diff --git a/chart2/source/model/template/StockDataInterpreter.cxx b/chart2/source/model/template/StockDataInterpreter.cxx
index 75379c89e04b..0cafbd98a14a 100644
--- a/chart2/source/model/template/StockDataInterpreter.cxx
+++ b/chart2/source/model/template/StockDataInterpreter.cxx
@@ -143,7 +143,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
aSequences[nBarGroupIndex][nLabeledSeqIdx].realloc( 1 );
aSequences[nBarGroupIndex][nLabeledSeqIdx][0].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-y"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-y");
++nSourceIndex;
}
@@ -153,7 +153,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
aSequences[nCandleStickGroupIndex][nLabeledSeqIdx].realloc( 4 );
aSequences[nCandleStickGroupIndex][nLabeledSeqIdx][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-first"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-first");
++nSourceIndex, ++nSeqIdx;
}
else
@@ -161,17 +161,17 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
aSequences[nCandleStickGroupIndex][nLabeledSeqIdx][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-min"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-min");
++nSourceIndex, ++nSeqIdx;
aSequences[nCandleStickGroupIndex][nLabeledSeqIdx][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-max"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-max");
++nSourceIndex, ++nSeqIdx;
aSequences[nCandleStickGroupIndex][nLabeledSeqIdx][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-last"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-last");
++nSourceIndex, ++nSeqIdx;
}
@@ -182,7 +182,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
aSequences[nBarGroupIndex][nVolumeSeries - 1].realloc( 1 );
OSL_ASSERT( nDataCount > nSourceIndex );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-y"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-y");
aSequences[nBarGroupIndex][nVolumeSeries - 1][0].set( aData[nSourceIndex] );
++nSourceIndex;
--nRemaining;
@@ -201,7 +201,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
sal_Int32 nSeqIdx( 0 );
aSequences[nCandleStickGroupIndex][nSeriesIndex][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-min"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-min");
++nSourceIndex, ++nSeqIdx;
// 2. high
@@ -209,7 +209,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
{
aSequences[nCandleStickGroupIndex][nSeriesIndex][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-max"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-max");
++nSourceIndex, ++nSeqIdx;
}
@@ -219,7 +219,7 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
{
aSequences[nCandleStickGroupIndex][nSeriesIndex][nSeqIdx].set( aData[nSourceIndex] );
if( aData[nSourceIndex].is())
- SetRole( aData[nSourceIndex]->getValues(), C2U("values-last"));
+ SetRole( aData[nSourceIndex]->getValues(), "values-last");
++nSourceIndex, ++nSeqIdx;
}
diff --git a/chart2/source/model/template/XYDataInterpreter.cxx b/chart2/source/model/template/XYDataInterpreter.cxx
index e79c23444572..48d742421d83 100644
--- a/chart2/source/model/template/XYDataInterpreter.cxx
+++ b/chart2/source/model/template/XYDataInterpreter.cxx
@@ -80,7 +80,7 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::interpretDataSource(
xCategories.set( aData[nDataIdx] );
if( xCategories.is())
{
- SetRole( xCategories->getValues(), C2U("categories"));
+ SetRole( xCategories->getValues(), "categories");
if( bUseCategoriesAsX )
bSetXValues = false;
}
@@ -90,13 +90,13 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::interpretDataSource(
{
xValuesX.set( aData[nDataIdx] );
if( xValuesX.is())
- SetRole( xValuesX->getValues(), C2U("values-x"));
+ SetRole( xValuesX->getValues(), "values-x");
}
else
{
aSequencesVec.push_back( aData[nDataIdx] );
if( aData[nDataIdx].is())
- SetRole( aData[nDataIdx]->getValues(), C2U("values-y"));
+ SetRole( aData[nDataIdx]->getValues(), "values-y");
}
}
catch( const uno::Exception & ex )
@@ -163,16 +163,16 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::reinterpretDataSeries(
// values-y
Reference< data::XLabeledDataSequence > xValuesY(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-y"), false ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values-y", false ));
Reference< data::XLabeledDataSequence > xValuesX(
- DataSeriesHelper::getDataSequenceByRole( xSeriesSource, C2U("values-x"), false ));
+ DataSeriesHelper::getDataSequenceByRole( xSeriesSource, "values-x", false ));
// re-use values-... as values-x/values-y
if( ! xValuesX.is() ||
! xValuesY.is())
{
vector< Reference< data::XLabeledDataSequence > > aValueSeqVec(
DataSeriesHelper::getAllDataSequencesByRole(
- xSeriesSource->getDataSequences(), C2U("values"), true ));
+ xSeriesSource->getDataSequences(), "values", true ));
if( xValuesX.is())
aValueSeqVec.erase( find( aValueSeqVec.begin(), aValueSeqVec.end(), xValuesX ));
if( xValuesY.is())
@@ -184,7 +184,7 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::reinterpretDataSeries(
{
xValuesY.set( aValueSeqVec[nIndex++] );
if( xValuesY.is())
- SetRole( xValuesY->getValues(), C2U("values-y"));
+ SetRole( xValuesY->getValues(), "values-y");
}
if( ! xValuesX.is() &&
@@ -192,7 +192,7 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::reinterpretDataSeries(
{
xValuesX.set( aValueSeqVec[nIndex++] );
if( xValuesX.is())
- SetRole( xValuesY->getValues(), C2U("values-x"));
+ SetRole( xValuesY->getValues(), "values-x");
}
}
if( xValuesY.is())