Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-23 Thread Peter Eberlein
Hi Mathias, That's the easy part - call setComponent(). The problem is creating it, we currently don't have an API for that. You can do the following: a frame implements the XComponentLoader interface and so you can call the loadComponentFromURL() method on it. If you pass the document as Model

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-18 Thread Mathias Bauer
Peter Eberlein wrote: 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? There's no

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-09 Thread Peter Eberlein
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

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-07 Thread Mathias Bauer
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

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-02 Thread Peter Eberlein
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

[api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-01 Thread Peter Eberlein
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.

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-01 Thread Fernand Vanrie
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