To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=77227
                 Issue #|77227
                 Summary|Nested table anchor returns the same table rather than
                        | parent
               Component|api
                 Version|OOo 2.2
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|iannz





------- Additional comments from [EMAIL PROTECTED] Fri May 11 05:14:56 +0000 
2007 -------
The problem is that the anchor.text of a nested table does not return the text
of the table that the nested table is in, it returns its own text. For a table
that is not nested it correctly returns the text that contains the table.

The following basic macro fragment is a cut down version of a macro for
determining the location of the insertion point (main body of the document,
header, footer, frame, etc).

oVC = thisComponent.CurrentController.ViewCursor
oText = oVC.text
while oText.getImplementationName = "SwXCell"
        print oText.createTextCursor.textTable.name
        oText = oText.createTextCursor.textTable.anchor.text
wend
msgbox oText.getImplementationName


The problem exists in OOo2.2 for Linux (SuSe10.2), OOo2.2 for Windows
(Windows2000), and OOo2.1 for X11.

>From issue 27268 I gather that the precise location of an anchor is not 
>returned
but it would seem reasonable that at least the correct text area is returned.
How else can one ascertain what type of area the current insertion point is in?

I haven't found a work around for this issue.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to