[api-dev] Apply Styles to Cell Range

2006-07-18 Thread Kent Gibson
Is there any way to apply a style to a range of cells in the writer? As far as I can see you have to extract the XText from every cell, create a cursor and then apply the style. no? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best

Re: [api-dev] Regarding XJobExecutor.

2006-07-18 Thread Andreas Schlüns
bharathy b wrote: Hi i wanted to know if the following is possible using the XJobExecutor. Is it possible to have more than one trigger method for an XJobExecutor? At present i have added a toolbar button to the writer document using an Addon. (Using an UNO Component in Java).

[api-dev] Inserting RTF into OpenOffice-Writer Document

2006-07-18 Thread Lothar Braun
Hi, i have a character array containing raw RTF-code (e.g.: {\\rtf1\\b\\i Hello World}). Is there an easy way to insert that into a XTextDocument and get formated RTF-Text? I tried to find an Interface which is responsible for handling RTF-Text, but i couldn't find anything. Is that possible

Re: [api-dev] Regarding XJobExecutor.

2006-07-18 Thread Mathias Bauer
bharathy b wrote: Hi i wanted to know if the following is possible using the XJobExecutor. Is it possible to have more than one trigger method for an XJobExecutor? At present i have added a toolbar button to the writer document using an Addon. (Using an UNO Component in Java). Onclick

Re: [api-dev] Inserting RTF into OpenOffice-Writer Document

2006-07-18 Thread Kent Gibson
I would expect, but I haven't done it before, that you need an filter. You define these using the media descriptors. so look in the developers guide under import filters or try ooforum. if you don't have any luck just write back and I will try a bit harder to help. --- Lothar Braun [EMAIL

Re: [api-dev] Regarding XJobExecutor.

2006-07-18 Thread Mathias Bauer
bharathy b wrote: Hi Mathias Thankyou... Regarding the ProtocolHandlerAddon method.. I want to know where should i define sayHello( ). You need to implement a ProtcolHandler, mainly its interface com.sun.star.frame.XDispatchProvider, as described in the DevGuide. Take the demo

Re: [api-dev] Searching Tables or Cell Ranges in the Writer

2006-07-18 Thread Andrew Douglas Pitonyak
Well, consider this macro which sets all instances starting from the first table to bold. I did not attempt to see if the cursor had left the table for this macro. Sub SearchTable Dim oDescriptor, oFound Dim oTable Dim oCell REM Get the FIRST text table oTable =