summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-30 17:00:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-31 06:39:32 +0000
commit5ca16c7b3153395d9107f84d366c796a22930756 (patch)
tree42ff6418be7810fcdf4ce4476f67eb52de5f02c9 /vcl
parent3d7325898547c94826cfddc6852d400e84e2dda1 (diff)
Convert ToolBoxLayoutMode to scoped enum
Change-Id: I95b2432fc9f4df8d055227331a44151af4d773ab Reviewed-on: https://gerrit.libreoffice.org/25672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/toolbox.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 7327a5eee2b9..f75a03a43852 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1382,7 +1382,7 @@ void ToolBox::ImplInitToolBoxData()
meDockAlign = WindowAlign::Top;
meLastStyle = PointerStyle::Arrow;
mnWinStyle = 0;
- meLayoutMode = TBX_LAYOUT_NORMAL;
+ meLayoutMode = ToolBoxLayoutMode::Normal;
mnLastFocusItemId = 0;
mnKeyModifier = 0;
mnActivateCount = 0;
@@ -2545,13 +2545,13 @@ void ToolBox::ImplFormat( bool bResize )
if ( mbHorz )
{
it->maCalcRect.Left() = nX;
- // if special TBX_LAYOUT_LOCKVERT lock vertical position
+ // if special ToolBoxLayoutMode::LockVert lock vertical position
// don't recalculate the vertical position of the item
- if ( meLayoutMode == TBX_LAYOUT_LOCKVERT && mnLines == 1 )
+ if ( meLayoutMode == ToolBoxLayoutMode::LockVert && mnLines == 1 )
{
// Somewhat of a hack here, calc deletes and re-adds
// the sum/assign & ok/cancel items dynamically.
- // Because TBX_LAYOUT_LOCKVERT effectively prevents
+ // Because ToolBoxLayoutMode::LockVert effectively prevents
// recalculation of the vertical pos of an item the
// it->maRect.Top() for those newly added items is
// 0. The hack here is that we want to effectively