Re: [api-dev] Tab KeyHandler / Listener

2008-04-04 Thread Cor Nouws
Hi Ariel, Ariel Constenla-Haile wrote (3-4-2008 19:29) How could I have found the different components that are needed by those two listeners? Oh what a question! not very simple to answer! So I tell just how *I* started (may be someone else has a better story/method). First, it's quite impo

Re: [api-dev] Naming a Toolbar Add-On

2008-04-04 Thread Ariel Constenla-Haile
Tobias Krais escribió: Hi Ariel, thank you for your help. I tested a lot but had no success... Hi Tobias, I've done a demo extension using the values you give here, and it DOES generate a toolbar with a custom name. I send it to your mail, check it and let me know if it works. Regards A

Re: [api-dev] replacing multiple cursors with image

2008-04-04 Thread Fernand Vanrie
Atte André Jensen wrote: Fernand Vanrie wrote: Thanks for your reply! Atte André Jensen wrote: If someone could give a clue to what I',m doing wrong or help me a bit further, I'd greatly appreciate it. No idee, I think my problems might relate to the advice you gave me last week regarding

Re: [api-dev] Sending contextual events from OpenOffice to a UNO application

2008-04-04 Thread Ariel Constenla-Haile
Hi ashok, ashok _ escribió: I have a java UNO application that opens an OpenOffice document, and provides the user with a swing UI to manipulate the document. The swing application has a toolbar that provides various mark-up and editing tools that act on the document. I want to enable / disabl

Re: [api-dev] replacing multiple cursors with image

2008-04-04 Thread Atte André Jensen
Atte André Jensen wrote: I think my problems might relate to the advice you gave me last week regarding "repeating part of document". Nope, found the problem to be something completely else, \r\n versus \n: Inside my part-repeating code I extract the text as string from a cursor, and a simpl

Re: [api-dev] Naming a Toolbar Add-On

2008-04-04 Thread Juergen Schmidt
Bernard Marcelly wrote: Message de Tobias Krais date 2008-04-04 10:55 : Hi Ariel, thank you for your help. I tested a lot but had no success... Have a look at the Extension Compiler It may look complex at fir

Re: [api-dev] replacing multiple cursors with image

2008-04-04 Thread Atte André Jensen
Fernand Vanrie wrote: Thanks for your reply! Atte André Jensen wrote: If someone could give a clue to what I',m doing wrong or help me a bit further, I'd greatly appreciate it. No idee, I think my problems might relate to the advice you gave me last week regarding "repeating part of docum

Re: [api-dev] Naming a Toolbar Add-On

2008-04-04 Thread Bernard Marcelly
Message de Tobias Krais date 2008-04-04 10:55 : Hi Ariel, thank you for your help. I tested a lot but had no success... Have a look at the Extension Compiler It may look complex at first sight, but it's easier t

[api-dev] Sending contextual events from OpenOffice to a UNO application

2008-04-04 Thread ashok _
I have a java UNO application that opens an OpenOffice document, and provides the user with a swing UI to manipulate the document. The swing application has a toolbar that provides various mark-up and editing tools that act on the document. I want to enable / disable some of these toolbar actions

Re: [api-dev] Naming a Toolbar Add-On

2008-04-04 Thread Tobias Krais
Hi Ariel, thank you for your help. I tested a lot but had no success... First here the important part of the Addons.xcu: -%<- http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema";>

Re: [api-dev] Tab KeyHandler / Listener

2008-04-04 Thread Juergen Schmidt
Ariel Constenla-Haile wrote: Hi Cor, Cor Nouws escribió: Hi Ariel, Solved, but one question left: b. First I tried com.sun.star.awt.XKeyListener, but addKeyListener seems not to be a method of oView, and I can't see any info why. [...] For adding a key handler, you must use the method addKey

Re: [api-dev] replacing multiple cursors with image

2008-04-04 Thread Fernand Vanrie
Atte André Jensen wrote: Hi I'm trying to replace every occurrence of ###IMGsome_img.png### with the appropriate image (in the above example some_img.png). The following snippet (python) is what I have, although with some successful checking removed. However it only replaces the first of mul