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=Content&pa=showpage&pid=9

Le livre de référence 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: [... Didier Dorange-Pattoret
    • ... Carsten Driesner
    • ... Carsten Driesner
    • ... Carsten Driesner - Sun Germany - ham02 - Hamburg - Software Engineer
      • ... Laurent Godard
    • ... Carsten Driesner - Sun Germany - ham02 - Hamburg - Software Engineer
      • ... Laurent Godard

Reply via email to