summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-11-05 11:01:38 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-05 11:12:22 +0100
commitebf3df49118dad83acaf045b71815d7900289046 (patch)
treef3c8406fd32e10627f9f1aac9916fbf804740d3c /writerfilter
parent7f2576538e081ca6e01bc3e0e49ace5816390dc6 (diff)
DOCX filter: handle tcMar inside tblStylePr
Change-Id: Ifc7694b39337fb9824c2b57083fee101d48f6b84
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/TablePropertiesHandler.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/TablePropertiesHandler.cxx b/writerfilter/source/dmapper/TablePropertiesHandler.cxx
index 824cd0bda829..6854f92d7a21 100644
--- a/writerfilter/source/dmapper/TablePropertiesHandler.cxx
+++ b/writerfilter/source/dmapper/TablePropertiesHandler.cxx
@@ -211,12 +211,17 @@ namespace dmapper {
}
break;
case NS_ooxml::LN_CT_TcPrBase_tcMar:
+ //
{
writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps();
if (pProperties.get())
{
CellMarginHandlerPtr pCellMarginHandler(new CellMarginHandler);
+ if (m_pCurrentInteropGrabBag)
+ pCellMarginHandler->enableInteropGrabBag("tcMar");
pProperties->resolve(*pCellMarginHandler);
+ if (m_pCurrentInteropGrabBag)
+ m_pCurrentInteropGrabBag->push_back(pCellMarginHandler->getInteropGrabBag());
TablePropertyMapPtr pCellProperties(new TablePropertyMap);
if (pCellMarginHandler->m_bTopMarginValid)
pCellProperties->Insert(PROP_TOP_BORDER_DISTANCE, uno::makeAny(pCellMarginHandler->m_nTopMargin));