Issue 10490 - setting texttable column witdh from basic
Summary: setting texttable column witdh from basic
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC FreeBSD
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-07 05:08 UTC by ms2
Modified: 2013-07-30 02:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ms2 2003-01-07 05:08:50 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
Comment 1 ooo 2003-01-08 10:45:25 UTC
implementation issue
Comment 2 thomas.lange 2003-02-07 09:32:01 UTC
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.
Comment 3 openoffice 2003-09-18 17:56:30 UTC
.
Comment 4 eric.savary 2003-09-26 17:48:54 UTC
According to the OpenOffice.org roadmap 
(http://tools.openoffice.org/releases) this issue was retargeted to 
OOo Later.
Comment 5 Rob Weir 2013-07-30 02:18:07 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.