Peter Eberlein wrote:

> Hi Fernand,
> Fernand Vanrie schrieb:
>> Peter Eberlein wrote:
>>> Hi,
>>>
>>> I have to scan an XTextDocument for some patterns and to sort the 
>>> found XTextRanges by their visual representation.
>>> So the XViewCursor's point (getPosition()) seem the only way to do 
>>> this (because the anchor of the textrange may differ).
>>>
>>> For the user the moving of the cursor is annoying.
>>>
>>> LockControllers() of the XModel can avoid this, but then the position 
>>> of the XViewCursor is wrong, if you jump with the ViewCursor to the 
>>> XTextRange.
>>>
>>> Is there another way to turn off screenupdating and to circumvent the 
>>> problem with the XViewCursor?
>>>
>> First i was thinking on viewcursor.setvisible(false)
>> but this has no effect at all
>> 
>> then i remeber a forum discution an there i found a less-nice-solution
>> thisComponent.CurrentController.Frame.ContainerWindow.SetVisible(false)
>> ....
>> ....
>> thisComponent.CurrentController.Frame.ContainerWindow.SetVisible(true)
>> 
> oh, hiding the document is no solution :(
> other ideas?

You could create a second, "hidden" view of the same document. I never
tried that by myself so I can't predict if this can create problems, but
OTOH - why should it?

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to