From 1cf751c787f135597b4151c5a7d9c4afe69ede9c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 Apr 2018 14:24:54 +0200 Subject: make WB_LINESPACING a bool field on Toolbox Change-Id: If9332993a4917b00c230d2a3693daf8c5d3f5559 Reviewed-on: https://gerrit.libreoffice.org/53521 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/tools/wintypes.hxx | 1 - include/vcl/toolbox.hxx | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx index f80334966b76..b9e7d007fc55 100644 --- a/include/tools/wintypes.hxx +++ b/include/tools/wintypes.hxx @@ -208,7 +208,6 @@ WinBits const WB_SIMPLEMODE = 0x20000000; WinBits const WB_SCALE = 0x08000000; // Window-Bits for ToolBox -WinBits const WB_LINESPACING = 0x01000000; WinBits const WB_SCROLL = 0x02000000; // Window-Bits for SplitWindow diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index 2018be7986d4..74db39f4af55 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -147,7 +147,8 @@ private: mbDragging:1, mbIsKeyEvent:1, mbChangingHighlight:1, - mbImagesMirrored:1; + mbImagesMirrored:1, + mbLineSpacing:1; WindowAlign meAlign; WindowAlign meDockAlign; ButtonType meButtonType; @@ -518,6 +519,8 @@ public: void statusChanged(const css::frame::FeatureStateEvent& rEvent); void SetToolBoxTextPosition( ToolBoxTextPosition ePosition ); + + void SetLineSpacing(bool b) { mbLineSpacing = b; } }; inline void ToolBox::CheckItem( sal_uInt16 nItemId, bool bCheck ) -- cgit