A newline is not that special or hard to remember

Change-Id: I2960a59283a5a04c5c804a57e43bdb633c0e45cf
This commit is contained in:
Tor Lillqvist 2017-02-08 13:04:02 +02:00
parent 21864fed06
commit 4df2bc90cc
4 changed files with 5 additions and 8 deletions

View File

@ -11,7 +11,6 @@
#define INCLUDED_CHART2_INC_SPECIALUNICODES_HXX
const sal_Unicode aMinusSign = 0x2212;
const OUString aNewLine ("\n");
const OUString aHashString ("###");
const sal_Unicode aSuperscriptFigures[10]={ 0x2070, 0x00B9, 0x00B2, 0x00B3, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079 };

View File

@ -487,10 +487,8 @@ OUString ObjectNameProvider::getHelpText( const OUString& rObjectCID, const Refe
{
if( bVerbose )
{
OUString aNewLine( "\n" );
aRet= SCH_RESSTR(STR_TIP_DATAPOINT_INDEX) + aNewLine
+ SCH_RESSTR(STR_TIP_DATASERIES) + aNewLine
aRet= SCH_RESSTR(STR_TIP_DATAPOINT_INDEX) + "\n"
+ SCH_RESSTR(STR_TIP_DATASERIES) + "\n"
+ SCH_RESSTR(STR_TIP_DATAPOINT_VALUES);
}
else

View File

@ -200,7 +200,7 @@ void RegressionCurveCalculator::addStringToEquation(
{
if ( pMaxWidth && ( nLineLength + aAddString.getLength() > *pMaxWidth ) )
{ // wrap line
aStrEquation.append( aNewLine + " " ); // start new line with a blank
aStrEquation.append( "\n " ); // start new line with a blank
nLineLength = 1;
}
aStrEquation.append( aAddString );

View File

@ -1214,7 +1214,7 @@ sal_Int32 lcl_getOUStringMaxLineLength ( OUStringBuffer& aString )
for ( sal_Int32 i=0; i<nStringLength; i++ )
{
sal_Int32 indexSep = aString.indexOf( aNewLine, i );
sal_Int32 indexSep = aString.indexOf( "\n", i );
if ( indexSep < 0 )
indexSep = nStringLength;
sal_Int32 nLineLength = indexSep - i;
@ -1281,7 +1281,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes(
if( bShowCorrCoeff )
{
aFormula.append( aNewLine );
aFormula.append( "\n" );
}
}
if( bShowCorrCoeff )