[Libreoffice-commits] core.git: reportdesign/source sc/source

slideon adamkasztenny at gmail.com
Wed Apr 27 12:17:23 UTC 2016


 reportdesign/source/filter/xml/xmlExport.cxx      |    6 ++++--
 sc/source/ui/Accessibility/AccessibleCellBase.cxx |   10 ++++++----
 2 files changed, 10 insertions(+), 6 deletions(-)

New commits:
commit fd0d4f845da5c247be0543db34de9615be8f81a7
Author: slideon <adamkasztenny at gmail.com>
Date:   Fri Apr 1 10:36:33 2016 -0400

    Add default line width defines for TableBorders
    
    This define makes things clearer.
    
    Change-Id: Idd4abf11ed7657c688ea95aac1958ee4b1fd32ee
    Reviewed-on: https://gerrit.libreoffice.org/23732
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index 2928520..7d01e8e 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -60,6 +60,8 @@
 
 #include <iterator>
 
+#define DEFAULT_LINE_WIDTH 2
+
 namespace rptxml
 {
     using namespace xmloff;
@@ -1149,9 +1151,9 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
         table::BorderLine2 aValue;
         aValue.Color = COL_BLACK;
         aValue.InnerLineWidth = aValue.LineDistance = 0;
-        aValue.OuterLineWidth = 2;
+        aValue.OuterLineWidth = DEFAULT_LINE_WIDTH;
         aValue.LineStyle = table::BorderLineStyle::SOLID;
-        aValue.LineWidth = 2;
+        aValue.LineWidth = DEFAULT_LINE_WIDTH;
 
         awt::Point aPos = xFixedLine->getPosition();
         awt::Size aSize = xFixedLine->getSize();
diff --git a/sc/source/ui/Accessibility/AccessibleCellBase.cxx b/sc/source/ui/Accessibility/AccessibleCellBase.cxx
index 436e0d6..7637027 100644
--- a/sc/source/ui/Accessibility/AccessibleCellBase.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCellBase.cxx
@@ -49,6 +49,8 @@
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::accessibility;
 
+#define DEFAULT_LINE_WIDTH 2
+
 //=====  internal  ============================================================
 
 ScAccessibleCellBase::ScAccessibleCellBase(
@@ -502,10 +504,10 @@ OUString SAL_CALL ScAccessibleCellBase::getBorderAttrs()
         aBottomBorder.Color = aColor.GetColor();
         aLeftBorder.Color = aColor.GetColor();
         aRightBorder.Color = aColor.GetColor();
-        aTopBorder.OuterLineWidth =2;
-        aBottomBorder.OuterLineWidth =2;
-        aLeftBorder.OuterLineWidth =2;
-        aRightBorder.OuterLineWidth =2;
+        aTopBorder.OuterLineWidth = DEFAULT_LINE_WIDTH;
+        aBottomBorder.OuterLineWidth = DEFAULT_LINE_WIDTH;
+        aLeftBorder.OuterLineWidth = DEFAULT_LINE_WIDTH;
+        aRightBorder.OuterLineWidth = DEFAULT_LINE_WIDTH;
     }
 
     //construct border attributes string


More information about the Libreoffice-commits mailing list