To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=101039


User jsc changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|UNCONFIRMED               |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [email protected] Tue Apr 14 12:52:42 +0000 
2009 -------
i think it's invalid. 
The XEnumarationAccess of your XText from the cell gives you an enumeration over
the paragraphs in the cell. Each paragraph supports a further enumeration for
the text portions. You have to retrieve first the paragraphs and then retrieve
the enumeration access from the paragraph to retrieve the text portions. You
simply miss one indirection.

See the small Basic snippet

Sub Main
doc = ThisComponent

table = doc.getTextTables().getByName("Table1")
cell = table.getCellByName("A1")
paraenum = cell.createEnumeration()
do
        para = paraenum.nextElement()
        print para.getString()
        
        portionenum = para.createEnumeration()
        do
                portion = portionenum.nextElement()
                print portion.getString()
        loop until not portionenum.hasMoreElements()

loop until not paraenum.hasMoreElements()

End Sub

---------------------------------------------------------------------
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