diff options
author | slideon <adamkasztenny@gmail.com> | 2016-04-01 10:36:33 -0400 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-04-27 12:16:56 +0000 |
commit | fd0d4f845da5c247be0543db34de9615be8f81a7 (patch) | |
tree | a465d01e4dc47338a17b904884b3515fdcb10c2c | |
parent | 1520d0d6f3fdb78a09dfb436ba1d2f6804805311 (diff) |
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@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | reportdesign/source/filter/xml/xmlExport.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleCellBase.cxx | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 2928520d7d5b..7d01e8e76118 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 436e0d63b3b2..7637027c2a7c 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 |