From bd3c5c4c234e3dc6b89cd235321945a41a08d562 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Tue, 8 Aug 2017 16:23:07 +0200 Subject: [API CHANGE] tdf#65393 Import signature line images from ooxml showing whether the signature behind the signature line is valid or not. Change-Id: Ia6cca62812019f26d55d234cac767a9b4b7c8175 Reviewed-on: https://gerrit.libreoffice.org/40980 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 175e86435396..e25e7bc40fae 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -1891,13 +1891,15 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext // We have methods to _add_ individual tokens or whole namespaces to be // processed by writerfilter (instead of oox), but we have no method to - // filter out a single token. Just hardwire the wrap token here until we - // need a more generic solution. + // filter out a single token. Just hardwire the 'wrap' and 'signatureline' tokens + // here until we need a more generic solution. bool bIsWrap = Element == static_cast(NMSP_vmlWord | XML_wrap); + bool bIsSignatureLine = Element == static_cast(NMSP_vmlOffice | XML_signatureline); + bool bIsShapeSent = static_cast(mpParent)->isShapeSent(); bool bSkipImages = getDocument()->IsSkipImages() && oox::getNamespace(Element) == static_cast(NMSP_dml) && !((oox::getBaseToken(Element) == XML_linkedTxbx) || (oox::getBaseToken(Element) == XML_txbx)); - if ( bInNamespaces && (!bIsWrap || static_cast(mpParent)->isShapeSent()) ) + if ( bInNamespaces && ((!bIsWrap && !bIsSignatureLine) || bIsShapeSent) ) xResult.set(OOXMLFactory::createFastChildContextFromStart(this, Element)); else if (mxContext.is() && !bSkipImages) { -- cgit