summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorslideon <adamkasztenny@gmail.com>2016-04-01 10:36:33 -0400
committerEike Rathke <erack@redhat.com>2016-04-27 12:16:56 +0000
commitfd0d4f845da5c247be0543db34de9615be8f81a7 (patch)
treea465d01e4dc47338a17b904884b3515fdcb10c2c /sc
parent1520d0d6f3fdb78a09dfb436ba1d2f6804805311 (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>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/Accessibility/AccessibleCellBase.cxx10
1 files changed, 6 insertions, 4 deletions
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