[Libreoffice-commits] .: chart2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 20 13:39:21 PDT 2012


 chart2/source/view/axes/VCartesianAxis.cxx |    4 ----
 chart2/source/view/inc/LabelAlignment.hxx  |   22 ++++++++++++++--------
 2 files changed, 14 insertions(+), 12 deletions(-)

New commits:
commit 454e2b4d653deeb33407726f84c3d012486dcde8
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Thu Sep 20 16:38:24 2012 -0400

    Some code cleanups...
    
    Change-Id: I9b771bb9b57ba107e6dadb7cf85d44815f487261

diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index a0f751c..016c3e2 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 d3ad644..ee34c6c 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: */


More information about the Libreoffice-commits mailing list