Issue 33886 - Cant create a textCursor on Redline's XText interface
Summary: Cant create a textCursor on Redline's XText interface
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: OOo 1.1.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-06 16:18 UTC by dsherwin
Modified: 2013-08-07 14:38 UTC (History)
2 users (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 dsherwin 2004-09-06 16:18:17 UTC
The XText interfaces has functions for creating TextCursor. 
Every Redline has an XText interface and trying to create a TextCursor with a
redline's XText interface causes an exception.

redlineEnum = document.getRedlines()

while redlineEnum.hasMoreElements():
  nextRedline = redlineEnum.nextElement()

  try:
    textCursor = nextRedline.Text.createTextCursor()
  except Exception, e:
    print "x"
    print e

Prints out:
x
Comment 1 michael.ruess 2004-09-07 08:00:05 UTC
MRU->SW: Is this API stuff?
Comment 2 stephan.wunderlich 2004-09-07 12:54:57 UTC
SW->TL: to reproduce just record changes with "Edit-changes-record" and type
something in your testdocument. Afterwards execute the following macro

Sub Main
On Error goto buah
redlineEnum = thiscomponent.getRedlines()
msgbox redlineEnum.Count
nextOne = redLineEnum(0)
msgbox nextOne.String
textCursor = nextOne.Text.createTextCursor()
msgbox testcursor.dbg_methods
exit sub
buah:
	print "exception"
End Sub

=> a message box stating that an exception appeared pops up 
Comment 3 thomas.lange 2004-09-15 08:47:47 UTC
According to OS the implementation of redlining is planned to be changed
considerably in the next release and fixing this will become considerable easier.

Thus we should wait until redlining implementation has changed.
Comment 4 dsherwin 2005-11-29 15:26:14 UTC
Adding mtg as CC