[api-dev] creating non-modal dialog

2006-04-20 Thread Tuomas Räsänen
Hi, My goal is to create a non-modal dialog to replace default Styles and Formatting - dialog. MyDialog contains a listbox for styles just like the Style and Formatting - dialog. I would appreciate your opinion about the way I have done this dialog. There is also a problem: this dialog

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

2006-04-20 Thread Carsten Driesner
Paolo Mantovani wrote: Hi Carsten, This is really great, but I've just one question: In your tecnical specification I read: Every add-on which wants to support a toolbar must be a dispatch provider. Therefore one communication protocol for the new controls will be the normal duo

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

2006-04-20 Thread Paolo Mantovani
Alle 09:44, giovedì 20 aprile 2006, Carsten Driesner ha scritto: [...] Hi Paolo, I see your point and want to discuss your proposal with the scripting developer. I will add more information after this discussion. Great! thank you! Currently I see some problems regarding your proposed

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

2006-04-20 Thread Mathias Bauer
Paolo Mantovani wrote: I must admit that I don't understand this problem. In the current addon's implementation, the toolbar-button calls the macro specified in the URL field, without to pass the frame reference. (at least AFAIK) From the side of the static code, you can use

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

2006-04-20 Thread Carsten Driesner
Paolo Mantovani wrote: Alle 09:44, giovedì 20 aprile 2006, Carsten Driesner ha scritto: [...] Hi Paolo, I see your point and want to discuss your proposal with the scripting developer. I will add more information after this discussion. Great! thank you! Currently I see some problems

Re: [api-dev] OfficeToolbar titlebar?

2006-04-20 Thread Carsten Driesner
Tim Tow wrote: In my Essbase addon, I have a custom toolbar that now works properly. However, if the users undocks the toolbar and drags it down into it's own window. The title bar on the resultant window is 'Add-on 1'. Is there a way I can customize that title bar to say 'Essbase'? I didn't

RE: [api-dev] OfficeToolbar titlebar?

2006-04-20 Thread Tim Tow
This is currently not really possible (there is only a ugly and complex way), but we want to support this for OOo 2.0.3. If you can wait for OOo 2.0.3 you can easily set it with the Addon.xcu file. I will put it in when it is easy as long as the addons.xcu with the new info is backward

Re: [api-dev] OfficeToolbar titlebar?

2006-04-20 Thread Didier Dorange-Pattoret
Hello Tim, I hope that this code will work for you ... :-) The user have to restart OOo, included quickstarter. oConfigAccess = GetConfigAccess( "/org.openoffice.Office.UI.WriterWindowState/UIElements/States", True ) If oConfigAccess.HasByName( "private:resource/toolbar/addon_1") Then

Re: [api-dev] OfficeToolbar titlebar?

2006-04-20 Thread Carsten Driesner
Didier Dorange-Pattoret wrote: Hello Tim, I hope that this code will work for you ... :-) The user have to restart OOo, included quickstarter. oConfigAccess = GetConfigAccess( /org.openoffice.Office.UI.WriterWindowState/UIElements/States, True ) If oConfigAccess.HasByName(

Re: [api-dev] creating non-modal dialog

2006-04-20 Thread Paolo Mantovani
Hi Laurent, Alle 13:58, giovedì 20 aprile 2006, Laurent Godard ha scritto: Hi Paolo It sounds quite strange to me that a UNOControlDialog behaves as non-modal. a hack iirc is to set the visible property to true do not use execute but loop over a global boolean to detect a stop set do