----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/109393/ -----------------------------------------------------------
(Updated March 13, 2013, 7:24 p.m.) Review request for Calligra. Changes ------- This is the final version. All the text tags that I want to support in the first version are now supported. Frames are not supported well right now, but the main use that this version will have is to be the base for the first baby docx export filter -- that will only support text and simple formatting. As a proof of concept I also add a super simple text export filter. Description ------- This patch creates a new library in filters/odftraverse. The purpose of this library is to create classes to make it easier to create export filters for ODF files. What you do to use this library is that you inherit a base class for backends to this parser / traverser and in the many callbacks you write the output that is relevant for your output format. To show how it can be used I have also created a very simple proof of concept filter that exports to text format, something Calligra actually lacked before. The current implementation traverses only ODT files and there are still a number of NYI functions that I want to finish before the actual merge. But I thought I'd get some opinions early. In other words, I expect at least one, maybe two iterations before this branch can be merged. Diffs (updated) ----- filters/CMakeLists.txt 8bcd640 filters/libodftraverse/CMakeLists.txt PRE-CREATION filters/libodftraverse/OdfParser.h PRE-CREATION filters/libodftraverse/OdfParser.cpp PRE-CREATION filters/libodftraverse/OdtTraverser.h PRE-CREATION filters/libodftraverse/OdtTraverser.cpp PRE-CREATION filters/libodftraverse/OdtTraverserBackend.h PRE-CREATION filters/libodftraverse/OdtTraverserBackend.cpp PRE-CREATION filters/words/ascii/AsciiExport.h PRE-CREATION filters/words/ascii/AsciiExport.cpp PRE-CREATION filters/words/ascii/CMakeLists.txt d36de47 filters/words/ascii/OdtTraverserAsciiBackend.h PRE-CREATION filters/words/ascii/OdtTraverserAsciiBackend.cpp PRE-CREATION filters/words/ascii/TODO ceb1a24 filters/words/ascii/words_ascii_export.desktop PRE-CREATION Diff: http://git.reviewboard.kde.org/r/109393/diff/ Testing ------- Tested with a lengthy text file. Thanks, Inge Wallin
_______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel