Apache OpenOffice (AOO) Bugzilla – Issue 2694
insertByIndex not working for connected cells in a writer document
Last modified: 2017-05-20 09:32:11 UTC
Win2K and SO6.0Beta I want to insert some rows into the second table of a writer-document. I use (StarBasic) oDesktop = createUnoService( "com.sun.star.frame.Desktop" ) oDocument = oDesktop.loadComponentFromURL("file:///G:/Test.sxw", " _blank", 0, mArgs) oTextTables = oDocument.getTextTables() oTable = oTextTables(1) oRows = oTable.getRows() oRows.insertByIndex(1, 2) This works fine with a table with 2 rows and 2 cols for example, but it doesn't work with my table which looks like: ******************* * * * * * * * ******************* * * * * * * * ******************* * * * * * * * ******************* * * * * * * * ******************* * * * * * * * ******************* * * * * **** * * * ******************* * * * ******************* It seems to depend on the connected cells of the table. Since some other users of SO6.0Beta can reproduce this behavior, we think it's a bug.
implmentation issue
The text table interface doesn't fit well for the implementation of the writer's tables. To solve this problem we need either interfaces that are more implementation dependend or a different writer table implementation.