Hi Carsten, Alle 10:55, mercoledì 19 aprile 2006, Carsten Driesner ha scritto: > Hi all, > > Some developers ask about using complex toolbar controls (like a > combobox, edit field, ...) with their add-on. Currently there is only a > expensive way to use them. I created a technical paper how we can > support complex toolbar controls for add-ons much easier. Please read > the paper and give feedback. I hope that at least most of the controls > can be ready for OOo 2.0.3. > > Regards, > Carsten Driesner > > Technical paper URL: > http://framework.openoffice.org/files/documents/25/3310/file_3310.dat?filen >ame=Technical%20concept%20paper%20%2d%20Generic%20and%20easy%20to%20use%20co >mplex%20tool%20bar%20controls%20for%20add%2dons%2eodt
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 com.sun.star.frame.XDispatch / com.sun.star.frame.XStatusListener. """ I guess that this will prevent the use of this feature from StarBasic developers, am I wrong ? In this case, wouldn't be possible to add also a "static" management, directly from addons.xcu ? In other words, if I could specify directly into addons.xcu not only the control type but also its properties and command url's, in most cases I could avoid the dispatch mechanism. pseudo XML example : <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office"> <node oor:name="AddonUI"> ... ... <node oor:name="OfficeToolBar"> <node oor:name="org.openoffice.Office.blah.blah" oor:op="replace"> <node oor:name="tlb01" oor:op="replace"> <prop oor:name="URL" oor:type="xs:string"/> <prop oor:name="ControlType" oor:type="xs:string"> <value>ToggleButton/value> </prop> <prop oor:name="CommandURL.statusChanged" oor:type="xs:string"> <value>macro:///blah.blah.statusChanged(oEvent)</value> </prop> <prop oor:name="Title" oor:type="xs:string"> <value xml:lang="en-US">click here</value> <value xml:lang="it">clicca qui</value> </prop> <prop oor:name="Target" oor:type="xs:string"> <value>_self</value> </prop> <prop oor:name="Context" oor:type="xs:string"/> </node> ... ... best regards Paolo Mantovani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]