summaryrefslogtreecommitdiff
path: root/include/vcl/svlbitm.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-26 15:24:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-27 12:02:12 +0100
commit1a7489039e8acbd9499276fdb6e747e11d3ecffe (patch)
tree224cbaab534789ecd994452f39f32b0eae9028f3 /include/vcl/svlbitm.hxx
parentfdb1dc8062f969f4dde038d116b631479ec796b6 (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.hxx3
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; }