Hello Fernand,

> the my code is now somthing like:
> 
> Sub ChangeSystemLanguage
> dim aArgs(0) as  Object
> dim aPropValue as new  com.sun.star.beans.PropertyValue
> 
> xconfig = 
> createunoservice("com.sun.star.configuration.ConfigurationProvider")
> aPropValue.Name = "nodepath"
> aPropValue.Value = "org.openoffice.Office.Linguistic"
> aArgs(0) = aPropValue
> 
> 
> xAccess = 
> xconfig.createinstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess",aArgs())
> 
>  slocale = xAccess.General.defaultLocale
>  sLocale = "nl-BE"
>  xAccess.General.defaultLocale = slocale
>  xAccess.commitchanges
> End Sub
> 
> but how can i reset the "for current document only" setting
> 
> i must looked over it, can simply not find this setting in the "xaccess" 
> object structure
> 
> maybe you can help me out ?

A little experiment showed that the value for "current document only" is
not persistent when restarting the Office. Thus it is most likely that
there is no respective setting in the configuration, and therefore you
can't change it's value via API.

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to