To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67878
Issue #|67878
Summary|creation of bookmarks with dimension does not work wit
|h some XTextRanges
Component|api
Version|OOo 2.0.3
Platform|Opteron/x86_64
URL|
OS/Version|Windows 2000
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|jsc
Reported by|clutz
------- Additional comments from [EMAIL PROTECTED] Fri Jul 28 06:47:59 -0700
2006 -------
I want to create a bookmark that encloses a textrange with a dimension != 0
(different range.Start and range.End positions). It seems that this does not
work with some kind of XTextRanges and it is not clear, why these XTextRanges
don't work.
For example:
running the following code, an IllegalArgument-Exception is returned, wheras if
you uncomment the line "range = mytext.createTextCursorByRange(mytext)" the code
works correct.
The TextCursor I create should not be necessary, as insertTextContent only
requires a normal XTextRange and not a XTextCursor.
Sub insertBookmarkWithDimensionBug
doc = ThisComponent
mytext = doc.Text
mytext.setString("Hallo")
range = mytext
'range = mytext.createTextCursorByRange(mytext)
bookmark = doc.createInstance("com.sun.star.text.Bookmark")
bookmark.setName("test")
range.Text.insertTextContent(range, bookmark, true)
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]