hwpf/usermodel/Range.java ------------------------- text() fixed to correctly return unicode text. findRange() fixed to prevent loop indexes going out of bounds, causing an exception. hwpf/usermodel/TableRow.java ---------------------------- Removed constraint requiring levelNum==1 in constructor that doesn't work when dealing with documents that include sections, causing an exception. hwpf/usermodel/CharacterRun.java -------------------------------- Changed to use updateSprm() rather than addSprm() to match code elsewhere that prevents additional sprms being created if they already exist. Also added accessors for properties that Word uses when handling embedded objects such as Hyperlinks, Pictures, OleObjects etc. hwpf/usermodel/Paragraph.java ----------------------------- Added accessors for Ilfo and Ilvl used by Word for numbered lists.
Created attachment 11155 [details] Range.java, TableRow.java, CharacterRun.java, Paragraph.java
I've applied this patch... very sorry it too so long. Needed to get some other things out of the way first. BTW hwpf has failing test's. Don't suppose you could look into that?