summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngrid Halama [iha] <Ingrid.Halama@oracle.com>2011-02-07 01:21:44 +0100
committerIngrid Halama [iha] <Ingrid.Halama@oracle.com>2011-02-07 01:21:44 +0100
commitc69fc95173abe406d95f6a9eb9bc9972e4b6256d (patch)
tree819a0dd202962a0064b09fefe8fa2049302e5ced
parent7fd459f91a4cdba4b6e51b477a2d049a441b39e6 (diff)
chart52: #i89539# remove term 'Regression' from legend
-rw-r--r--chart2/source/controller/dialogs/Strings_Statistic.src12
-rw-r--r--chart2/source/inc/Strings.hrc3
-rwxr-xr-xchart2/source/tools/RegressionCurveHelper.cxx2
-rwxr-xr-xchart2/source/view/charttypes/VSeriesPlotter.cxx3
4 files changed, 9 insertions, 11 deletions
diff --git a/chart2/source/controller/dialogs/Strings_Statistic.src b/chart2/source/controller/dialogs/Strings_Statistic.src
index f2dc4235f783..10c59a4c9b1d 100644
--- a/chart2/source/controller/dialogs/Strings_Statistic.src
+++ b/chart2/source/controller/dialogs/Strings_Statistic.src
@@ -51,22 +51,22 @@ String STR_CONTROLTEXT_ERROR_BARS_FROM_DATA
String STR_REGRESSION_LINEAR
{
- Text [ en-US ] = "Linear Regression" ;
+ Text [ en-US ] = "Linear (%SERIESNAME)" ;
};
String STR_REGRESSION_LOG
{
- Text [ en-US ] = "Logarithmic Regression" ;
+ Text [ en-US ] = "Logarithmic (%SERIESNAME)" ;
};
String STR_REGRESSION_EXP
{
- Text [ en-US ] = "Exponential Regression" ;
+ Text [ en-US ] = "Exponential (%SERIESNAME)" ;
};
String STR_REGRESSION_POWER
{
- Text [ en-US ] = "Power Regression" ;
+ Text [ en-US ] = "Power (%SERIESNAME)" ;
};
-String STR_STATISTICS_IN_LEGEND
+String STR_REGRESSION_MEAN
{
- Text [ en-US ] = "%REGRESSIONCURVE for %SERIESNAME" ;
+ Text [ en-US ] = "Mean (%SERIESNAME)" ;
};
diff --git a/chart2/source/inc/Strings.hrc b/chart2/source/inc/Strings.hrc
index d7c490c1ca87..e1b29a8796e4 100644
--- a/chart2/source/inc/Strings.hrc
+++ b/chart2/source/inc/Strings.hrc
@@ -156,6 +156,7 @@
#define STR_REGRESSION_LOG (RID_APP_START + 136)
#define STR_REGRESSION_EXP (RID_APP_START + 137)
#define STR_REGRESSION_POWER (RID_APP_START + 138)
+#define STR_REGRESSION_MEAN (RID_APP_START + 180)
//-----------------------------------------------------------------------------
//for scale tab page
@@ -264,8 +265,6 @@
#define STR_OBJECT_AVERAGE_LINE_WITH_PARAMETERS (RID_APP_START + 265)
#define STR_OBJECT_CURVE_EQUATION (RID_APP_START + 268)
-#define STR_STATISTICS_IN_LEGEND (RID_APP_START + 180)
-
#define STR_OBJECT_SHAPE (RID_APP_START + 290)
//-----------------------------------------------------------------------------
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx b/chart2/source/tools/RegressionCurveHelper.cxx
index 254fce22f5e7..0d5ceb36199a 100755
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -608,7 +608,7 @@ OUString RegressionCurveHelper::getUINameForRegressionCurve( const Reference< XR
if( aServiceName.equalsAsciiL(
RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.MeanValueRegressionCurve" )))
{
- aResult = ::chart::SchResId::getResString( STR_OBJECT_AVERAGE_LINE );
+ aResult = ::chart::SchResId::getResString( STR_REGRESSION_MEAN );
}
else if( aServiceName.equalsAsciiL(
RTL_CONSTASCII_STRINGPARAM( "com.sun.star.chart2.LinearRegressionCurve" )))
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 669b034fa40b..83db0c67ae6c 100755
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -2170,8 +2170,7 @@ std::vector< ViewLegendEntry > VSeriesPlotter::createLegendEntriesForSeries(
if( aCurves[i].is() )
{
//label
- OUString aResStr( SchResId::getResString( STR_STATISTICS_IN_LEGEND ));
- replaceParamterInString( aResStr, C2U("%REGRESSIONCURVE"), RegressionCurveHelper::getUINameForRegressionCurve( aCurves[i] ));
+ OUString aResStr( RegressionCurveHelper::getUINameForRegressionCurve( aCurves[i] ) );
replaceParamterInString( aResStr, C2U("%SERIESNAME"), aLabelText );
aEntry.aLabel = FormattedStringHelper::createFormattedStringSequence( xContext, aResStr, xTextProperties );