To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81697
Issue #|81697
Summary|Calling getString() during paragraphenumeration causes
| automatic scrolling of word processor to the point of
| the visible cursor
Component|Word processor
Version|OOo 2.2.1
Platform|All
URL|http://api.openoffice.org/servlets/ReadMsg?list=dev&ms
|gNo=18253
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|programming
Assigned to|mru
Reported by|listmanster
------- Additional comments from [EMAIL PROTECTED] Tue Sep 18 12:30:31 +0000
2007 -------
Calling getString() on a text range while enumerating paragraphs causes the
Writer to scroll
automatically, to the point where the visible cursor was last placed.
This is particularly apparent during repeated enumerations of document
structure using a timer.
<code>
Sub Main
While (1 = 1)
Run
REM Wait 5 seconds...
Wait (5000)
Wend
End Sub
Sub Run()
Dim oTextEnum as Object, oTextElement as Object
Dim nHeadsFound as long
oText = ThisComponent.Text
nHeadsFound = -1
oTextEnum = oText.createEnumeration
While oTextEnum.hasMoreElements
oTextElement = oTextEnum.nextElement
If oTextElement.supportsService("com.sun.star.text.Paragraph") Then
If oTextElement.ParaChapterNumberingLevel >= 0 then
Dim strHeadingText as string
REM IF YOU COMMMENT THE LINE BELOW, THE DOCUMENT DOES
NOT SCROLL....
strHeadingText = oTextElement.getString()
nHeadsFound = nHeadsFound + 1
End If
End If
Wend
End Sub
</code>
---------------------------------------------------------------------
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]