[Libreoffice-commits] .: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 8 08:58:16 PDT 2012
vcl/source/window/window2.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 3982d7e78cf986266cb7eedaa77b57ca40680120
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 8 16:55:25 2012 +0100
support importing label wrapping
Change-Id: I4f95a7c6424b0897a399e9be9913fce266c1f4df
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index c7189d3..d73c7b8 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")))
More information about the Libreoffice-commits
mailing list