Apache OpenOffice (AOO) Bugzilla – Issue 10490
setting texttable column witdh from basic
Last modified: 2013-07-30 02:18:07 UTC
Michael Hoennig wrote: > > Hi Marc, > > > After setting the width of a column the horizontal ruler gets > > confused about it. The vertical lines showing the inner column > > boundary at the altered columns disappears. After closing and > > reopening the document anything is fine again. > > Please give a simple code example. Here we go: Sub Main oDoc = thisComponent oTab = getTextTable() dim tcs as string oTCS = oTab.getPropertyValue("TableColumnSeparators") for i=LBound(oTCS) to UBound(oTCS) tcs = tcs + oTCS(i).Position + " " 'msgbox oTCS(i).isvisible next msgbox tcs oTCS(1).Position = 5555 ' former value 6666 oTab.setPropertyValue("TableColumnSeparators", oTCS) End Sub function getTextTable() dim tabs as object tabs = oDoc.getTextTables() ' einfach die Erste getTextTable = tabs.getByIndex(0) end function As i wrote this works and the table is updated in the view. Only the horizontal ruler does not like it. But it is notified about the change. The texttable has three columns and two visible divison lines in the ruler (others fall togther with left and right paper borders) of which the left one between column 2 and 3 get's shifted out of sight or disappears when the column width is changed. I can send you the document, if neccessary. > > Maybe this is an error in the FreeBSD-Version of OOo1.0.1 i'm > > using or a known issue? > > We will only be able to check whether it is a generic bug. We will not be > able to test on FreeBSD. This might be an issue for the OOo QA project. That's okay, we will know then who is responsible. ;-) One addition: If i grab the separator between column 1 and 2 with the mouse after the macro ran, the separator between column 2 and 3 reappears and it flips back into the position it was at before! Thanks again, Marc Michael Hoennig again: The Linux version shows the same (wrong) behaviour. Would you like to report an bug issue in IssueZilla? Simply add your mail to which this is a reply. Thanks Michael
implementation issue
GetTabCols declares one column as hidden. The problem vanishes upon reload. Tl->DVO: Please have a look at in order to tell what needs to be done.
.
According to the OpenOffice.org roadmap (http://tools.openoffice.org/releases) this issue was retargeted to OOo Later.
Reset assignee on issues not touched by assignee in more than 2000 days.