Re: [api-dev] OfficeToolbar titlebar?
Hi Carsten Thanks for your response The title settings will be ignored as older version use a different resource URL schema for add-on toolbars. Therefore no problem with an older 2.0.x version. yes, this was obvious, but i wanted a confirmation to make things clear thanks Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OfficeToolbar titlebar?
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 see anything in the dev guide. Hi Tim, 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. Regards, Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [api-dev] OfficeToolbar titlebar?
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 compatible with Ooo 2.0. Tim Tim Tow Applied OLAP, Inc 256.990.0136 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OfficeToolbar titlebar?
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 oAddon = oConfigAccess.getByName( "private:resource/toolbar/addon_1") oAddon.UIName = "Essbase" oConfigAccess.commitChanges() Function GetConfigAccess( ByVal cNodePath As String,ByVal bWriteAccess As Boolean,Optional bEnableSync,Optional bLazyWrite) As Object If IsMissing(bEnableSync) Then bEnableSync = True If IsMissing( bLazyWrite ) Then bLazyWrite = False Dim oConfigProvider, oConfigAccess as Object oConfigProvider = GetProcessServiceManager.createInstanceWithArguments("com.sun.star.configuration.ConfigurationProvider",Array( MakePropertyValue( "enableasync", bEnableSync))) If bWriteAccess Then cServiceName = "com.sun.star.configuration.ConfigurationUpdateAccess" Else cServiceName = "com.sun.star.configuration.ConfigurationAccess" EndIf oConfigAccess = oConfigProvider.createInstanceWithArguments( cServiceName, Array( MakePropertyValue( "nodepath", cNodePath ), MakePropertyValue( "lazywrite", bLazyWrite ))) GetConfigAccess() = oConfigAccess End Function Tim Tow a crit: 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 see anything in the dev guide. Tim Tim Tow Applied OLAP, Inc 256.990.0136 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Didier Dorange-Pattoret http://www.dmaths.org http://sesamath.net S'inscrire la liste de diffusion de dmaths: [EMAIL PROTECTED] Ses archives: http://listes.dmaths.org/wws/arc/users Les Forums: http://www.dmaths.org/modules.php?name=Forums Mailing List in english: http://www.dmaths.org/modules.php?name=Contentpa=showpagepid=9 Le livre de rfrence pour OpenOffice.org2 : http://www.amazon.fr/exec/obidos/ASIN/2212116381/dmaths-21 Programmation OpenOffice.org2 : http://www.amazon.fr/exec/obidos/ASIN/2212117639/dmaths-21
Re: [api-dev] OfficeToolbar titlebar?
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( private:resource/toolbar/addon_1) Then oAddon = oConfigAccess.getByName( private:resource/toolbar/addon_1) oAddon.UIName = Essbase oConfigAccess.commitChanges() Function GetConfigAccess( ByVal cNodePath As String,ByVal bWriteAccess As Boolean,Optional bEnableSync,Optional bLazyWrite) As Object If IsMissing(bEnableSync) Then bEnableSync = True If IsMissing( bLazyWrite ) Then bLazyWrite = False Dim oConfigProvider, oConfigAccess as Object oConfigProvider = GetProcessServiceManager.createInstanceWithArguments(com.sun.star.configuration.ConfigurationProvider,Array( MakePropertyValue( enableasync, bEnableSync))) If bWriteAccess Then cServiceName = com.sun.star.configuration.ConfigurationUpdateAccess Else cServiceName = com.sun.star.configuration.ConfigurationAccess EndIf oConfigAccess = oConfigProvider.createInstanceWithArguments( cServiceName, Array( MakePropertyValue( nodepath, cNodePath ), MakePropertyValue( lazywrite, bLazyWrite ))) GetConfigAccess() = oConfigAccess End Function Hi Didier, your solution can only work if you install exactly one add-on. You have to know which add-on you are, which is not really possible. We have another problem with the entries in the AppModuleWindowState configuration. The order of add-on toolbars is not persistent and can change when you install another add-on. So your add-on_1 can become add-on_2!. We also hope to fix this for OOo 2.0.3 where we want to use the Node name in the Addon.xcu to have unique entries in the WindowState configuration. Regards, Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]