Hi Mathias,
Mathias Bauer schrieb:
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.
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?
Thanks, that works. I don't like dispatches, so is there a api-method
for .uno:NewView?
First, the property "OpenNewView" of the MediaDescriptor comes to my
mind. But loading is to slow.
Also played with "creating Frames manually" [1]. The example runs, but
how to put the ComponentWindow into the frame?
Regards
Peter
[1]
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Creating_Frames_Manually
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]