summaryrefslogtreecommitdiff
path: root/sd/source/filter/html/htmlattr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/filter/html/htmlattr.cxx')
-rw-r--r--sd/source/filter/html/htmlattr.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sd/source/filter/html/htmlattr.cxx b/sd/source/filter/html/htmlattr.cxx
index 7ad4fe411391..63502b499bf7 100644
--- a/sd/source/filter/html/htmlattr.cxx
+++ b/sd/source/filter/html/htmlattr.cxx
@@ -20,15 +20,26 @@
#include "htmlattr.hxx"
#include "htmlex.hxx"
#include <vcl/decoview.hxx>
+#include <vcl/builder.hxx>
-SdHtmlAttrPreview::SdHtmlAttrPreview( Window* pParent, const ResId& rResId )
-:Control( pParent, rResId )
+SdHtmlAttrPreview::SdHtmlAttrPreview( Window* pParent, WinBits nStyle )
+:Control( pParent, nStyle )
{
}
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSdHtmlAttrPreview(Window *pParent, VclBuilder::stringmap &rMap)
+{
+ WinBits nWinStyle = 0;
+
+ OString sBorder = VclBuilder::extractCustomProperty(rMap);
+ if (!sBorder.isEmpty())
+ nWinStyle |= WB_BORDER;
+
+ return new SdHtmlAttrPreview(pParent, nWinStyle);
+}
SdHtmlAttrPreview::~SdHtmlAttrPreview()