OpenOffice-OODoc - Re: Workaround for getFootnoteList and getFootnoteCitationList problems

Posted on Mon Mar 27 23:02:13 2006 by jmgdoc in response to 2019 (See the whole thread of 2)
Re: Workaround for getFootnoteList and getFootnoteCitationList problems

You are right, the present footnote-focused methods don't work on ODT files, and this forum is the right place to report the issue.

The reason is quite simple: footnotes, like endnotes, belong to the old OOo format specification. In the current OpenDocument spec, there are "note" objects only (a "note" is either a "footnote" or an "endnote" according to a "note-class" attribute, and a footnote could be turned in an endnote (and vice-versa) through a single setAttributes()). Knowing that, getFootnote() should not be regarded as an appropriate mnemonic for the future.

The same problem occurred with "ordered" and "unordered" item lists, which exists in OOo but not in OD, where any list item, ordered or bulleted, is... a list item. So, getOrderedList() and getUnorderedList() work on OOo only while getItemList() works on OD only.

So getFootnote(), getFootnote() citation, and so on, are no longer supported (however they will remain in the API for a time).

In the next release, they will probably be replaced by getNote() and other note-aware methods which will work on endnotes as well as on footnotes. In addition, "annotations" will probably be supported as well.

In the meantime, the proposed worktaround is right.
Write a response