diff options
author | Thorsten Wagner <thorsten.wagner.4@gmail.com> | 2019-05-21 13:36:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-05-24 19:53:30 +0200 |
commit | 04b60370a73b79e3aa0a04bc7cff45dff1db6286 (patch) | |
tree | f29cc73fb1e6b5824a6627203e94041c82f55a52 /include | |
parent | bd44f6ebf265470255ba69762c9031029d3fa417 (diff) |
tdf#101443 Calc multiline input bar reworked
Change-Id: Ic35c9898624f0c13b6d64725808e765a64c17081
Reviewed-on: https://gerrit.libreoffice.org/71937
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/toolbox.hxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx index 19e02a0d85e7..8b43fa65d75b 100644 --- a/include/vcl/toolbox.hxx +++ b/include/vcl/toolbox.hxx @@ -68,11 +68,13 @@ enum class ToolBoxButtonSize Size32, }; -// ToolBoxLayoutMode::Normal - traditional layout, items are centered in the toolbar -// ToolBoxLayoutMode::LockVert - special mode (currently used for calc input/formula -// bar) where item's vertical position is locked, e.g. -// toolbox is prevented from centering the items -enum class ToolBoxLayoutMode { Normal, LockVert }; +enum class ToolBoxLayoutMode +{ + Normal, // traditional layout, items are centered in the toolbar + Locked // horizontal positions of all items remain unchanged, + // vertical positions of items smaller than first item are aligned to first item's vertical center, + // vertical positions of items larger than first item remain unchanged +}; // Position of the text when icon and text are painted enum class ToolBoxTextPosition { Right, Bottom }; @@ -149,7 +151,8 @@ private: mbIsKeyEvent:1, mbChangingHighlight:1, mbImagesMirrored:1, - mbLineSpacing:1; + mbLineSpacing:1, + mbIsArranged:1; WindowAlign meAlign; WindowAlign meDockAlign; ButtonType meButtonType; |