summaryrefslogtreecommitdiff
path: root/vcl/source/control/fixed.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-17 12:14:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-17 12:15:58 +0000
commit0240aa98de2148be78a40a23b94fc24ac621412e (patch)
tree47e110daae1e9463abf574548534406ffd9017e0 /vcl/source/control/fixed.cxx
parent877f7e6eaee9d7da176d02b06dee9847cc332d13 (diff)
support setting end ellipsis from .ui
Change-Id: I426f41ffdf107b7dcff8ae713e2dc63610f915af
Diffstat (limited to 'vcl/source/control/fixed.cxx')
-rw-r--r--vcl/source/control/fixed.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 70bfac2fb1b9..165391654001 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -455,6 +455,17 @@ bool FixedText::set_property(const OString &rKey, const OString &rValue)
setMaxWidthChars(rValue.toInt32());
else if (rKey == "width-chars")
setMinWidthChars(rValue.toInt32());
+ else if (rKey == "ellipsize")
+ {
+ WinBits nBits = GetStyle();
+ nBits &= ~(WB_PATHELLIPSIS);
+ if (rValue != "none")
+ {
+ SAL_WARN_IF(rValue != "end", "vcl.layout", "Only endellipsis support for now");
+ nBits |= WB_PATHELLIPSIS;
+ }
+ SetStyle(nBits);
+ }
else
return Control::set_property(rKey, rValue);
return true;