Re: [api-dev] copy/paste with dispatcher

2008-04-28 Thread Mathias Bauer
Hi, Atte André Jensen wrote: Hi I'm trying to copy a part of a document while preserving the formatting with python. Here's the code I have: print rangeCursor.String controller = doc.getCurrentController() controller.select(rangeCursor) frame = controller.getFrame() properties = ()

Re: [api-dev] Can I use XDispatchProviderInterceptor in an extension?

2008-04-28 Thread Mathias Bauer
Giuseppe Castagno wrote: Hi all, I'd like to intercept some dispatch commands (as .uno:Save for example) from inside an extension, using Java. Is it possible to use a XDispatchProviderInterceptor interface for that, intercepting the dispatch command before it is sent to the right

Re: [api-dev] Standard Filter

2008-04-28 Thread Bart Aimar
Sorry... I had forgotten a needed external function: GetLastUsedRow Anyway... the complete code is: Sub HasFilter_in_Sheet() Dim oSheet Dim oFilterDesc oSheet = ThisComponent.currentController.activeSheet 'current sheet For i = 2 to getLastUsedRow(oSheet) if

Re: [api-dev] XRenderer.render

2008-04-28 Thread Fernand Vanrie
Tim Parth wrote: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if it suits my needs and if yes, how to use it. On the forum you

[api-dev] Re: [Spam] Re: [api-dev] XRenderer.render

2008-04-28 Thread Fernand Vanrie
Tim Parth wrote: Hi! Producing a preview works, but I couldn't receive an Image of the rendered document either. My current approach is: exporting a document to PDF Interesting aproach, there is also a OO-project to open PDF as a writerodc, maybe you will find there some usefull information

[api-dev] Re: [Spam] Re: [api-dev] XRenderer.render

2008-04-28 Thread Fernand Vanrie
Marc Santhoff wrote: Am Samstag, den 26.04.2008, 10:41 +0200 schrieb Tim Parth: Hi all! Is it possible to use the interface XRender with it's method render to render a complete TextDocument (swriter) into an image for further use? The documentation is very short an I don't know exactly if

Re: [api-dev] Can I use XDispatchProviderInterceptor in an extension?

2008-04-28 Thread Giuseppe Castagno
Hi Mathias, Mathias Bauer wrote: Giuseppe Castagno wrote: ... From what I've seen from the tests I carried out so far and from studying the DevGuide code examples, using a XDispatchProviderInterceptor from inside an extension doesn't seem possible. Prompted from the response I got from

Re: [api-dev] Can I use XDispatchProviderInterceptor in an extension?

2008-04-28 Thread Andreas Schlüns
Hi Giuseppe, with the Job component implemented and configured it seems to work, thanks. In the meantime, reading the documentation I found this sentence in the DevGuide [1], at the beginning: ... If both are available, the synchronous service AsyncJob is preferred by the job execution

Re: [api-dev] Standard Filter

2008-04-28 Thread Noelson Duarte
Hi, Noelson Duarte ha scritto: Hi, Yes, it's possible: http://www.oooforum.org/forum/viewtopic.phtml?t=70292 Tks... but the code in link above (as is) look not work properly in any conditions. Here, code from the _last_ post of above link is working fine. If the enumeration is the

Re: [api-dev] Can I use XDispatchProviderInterceptor in an extension?

2008-04-28 Thread Giuseppe Castagno
Hi Andreas, Andreas Schlüns wrote: Hi Giuseppe, ... Seams to be a simple typo ... The sentence should be: If both are available, the synchronous interface is preferred by the job execution environment. On the implementation side it's more easy than you think :-) For you there exists two