To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=73247
------- Additional comments from [EMAIL PROTECTED] Fri May 16 09:31:25 +0000
2008 -------
fme->lijian: Have a look at this basic code:
Sub Main
curs = thisComponent.Text.createTextCursor
curs.gotoEnd(False)
' Table:
aTable = thisComponent.createInstance("com.sun.star.text.TextTable")
foo = aTable.StartRedLine ' => exception
thisComponent.Text.insertTextContent(curs, aSection, False)
foo = aTable.StartRedLine ' => ok
' Section:
aSection = thisComponent.createInstance("com.sun.star.text.TextSection")
foo = aSection.StartRedLine ' => crash
thisComponent.Text.insertTextContent(curs, aSection, False)
foo = aSection.StartRedLine ' => ok
End Sub
I think the way it works with tables is correct, an exception is thrown if the
property could not be retrieved (because the object has not been inserted yet).
Please have a look at unotbl.cxx to see how this works for tables.
---------------------------------------------------------------------
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]