diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-26 15:24:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-27 12:02:12 +0100 |
commit | 1a7489039e8acbd9499276fdb6e747e11d3ecffe (patch) | |
tree | 224cbaab534789ecd994452f39f32b0eae9028f3 /include/vcl/svlbitm.hxx | |
parent | fdb1dc8062f969f4dde038d116b631479ec796b6 (diff) |
add text alignment support to treeview entries
Change-Id: I3ebbaf7b722ad9b6f2b8fadb443053ea816d1643
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91147
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/svlbitm.hxx')
-rw-r--r-- | include/vcl/svlbitm.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/svlbitm.hxx b/include/vcl/svlbitm.hxx index b5d00aa95f6b..dc8cde9bcb02 100644 --- a/include/vcl/svlbitm.hxx +++ b/include/vcl/svlbitm.hxx @@ -105,6 +105,7 @@ class VCL_DLLPUBLIC SvLBoxString : public SvLBoxItem { private: bool mbEmphasized; + double mfAlign; protected: OUString maText; @@ -120,6 +121,8 @@ public: virtual int CalcWidth(const SvTreeListBox* pView) const override; + void Align(double fAlign) { mfAlign = fAlign; } + void Emphasize(bool bEmphasize) { mbEmphasized = bEmphasize; } bool IsEmphasized() const { return mbEmphasized; } |