From 454e2b4d653deeb33407726f84c3d012486dcde8 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 20 Sep 2012 16:38:24 -0400 Subject: Some code cleanups... Change-Id: I9b771bb9b57ba107e6dadb7cf85d44815f487261 --- chart2/source/view/axes/VCartesianAxis.cxx | 4 ---- chart2/source/view/inc/LabelAlignment.hxx | 22 ++++++++++++++-------- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'chart2') diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index a0f751c19d90..016c3e24e24a 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -75,9 +75,6 @@ VCartesianAxis::~VCartesianAxis() m_pPosHelper = NULL; } -//----------------------------------------------------------------------------- -//----------------------------------------------------------------------------- - Reference< drawing::XShape > createSingleLabel( const Reference< lang::XMultiServiceFactory>& xShapeFactory , const Reference< drawing::XShapes >& xTarget @@ -100,7 +97,6 @@ Reference< drawing::XShape > createSingleLabel( Reference< drawing::XShape > xShape2DText = ShapeFactory(xShapeFactory) .createText( xTarget, aLabel, rPropNames, rPropValues, aATransformation ); - //correctPositionForRotation LabelPositionHelper::correctPositionForRotation( xShape2DText , rAxisProperties.m_aLabelAlignment, rAxisLabelProperties.fRotationAngleDegree, rAxisProperties.m_bComplexCategories ); diff --git a/chart2/source/view/inc/LabelAlignment.hxx b/chart2/source/view/inc/LabelAlignment.hxx index d3ad644a101d..ee34c6c385f4 100644 --- a/chart2/source/view/inc/LabelAlignment.hxx +++ b/chart2/source/view/inc/LabelAlignment.hxx @@ -20,16 +20,22 @@ #ifndef _CHART2_VIEW_LabelAlignment_HXX #define _CHART2_VIEW_LabelAlignment_HXX -//............................................................................. -namespace chart -{ -//............................................................................. +namespace chart { -enum LabelAlignment { LABEL_ALIGN_CENTER, LABEL_ALIGN_LEFT, LABEL_ALIGN_TOP, LABEL_ALIGN_RIGHT, LABEL_ALIGN_BOTTOM, LABEL_ALIGN_LEFT_TOP, LABEL_ALIGN_LEFT_BOTTOM, LABEL_ALIGN_RIGHT_TOP, LABEL_ALIGN_RIGHT_BOTTOM }; +enum LabelAlignment { + LABEL_ALIGN_CENTER, + LABEL_ALIGN_LEFT, + LABEL_ALIGN_TOP, + LABEL_ALIGN_RIGHT, + LABEL_ALIGN_BOTTOM, + LABEL_ALIGN_LEFT_TOP, + LABEL_ALIGN_LEFT_BOTTOM, + LABEL_ALIGN_RIGHT_TOP, + LABEL_ALIGN_RIGHT_BOTTOM +}; + +} -//............................................................................. -} //namespace chart -//............................................................................. #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit