Bonjour,

J'ai téléchargé pour test la version 3.3.1 beta de OOo
J'ai trouvé deux problèmes gênants non rencontré avec OOo<=3.2.1 :
- le gestionnaire des extensions plante lorsque j'installe un addon .oxt,
- la fonction ci-dessous plante en disant que "enableasync" 'est pas un
paramètre valide.
S'agit-il de bugs ?

Merci.

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

'----------
'    Create and return a new com.sun.star.beans.PropertyValue.
'
Function MakePropertyValue( Optional cName As String, Optional uValue )
As com.sun.star.beans.PropertyValue
    Dim oPropertyValue As New com.sun.star.beans.PropertyValue
    If Not IsMissing( cName ) Then
        oPropertyValue.Name = cName
    EndIf
    If Not IsMissing( uValue ) Then
        oPropertyValue.Value = uValue
    EndIf
    MakePropertyValue() = oPropertyValue
End Function

-- 
Didier Dorange-Pattoret



Soutenez le projet Dmaths : rejoignez le club ou faites adhérer votre 
établissement !




---------------------------------------------------------------------
To unsubscribe, e-mail: prog-unsubscr...@fr.openoffice.org
For additional commands, e-mail: prog-h...@fr.openoffice.org

Répondre à