Added support for “sections” in ODT documents.
View the CVS log here
Added support for “sections” in ODT documents.
View the CVS log here
The initial version of OdtToText2.java was committed to the CVS by Bernd Eilers. View the CVS log here
Features
To Do’s
Test Run:
DEBUG unhandled elem is org.openoffice.odf.text.UnknownElement node=office:forms
DEBUG unhandled elem is org.openoffice.odf.text.UnknownElement node=text:sequence-decls
He heard quiet steps behind him. That didn’t bode well. Who could be following him this late at night and in this deadbeat part of town? And at this particular moment, just after he pulled off the big time and was making off with the greenbacks. Was there another crook who’d had the same idea, and was now watching him and waiting for a chance to grab the fruit of his labor?* aaa
* bbb
* ccc
* ddd
* eee
* ffff==== Heading ====
text below heading
* aaa
* bbb
* ccc
* ddd
* eee
* ffff
What´s returned as java.util.List at that textBody.getContent() call is
in fact an instance of class BlockContent which extends
java.util.AbstractList. What the listIterator() and iterator() methods
of that AbstractList returns which are curently not overriden in
BlockContent would likely call the get(int index) method with an
advancing index for every next() call on the Iterator. The get(int
index) method which we have in BlockContent now basically starts every
time at the first childElement advancing until it gets to the index
element at each call. Adding that together means that the current
iterator is highly inefficent especially when considering large
documents. So this means it would be a good idea to implement some inner
class which implements ListIterator for BlockContent and to override the
iterator and listIterator methods to return an instance of that class.
This inner class should keep an pointer into the DOM tree for
remembering where it is and just call factory.getElement() similar as it
is done in the get(int index) Method.
My JCA has been approved, which makes me a OpenOfffice.org contributor. The complete list of contrubutors is available here
I attended my first IRC meeting at #odftoolkit. Not many turned up due to a public holiday. But discussed few things with Bernd Eilers regarding OdtToText.java
Currently working on a re-write of OdtToText.java called as OdtToText2.java, by LO.This will be upwardly compatible as it uses the new classes TextDocument, Body, ElementFactory, etc
I successfully wrote a Test Case(TextDocumentTest.java) for TextDocument.java. It is not yet committed to the CVS as yet.
I am now a official member of the ODF Toolkit Project. Current Role is “Observer“. However I expect a upgrade to a “Developer” soon.
See the list of members here
May 1, 2007
April 30, 2007
April 26, 2007
April 25, 2007