diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2018-06-26 11:24:43 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-28 14:02:46 +0200 |
commit | d77f8eef165a7c6fd97cc06dcbc4ead55e7b633c (patch) | |
tree | ac7db08c222abe22975cce394830003232d24025 /offapi | |
parent | f4c73f90da2a2c31f0d29572180aa97e10c3dbad (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 'offapi')
-rw-r--r-- | offapi/com/sun/star/ui/ItemStyle.idl | 7 | ||||
-rw-r--r-- | offapi/com/sun/star/ui/XStatusbarItem.idl | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/offapi/com/sun/star/ui/ItemStyle.idl b/offapi/com/sun/star/ui/ItemStyle.idl index 8479bbc15a75..966a4f4e19dc 100644 --- a/offapi/com/sun/star/ui/ItemStyle.idl +++ b/offapi/com/sun/star/ui/ItemStyle.idl @@ -149,6 +149,13 @@ constants ItemStyle icon+text)</p> */ const short TEXT = 2048; + + /** marks always visible element which can not be removed when statusbar + width is not sufficient. + + @since LibreOffice 6.2 + */ + const short MANDATORY = 4096; }; }; }; }; }; diff --git a/offapi/com/sun/star/ui/XStatusbarItem.idl b/offapi/com/sun/star/ui/XStatusbarItem.idl index adec214ec5b6..faed72d9021f 100644 --- a/offapi/com/sun/star/ui/XStatusbarItem.idl +++ b/offapi/com/sun/star/ui/XStatusbarItem.idl @@ -64,6 +64,7 @@ interface XStatusbarItem </li> <li>com::sun::star::ui::ItemStyle::AUTO_SIZE</li> <li>com::sun::star::ui::ItemStyle::OWNER_DRAW</li> + <li>com::sun::star::ui::ItemStyle::MANDATORY (@since LibreOffice 6.2)</li> </ul> @see com::sun::star::ui::ItemStyle |