ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
39 stars 22 forks source link

Add bookmarks and bookmarks references generated to the output document to BookmarkManager. #458

Open ylussaud opened 2 years ago

ylussaud commented 2 years ago

Initializing the BookmarkManager with existing bookmarks form the template will allows to use asBookmarkRef() service on preexisting bookmarks with out M2Doc generating a dandling reference error in the generated document.

This might also be done with preexisting bookmark references since they can reference a bookmark that can be absent from the generated document. In this case it whould be nice to mark the reference as dandling in the generated document.

ylussaud commented 2 years ago

In fact this should be done while generating because a bookmark can be present in the template but absent of the generated document, or generated more than once.