summaryrefslogtreecommitdiff
path: root/chart2/source/tools/TitleHelper.cxx
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/tools/TitleHelper.cxx
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/tools/TitleHelper.cxx')
-rw-r--r--chart2/source/tools/TitleHelper.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx
index 7abd2d0e21fb..f618780e8876 100644
--- a/chart2/source/tools/TitleHelper.cxx
+++ b/chart2/source/tools/TitleHelper.cxx
@@ -158,7 +158,7 @@ uno::Reference< XTitle > TitleHelper::createTitle(
uno::Reference< beans::XPropertySet > xProps( xAxis, uno::UNO_QUERY );
if( xProps.is() )
{
- xProps->setPropertyValue( C2U( "Show" ), uno::makeAny( sal_False ) );
+ xProps->setPropertyValue( "Show", uno::makeAny( sal_False ) );
xTitled = lcl_getTitleParent( eTitleType, xModel );
}
}
@@ -168,7 +168,7 @@ uno::Reference< XTitle > TitleHelper::createTitle(
uno::Reference< XDiagram > xDiagram( ChartModelHelper::findDiagram( xModel ) );
xTitle.set( xContext->getServiceManager()->createInstanceWithContext(
- C2U( "com.sun.star.chart2.Title" ),
+ "com.sun.star.chart2.Title",
xContext ), uno::UNO_QUERY );
if(xTitle.is())
@@ -224,7 +224,7 @@ uno::Reference< XTitle > TitleHelper::createTitle(
|| (bIsVertical && eTitleType == TitleHelper::SECONDARY_X_AXIS_TITLE) )
{
double fNewAngleDegree = 90.0;
- xTitleProps->setPropertyValue( C2U( "TextRotation" ), uno::makeAny( fNewAngleDegree ));
+ xTitleProps->setPropertyValue( "TextRotation", uno::makeAny( fNewAngleDegree ));
}
}
}
@@ -264,7 +264,7 @@ void TitleHelper::setCompleteString( const rtl::OUString& rNewText
bool bStacked = false;
uno::Reference< beans::XPropertySet > xTitleProperties( xTitle, uno::UNO_QUERY );
if( xTitleProperties.is() )
- xTitleProperties->getPropertyValue( C2U( "StackCharacters" ) ) >>= bStacked;
+ xTitleProperties->getPropertyValue( "StackCharacters" ) >>= bStacked;
if( bStacked )
{
@@ -302,7 +302,7 @@ void TitleHelper::setCompleteString( const rtl::OUString& rNewText
{
uno::Reference< uno::XInterface > xI(
xContext->getServiceManager()->createInstanceWithContext(
- C2U( "com.sun.star.chart2.FormattedString" ), xContext ) );
+ "com.sun.star.chart2.FormattedString", xContext ) );
uno::Reference< XFormattedString > xFormattedString( xI, uno::UNO_QUERY );
if(xFormattedString.is())
@@ -316,9 +316,9 @@ void TitleHelper::setCompleteString( const rtl::OUString& rNewText
uno::Reference< beans::XPropertySet > xProp( xFormattedString, uno::UNO_QUERY_THROW );
uno::Any aFontSize( uno::makeAny( *pDefaultCharHeight ));
- xProp->setPropertyValue( C2U("CharHeight"), aFontSize );
- xProp->setPropertyValue( C2U("CharHeightAsian"), aFontSize );
- xProp->setPropertyValue( C2U("CharHeightComplex"), aFontSize );
+ xProp->setPropertyValue( "CharHeight", aFontSize );
+ xProp->setPropertyValue( "CharHeightAsian", aFontSize );
+ xProp->setPropertyValue( "CharHeightComplex", aFontSize );
}
catch( const uno::Exception & ex )
{