tdf#70234 DOCX: import tracked deletion of fields
Deleted fields in tracked changes, for example page number fields, imported as not deleted text fields. Change-Id: Id35c3ad7d293039fc8a2d0b564572dc459a25d0f Reviewed-on: https://gerrit.libreoffice.org/73397 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
This commit is contained in:
BIN
sw/qa/extras/ooxmlexport/data/tdf70234.docx
Normal file
BIN
sw/qa/extras/ooxmlexport/data/tdf70234.docx
Normal file
Binary file not shown.
@@ -849,6 +849,13 @@ DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTrackChangesEmptyParagraphsInADeletion,
|
|||||||
assertXPath(pXmlDoc, "/w:document/w:body/w:p[" + OString::number(i) + "]/w:pPr/w:rPr/w:del");
|
assertXPath(pXmlDoc, "/w:document/w:body/w:p[" + OString::number(i) + "]/w:pPr/w:rPr/w:del");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf70234, "tdf70234.docx")
|
||||||
|
{
|
||||||
|
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
||||||
|
// import fields with tracked deletion
|
||||||
|
assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:del/w:r/w:fldChar");
|
||||||
|
}
|
||||||
|
|
||||||
DECLARE_OOXMLEXPORT_TEST(testTdf118691, "tdf118691.docx")
|
DECLARE_OOXMLEXPORT_TEST(testTdf118691, "tdf118691.docx")
|
||||||
{
|
{
|
||||||
uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY);
|
uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY);
|
||||||
|
@@ -5195,6 +5195,7 @@ void DomainMapper_Impl::PopFieldContext()
|
|||||||
aMap.InsertProps(m_pLastCharacterContext);
|
aMap.InsertProps(m_pLastCharacterContext);
|
||||||
aMap.InsertProps(m_aFieldStack.top()->getProperties());
|
aMap.InsertProps(m_aFieldStack.top()->getProperties());
|
||||||
appendTextContent(xToInsert, aMap.GetPropertyValues());
|
appendTextContent(xToInsert, aMap.GetPropertyValues());
|
||||||
|
CheckRedline( xToInsert->getAnchor( ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user