opendocument-app / OpenDocument.core

C++ library that translates office documents to HTML
GNU General Public License v3.0
23 stars 9 forks source link

refactor document tree #316

Closed andiwand closed 8 months ago

andiwand commented 2 years ago

Paradigm change of how we process documents. Before we only iterated through them and turned them into HTML on the fly. With this change we try to build a proper document tree (like DOM) which can then be used to walk through the document in any direction. The HTML generation is mostly unchanged. This can allow us to do proper editing in the future and provides better styling resolution.

The separation between public and private interface allows more flexibility in the backend while the frontend should be (hopefully) stable.

As a by-product this also contains now a HTML writer which supports some basic formatting. The hope is that this will reduce reference file diff size and makes it possible to spot differences in the HTML diff directly.