summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-25 20:56:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-25 20:56:56 +0100
commit6f906d9c26e90f507299bc117dac8c9859e6b182 (patch)
tree0a72d2f0288ac2e5530a1847d73c967abc9615a3 /svx
parent99aa9f1decf991d05bd03e079565670f3bcc8b06 (diff)
add borders to category and format listboxes
Change-Id: Ic53084ded75f9c9000d5768de12953e3b339908e
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/fontlb.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/dialog/fontlb.cxx b/svx/source/dialog/fontlb.cxx
index 131ca43dc0d3..f5a4d32844fe 100644
--- a/svx/source/dialog/fontlb.cxx
+++ b/svx/source/dialog/fontlb.cxx
@@ -97,9 +97,13 @@ SvxFontListBox::SvxFontListBox(Window* pParent, WinBits nStyle)
maEntryFont = maStdFont;
}
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxFontListBox(Window *pParent, VclBuilder::stringmap &)
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxFontListBox(Window *pParent, VclBuilder::stringmap &rMap)
{
- return new SvxFontListBox(pParent, WB_TABSTOP);
+ WinBits nWinStyle = WB_TABSTOP;
+ OString sBorder = VclBuilder::extractCustomProperty(rMap);
+ if (!sBorder.isEmpty())
+ nWinStyle |= WB_BORDER;
+ return new SvxFontListBox(pParent, nWinStyle);
}
void SvxFontListBox::InsertFontEntry( const String& rString, const Font& rFont, const Color* pColor )