Kaydet (Commit) 3982d7e7 authored tarafından Caolán McNamara's avatar Caolán McNamara

support importing label wrapping

Change-Id: I4f95a7c6424b0897a399e9be9913fce266c1f4df
üst cf0ef681
...@@ -2002,6 +2002,14 @@ bool Window::set_property(const rtl::OString &rKey, const rtl::OString &rValue) ...@@ -2002,6 +2002,14 @@ bool Window::set_property(const rtl::OString &rKey, const rtl::OString &rValue)
SetStyle(nBits); 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"))) else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("text")))
SetText(rtl::OStringToOUString(rValue, RTL_TEXTENCODING_UTF8)); SetText(rtl::OStringToOUString(rValue, RTL_TEXTENCODING_UTF8));
else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("height-request"))) else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("height-request")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment