Issue 19758 - API: sw.SwXBodyText::com::sun::star::text::XSimpleText::insertString()
Summary: API: sw.SwXBodyText::com::sun::star::text::XSimpleText::insertString()
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Other OS
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
: 19732 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-09-18 13:59 UTC by chne
Modified: 2013-02-24 21:10 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 chne 2003-09-18 13:59:15 UTC
It is not possible to insert control character "return" and "tab" as described
in IDL. To reproduce please append the following macro to a text document.

Sub Main
oDoc = ThisComponent
oText = oDoc.getText()
oText.insertString(oText.createTextCursor(),"Now comes a LF:" + chr(10) +_
"Now comes a RT:" + chr(13) + "Now comes tab:" + chr(11) + "end of tab." +_
" Now comes a space:'" + chr(32) + "'end of space.",false)
End Sub
Comment 1 chne 2003-09-18 14:21:33 UTC
Summray changed
Comment 2 dvc 2003-09-18 15:27:35 UTC
*** Issue 19732 has been marked as a duplicate of this issue. ***
Comment 3 thomas.lange 2003-09-30 07:52:41 UTC
.
Comment 4 thomas.lange 2003-10-20 09:38:54 UTC
Tab is character 9... I.e. everything OK but for the CR.


oDoc = ThisComponent
oText = oDoc.getText()
oText.insertString(oText.createTextCursor(),"Now comes a LF:" + chr(10) +_
"Now comes a CR:" + chr(13) + "Now comes TAB:" + chr(09) + "end of
tab." +_
"Now comes a SPC:'" + chr(32) + "'end of space.",false)

Comment 5 thomas.lange 2003-10-20 09:48:10 UTC
SwXTextRange::setString also affected.
Comment 6 thomas.lange 2003-10-20 11:52:45 UTC
Fixed in CWS tlapi1.

Files changed:
- unoobj2.cxx 1.38.24.1
- unotext.cxx 1.22.226.1
Comment 7 thomas.lange 2003-10-24 11:17:07 UTC
.
Comment 8 thomas.lange 2003-11-04 15:34:51 UTC
.
Comment 9 chne 2003-11-06 15:43:59 UTC
ok in tlapi1
Comment 10 chne 2003-12-10 14:18:05 UTC
tested in src680_m17