diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-03-29 12:51:23 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-03-31 09:44:44 +0200 |
commit | 4b83eb0a08934922cc7aad0b259706b5c5dfadde (patch) | |
tree | 5d7795cffbbb952427f72179f0a0dc6a6f1721f9 /vcl/source | |
parent | c176cb8907530a795cb0e38de8193df931f891fb (diff) |
vcl builder: FixedText support for underline text via attributes
Change-Id: I9dbe4979c1440ee0cb6a4649de05805b891f3760
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/window2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 25b642b84d79..acab1b85f931 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1865,6 +1865,12 @@ bool Window::set_font_attribute(const OString &rKey, const OString &rValue) aFont.SetItalic(ITALIC_NORMAL); SetControlFont(aFont); } + else if (rKey == "underline" && rValue == "True") + { + Font aFont(GetControlFont()); + aFont.SetUnderline(UNDERLINE_SINGLE); + SetControlFont(aFont); + } else { SAL_INFO("vcl.layout", "unhandled font attribute: " << rKey.getStr()); |