summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-26 12:57:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-26 12:58:56 +0100
commitd21eb6bc91748c62ed0790c8330ce242411aacbc (patch)
tree2d4c5c91a6d1339996abec0b7b253468afd027d3 /vcl
parentfe347327a44f2d8ed201f9fbc2ae4858f34962d8 (diff)
add hook to block use of markup in .ui files
Change-Id: Ia7eed5e9e1f8fba9876730e909461dabc167deb9
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/builder.cxx2
-rw-r--r--vcl/source/window/window2.cxx5
2 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 34238e26e5aa..abe6e277bf51 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1503,8 +1503,6 @@ void VclBuilder::collectProperty(xmlreader::XmlReader &reader, const OString &rI
if (!sProperty.isEmpty())
{
sProperty = sProperty.replace('_', '-');
- //https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
- SAL_WARN_IF(sProperty == "use-markup", "vcl.layout", "Use pango attributes instead of mark-up");
rMap[sProperty] = sValue;
}
}
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 0006d0febe53..ec3b9fab2628 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -2127,6 +2127,11 @@ bool Window::set_property(const OString &rKey, const OString &rValue)
nBits |= WB_AUTOVSCROLL;
SetStyle(nBits);
}
+ else if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("use-markup")))
+ {
+ //https://live.gnome.org/GnomeGoals/RemoveMarkupInMessages
+ SAL_WARN_IF(toBool(rValue), "vcl.layout", "Use pango attributes instead of mark-up");
+ }
else
{
SAL_INFO("vcl.layout", "unhandled property: " << rKey.getStr());