Issue 25033 - API: SwXBodyText::XSimpleText::insertString
Summary: API: SwXBodyText::XSimpleText::insertString
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P4 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-03 11:51 UTC by stephan.wunderlich
Modified: 2013-02-24 21:06 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 stephan.wunderlich 2004-02-03 11:51:09 UTC
If the cursor if spanned this method inserts at the start of the TextRange
instead of it's end as specified.

myText = ThisComponent.Text
myText.setString("Look at this")
myCursor = myText.createTextCursor
myCursor.goRight(1,false)
'print "*"+myCursor.getString+"*"
myText.insertString(myCursor, "AAAAA", false)

inserts the Text AAAAA behind the 'L' of  'Look' and 

myText = ThisComponent.Text
myText.setString("Look at this")
myCursor = myText.createTextCursor
myCursor.goRight(1,true)
'print "*"+myCursor.getString+"*"
myText.insertString(myCursor, "AAAAA", false)

inserts the Text AAAAA infront of the 'L' of  'Look'.

This also effects the method 'insertControlCharacter' of this Interface.
Comment 1 ooo 2004-02-09 13:35:23 UTC
I am not sure whether we really can change this implmentation.  The defective 
behaviour will be used by oodles of applications.  At least we have to talk 
about it.
Comment 2 thomas.lange 2004-03-08 11:45:45 UTC
.
Comment 3 stephan.wunderlich 2004-05-03 12:42:28 UTC
Sw: changed prio
Comment 4 stephan.wunderlich 2004-05-05 16:42:45 UTC
SW: changed target