diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-30 11:20:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-01 09:36:19 +0200 |
commit | 4b66829390b286010b37b37ec1537a320d8cea8f (patch) | |
tree | e3070f55a80dd8d6f5944db4594608865d0fbbcc /sw/source/filter/writer | |
parent | 427ef167e1a49ba7fcdef082de43622e02a84ce5 (diff) |
convert BOX_LINE and BOXINFO_LINE to enum class
since their usage is intertwined.
Also introduce new o3tl utilities enumrange and enumarray to make
working with scoped enums a little simpler.
Change-Id: I2e1cc65dd7c638e59f17d96dfae504747cad6533
Diffstat (limited to 'sw/source/filter/writer')
-rw-r--r-- | sw/source/filter/writer/wrtswtbl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/writer/wrtswtbl.cxx b/sw/source/filter/writer/wrtswtbl.cxx index 968a3ddd1d95..1f58fdf63d60 100644 --- a/sw/source/filter/writer/wrtswtbl.cxx +++ b/sw/source/filter/writer/wrtswtbl.cxx @@ -263,16 +263,16 @@ sal_uInt16 SwWriteTable::MergeBoxBorders( const SwTableBox *pBox, // boxes. if( bCollectBorderWidth ) { - sal_uInt16 nDist = rBoxItem.GetDistance( BOX_LINE_TOP ); + sal_uInt16 nDist = rBoxItem.GetDistance( SvxBoxItemLine::TOP ); if( nDist && (!nCellPadding || nDist < nCellPadding) ) nCellPadding = nDist; - nDist = rBoxItem.GetDistance( BOX_LINE_BOTTOM ); + nDist = rBoxItem.GetDistance( SvxBoxItemLine::BOTTOM ); if( nDist && (!nCellPadding || nDist < nCellPadding) ) nCellPadding = nDist; - nDist = rBoxItem.GetDistance( BOX_LINE_LEFT ); + nDist = rBoxItem.GetDistance( SvxBoxItemLine::LEFT ); if( nDist && (!nCellPadding || nDist < nCellPadding) ) nCellPadding = nDist; - nDist = rBoxItem.GetDistance( BOX_LINE_RIGHT ); + nDist = rBoxItem.GetDistance( SvxBoxItemLine::RIGHT ); if( nDist && (!nCellPadding || nDist < nCellPadding) ) nCellPadding = nDist; } |