diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-18 11:52:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-18 12:46:43 +0000 |
commit | a17a052ef226a431414312e02dbc52048aa001db (patch) | |
tree | 841de1d75e384275df8f5369b5b222eeced6eb0e /svtools | |
parent | Updated core (diff) | |
download | core-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.cxx | 14 |
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); } // ----------------------------------------------------------------------- |