599600601602603604605606607608609
} else { int pos = tables.indexOf(getTable((CTTbl) o)) + 1; tables.add(pos, newT); } int i = 0; cursor = t.newCursor(); while (cursor.toPrevSibling()) { o = cursor.getObject(); if (o instanceof CTP || o instanceof CTTbl) i++; }
606607608609610611612613614615616
o = cursor.getObject(); if (o instanceof CTP || o instanceof CTTbl) i++; } bodyElements.add(i, newT); cursor = t.newCursor(); cursor.toEndToken(); return newT; } return null; }
209210211212213214215216217218219
else{ int pos = tables.indexOf(getTable((CTTbl)o))+1; tables.add(pos,newT); } int i=0; cursor = t.newCursor(); while(cursor.toPrevSibling()){ o =cursor.getObject(); if(o instanceof CTP || o instanceof CTTbl) i++; }
216217218219220221222223224225226
o =cursor.getObject(); if(o instanceof CTP || o instanceof CTTbl) i++; } bodyElements.add(i, newT); cursor = t.newCursor(); cursor.toEndToken(); return newT; } return null; }
385386387388389390391392393394395
392393394395396397398399400401402
253254255256257258259260261262263
260261262263264265266267268269270
402403404405406407408409410411412
409410411412413414415416417418419