Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-16 Thread Mathias Bauer
Laurent Godard wrote: Hi Carsten Just for your infomration. The new toolbar controller enhancements are not a com.sun.star.awt substitution. The implementation is deeply integrated into the Office framework and therefore cannot support the same feature set as low-level awt controls! Most

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-16 Thread Mathias Bauer
Laurent Godard wrote: Hi Mathias Hm, listeners can be registered by another macro, that itself can by started by an event - and the listeners themselves are called by the event source. Or what do you mean? how is the first macro called ? Event bindings, jobs ... regarding, the scope,

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-16 Thread Mathias Bauer
Laurent Godard wrote: The only problem then will be to identify the dispatch object amongst the bunch of them that might have been created, but as we can make frame and command URL accessible to the listener (implemented in Basic) we can use the combination of both as a unique identifier for

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-15 Thread Carsten Driesner - Sun Germany - ham02 - Hamburg - Software Engineer
Paolo Mantovani wrote On 05/14/06 23:54,: Just a small addition: Of course, holding a reference of the listener into a global variable is a good thing, (especially when you need to de-register it at latter time), anyway, the listener survives even if you don't store it in a global var: AFAIK

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-15 Thread Laurent Godard
Hi Mathias Hm, listeners can be registered by another macro, that itself can by started by an event - and the listeners themselves are called by the event source. Or what do you mean? how is the first macro called ? The problem with global variables is that they are, well, global. If you

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-15 Thread Carsten Driesner - Sun Germany - ham02 - Hamburg - Software Engineer
Laurent Godard wrote On 05/15/06 11:20,: Hi Mathias Hm, listeners can be registered by another macro, that itself can by started by an event - and the listeners themselves are called by the event source. Or what do you mean? how is the first macro called ? The problem with global

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-15 Thread Laurent Godard
Hi Carsten Just for your infomration. The new toolbar controller enhancements are not a com.sun.star.awt substitution. The implementation is deeply integrated into the Office framework and therefore cannot support the same feature set as low-level awt controls! Most functions are supported

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-15 Thread Mathias Bauer
Hi Paolo, Paolo Mantovani wrote: Just a small addition: Of course, holding a reference of the listener into a global variable is a good thing, (especially when you need to de-register it at latter time), anyway, the listener survives even if you don't store it in a global var: AFAIK a

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-15 Thread Laurent Godard
Hi Mathias This morning I had another idea that might solve the other problems: if we use a dispatch object service as a relay between the UI elements and the basic code as I proposed we also can use this object as a storage for data associated to this connection, e.g. by providing a property

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-14 Thread Laurent Godard
Hi Mathias Thanks for your response Perhaps instead of macro event bindings we could use listeners as Basic is able to implement them? But I'm not sure wether listeners implemented in Basic will survive the termination of the macro that registers them. But you or Paolo as Basic experts know, I

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-14 Thread Mathias Bauer
Laurent Godard wrote: Hi Mathias Thanks for your response Perhaps instead of macro event bindings we could use listeners as Basic is able to implement them? But I'm not sure wether listeners implemented in Basic will survive the termination of the macro that registers them. But you or

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-14 Thread Paolo Mantovani
Hi Laurent, Alle 08:37, domenica 14 maggio 2006, Laurent Godard ha scritto: Hi Mathias Thanks for your response Perhaps instead of macro event bindings we could use listeners as Basic is able to implement them? But I'm not sure wether listeners implemented in Basic will survive the

[api-dev] Easy to use complex toolbar controls for add-ons

2006-05-10 Thread Carsten Driesner
Hi all, I have just finished the technical specification for Easy to use complex toolbar controls for add-ons. The latest OpenOffice.org developer build (SRC680m168) includes most of the specified controls. All missing controls will be part of OOo 2.0.4. I also created a demo add-on which

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-10 Thread Laurent Godard
Hi Carsten Thansk a lot for all if these very interresting features I hope that this enhancement will enable more people to create better add-ons. Questions and comments are welcome. i red rapidelly but is it possible to implement the reactors of objects in Basic ?It seems to me that

Re: [api-dev] Easy to use complex toolbar controls for add-ons

2006-05-10 Thread Mathias Bauer
Laurent Godard wrote: i red rapidelly but is it possible to implement the reactors of objects in Basic ?It seems to me that Paolo already asked something like this, no ? a way could be a generic service taking the macro name as argument and doing a transparent relay. Would it be difficult