summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-05-20 16:20:42 +0200
committerMichael Stahl <mstahl@redhat.com>2014-05-20 16:44:29 +0200
commit68bc8af6b6c4d0399bd10ed450d81aa2f17931a1 (patch)
treef3fde30fe52bccf4932cf932b2ed0543d54f72cc /include/vcl
parent35199df7b7af9d9dd3e98eb5f1b24ac1d407345c (diff)
SvxRelativeField: set the unit from the passed stringmap
In the Paragraph "Indents & Spacing" tab there are fields with unit: <object class="svxlo-SvxRelativeField" id="spinED_LEFTINDENT:0cm"> But the unit is effectively ignored, and the resulting SvxRelativeField with FUNIT_NONE and 9999 max somehow results in 0.18cm max when the dialog sets cm as unit. Change-Id: I6001c93079fd7d899f1e119913b29ea4898b1c34
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/builder.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index f8208f560407..3f4841e0ef17 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -13,6 +13,7 @@
#include <typeinfo>
#include <osl/module.hxx>
#include <tools/resmgr.hxx>
+#include <tools/fldunit.hxx>
#include <vcl/dllapi.h>
#include <vcl/window.hxx>
#include <xmlreader/xmlreader.hxx>
@@ -303,6 +304,7 @@ public:
static OString convertMnemonicMarkup(const OString &rIn);
static OString extractCustomProperty(stringmap &rMap);
+ static FieldUnit detectUnit(OString const&);
static bool extractDropdown(stringmap &rMap);