summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-09-20 16:38:24 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-09-20 16:39:42 -0400
commit454e2b4d653deeb33407726f84c3d012486dcde8 (patch)
tree9e4c6e7df9274d28646150390cffa21b5b96f85a /chart2
parent1375feff64cd9b287c090c6593e8e2b1971976db (diff)
Some code cleanups...
Change-Id: I9b771bb9b57ba107e6dadb7cf85d44815f487261
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx4
-rw-r--r--chart2/source/view/inc/LabelAlignment.hxx22
2 files changed, 14 insertions, 12 deletions
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: */