summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-18 11:52:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-18 12:46:43 +0000
commita17a052ef226a431414312e02dbc52048aa001db (patch)
tree841de1d75e384275df8f5369b5b222eeced6eb0e /svtools
parentUpdated core (diff)
downloadcore-a17a052ef226a431414312e02dbc52048aa001db.tar.gz
core-a17a052ef226a431414312e02dbc52048aa001db.zip
add a border property to ValueSet
Change-Id: Iedd9f23a57e4c9153a6b10c4d5d060664c545553
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueset.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index bf699fd03ede..50e46f8af446 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -102,9 +102,19 @@ ValueSet::ValueSet( Window* pParent, WinBits nWinStyle, bool bDisableTransientCh
mbIsTransientChildrenDisabled = bDisableTransientChildren;
}
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeValueSet(Window *pParent, VclBuilder::stringmap &)
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeValueSet(Window *pParent, VclBuilder::stringmap &rMap)
{
- return new ValueSet(pParent, WB_TABSTOP);
+ WinBits nWinBits = WB_TABSTOP;
+
+ VclBuilder::stringmap::iterator aFind = rMap.find(rtl::OString("border"));
+ if (aFind != rMap.end())
+ {
+ if (toBool(aFind->second))
+ nWinBits |= WB_BORDER;
+ rMap.erase(aFind);
+ }
+
+ return new ValueSet(pParent, nWinBits);
}
// -----------------------------------------------------------------------