forked from amazingfate/loongoffice
The previous fix for this bug only fixed a symptom, this a fix for the real problem; with the real problem fixed the nCellEnds is unnecessary. Given that top-level table properties may be put either before or after the table cells, the only way that works to import tables is to buffer a whole top-level table row, but currently the buffer is replayed already at the end of a nested table row. Fortunately the RTF spec guarantees that \nesttableprops must occur after the nested table cells of the nested row, so it should be sufficient to remember the cell properties for the current nested table row only, in addition to the cell properties for the top-level table row. With this change, skipping a \nesttableprops destination when there is a table style turns out to mangle ooo98040-1.rtf badly, so stop doing that workaround. RTFDocumentImpl::popState() was copying various buffers up the state stack which is a clear indication that these shouldn't be members of RTFParserState in the first place, move them to RTFDocumentImpl. Change-Id: Ic2d8f7b3e00844b224d61605b405ca651239e5f7
The writerfilter module contains import filters for Writer, using its UNO API. Import filter for docx, doc and rtf. == Module contents == * documentation * inc: global headers (can be included by other modules) * qa: unittests and subsequenttests * source: the filters themselves * util: UNO passive registration config == Source contents == * dmapper: the domain mapper, hiding UNO from the tokenizers, used by DOCX and RTF import * doctok: incomplete and unused ww8 (.doc) tokenizer * filter: the UNO filter service implementations, invoked by UNO and calling the dmapper + one of the tokenizers * ooxml: the docx tokenizer * resourcemodel * rtftok: the rtf tokenizer