diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-08 16:55:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-08 16:57:45 +0100 |
commit | 3982d7e78cf986266cb7eedaa77b57ca40680120 (patch) | |
tree | d6eb2f81ea87329a0988e0de170bb6929ac98f37 /vcl | |
parent | cf0ef681854ad53a0bdeff31ff5c49c8c31da99b (diff) |
support importing label wrapping
Change-Id: I4f95a7c6424b0897a399e9be9913fce266c1f4df
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window2.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index c7189d350400..d73c7b8c7926 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -2002,6 +2002,14 @@ bool Window::set_property(const rtl::OString &rKey, const rtl::OString &rValue) SetStyle(nBits); } + else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("wrap"))) + { + WinBits nBits = GetStyle(); + nBits &= ~(WB_WORDBREAK); + if (toBool(rValue)) + nBits |= WB_WORDBREAK; + SetStyle(nBits); + } else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("text"))) SetText(rtl::OStringToOUString(rValue, RTL_TEXTENCODING_UTF8)); else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("height-request"))) |