summaryrefslogtreecommitdiff
path: root/include/vcl/status.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-08 12:33:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-24 13:04:21 +0200
commitfaa4ebb2cdc99505e9be7e1cbed83b19acfd3c4a (patch)
tree0d6ee926ac5cc5b12262ecc9f47e2e40cc5d3e8d /include/vcl/status.hxx
parent808da2c918e662c19618c9f4035e8c9a802bb887 (diff)
tdf#127411 improve sizing of status items in the status bar
Change-Id: I6ea3fbb893d0141010ee1abd1720d6cdad97b528 Reviewed-on: https://gerrit.libreoffice.org/80440 Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/status.hxx')
-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 fe6ec34e41a4..79497a448014 100644
--- a/include/vcl/status.hxx
+++ b/include/vcl/status.hxx
@@ -149,7 +149,8 @@ public:
long GetItemOffset( sal_uInt16 nItemId ) const;
- void SetItemText( sal_uInt16 nItemId, const OUString& rText );
+ /// @param nCharsWidth, if not -1, overrides the normal width calculation
+ void SetItemText( sal_uInt16 nItemId, const OUString& rText, int nCharsWidth = -1 );
const OUString& GetItemText( sal_uInt16 nItemId ) const;
void SetItemData( sal_uInt16 nItemId, void* pNewData );