summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasily Melenchuk <Vasily.Melenchuk@cib.de>2018-06-26 11:24:43 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-06-28 14:02:46 +0200
commitd77f8eef165a7c6fd97cc06dcbc4ead55e7b633c (patch)
treeac7db08c222abe22975cce394830003232d24025 /include
parentf4c73f90da2a2c31f0d29572180aa97e10c3dbad (diff)
tdf#86612: statusbar: hide some elements if width is not sufficient
new statusbar element property mandatory=true/false to determine if this element can be hidden if total statusbar width is not enough to fit all elements. marked some calc and draw statusbar elements as not mandatory. Change-Id: I20e26d3c4bd865e94ea48632a1e97d55f3fa712f Reviewed-on: https://gerrit.libreoffice.org/56443 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/status.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/status.hxx b/include/vcl/status.hxx
index 0ead49f7ddad..1fe0935fc622 100644
--- a/include/vcl/status.hxx
+++ b/include/vcl/status.hxx
@@ -45,10 +45,11 @@ enum class StatusBarItemBits {
Flat = 0x0020,
AutoSize = 0x0040,
UserDraw = 0x0080,
+ Mandatory = 0x0100,
};
namespace o3tl
{
- template<> struct typed_flags<StatusBarItemBits> : is_typed_flags<StatusBarItemBits, 0x00ff> {};
+ template<> struct typed_flags<StatusBarItemBits> : is_typed_flags<StatusBarItemBits, 0x01ff> {};
}
#define STATUSBAR_APPEND (sal_uInt16(0xFFFF))