Re: [api-dev] NodePath-name for LanguageSettings

2007-09-06 Thread Fernand Vanrie

Mathias Bauer wrote:

Fernand Vanrie wrote:

  
Ok: after installing the latest stable version under Windows i can be 
concusif:


The Language settings are lost after changing them wit the UI and with 
the API and closing the quickstarter or when working without the 
quickqstarter


on the other hand Its posible to store the settings par Document  using 
only for current doc and saving  the document with this setting or 
using the APi (oDoc..DeaualtLocale =  ne-BE


Is this a bug or is it wanted behaviour under 2.2 ?



I'm not sure if I understand. You have set the locale for the current
document only. You discover that the setting was indeed applied to and
stored with the document. You also discovered that no other document was
influenced by this setting if you select for the current document
only. That sounds like works as designed.

Or do you observe that the language setting is not persistent even if
you make it for all documents? That would be a bug.
  

OK i sumit a issue
btw.  when  using the API  the  changes maded to  defaultLocale  are 
also not persistent



  
I am still pusseled from where the instalation wizard found out that i 
am a dutch-Belgium  user because that's the setting after a new 
instalation, and inposible to changes this setting.



If no locale is set on OOo's first start AFAIK that it is taken from and
set to the value of the operating system. But it may be more complicated.
  

must be:-)
  
I now suppose  OO find this setting in the famous default doc where 
also the default-styles are stored. I try now to changes the default-doc 
and see if i can changes the default-Languages Settings this way



The document language indeed is taken from the default paragraph style
  
wher can i alter this default paragraph style ? years ago there was 
somewhere a template hiden, but at pressent it seems to be stored 
somewhere in the configuraton ?

(that shouldn't be mixed up with the paragraph style named Default)
that is stored along with every document. The setting for all
documents 




is taken from the configuration.
  

and altered with basic-code 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



Ciao,
Mathias

  


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



Re: [api-dev] NodePath-name for LanguageSettings

2007-09-05 Thread Thomas Lange - Sun Germany - ham02 - Hamburg
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]



Re: [api-dev] NodePath-name for LanguageSettings

2007-09-05 Thread Fernand Vanrie

Thomas Lange - Sun Germany - ham02 - Hamburg wrote:

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
  

Thomas thanks for this reply,

In the mean time i came to the same conclusion,
In fact I think :-) that using the for curreent doc only has an effect 
AFTER saving the doc

and must be an equivalent for
changing odoc.charlocal via the api

But befo a can be conslusif about this behaviour  i have to resolve a 
other problem: the code changing the DefaultLocale is working but the 
changes maded , disapear  after i close the Quickstarter, so all changes 
are done in memory.,
I just found that i gave the same problem when do the changes with the 
UI I now downlaoding the lattest stable to be sure its not due to my 
installed version (2.2.0)

an will continue the testing
I come back with my findings

Greetz

Fernand

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


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



Re: [api-dev] NodePath-name for LanguageSettings

2007-09-05 Thread Fernand Vanrie
Ok: after installing the latest stable version under Windows i can be 
concusif:


The Language settings are lost after changing them wit the UI and with 
the API and closing the quickstarter or when working without the 
quickqstarter


on the other hand Its posible to store the settings par Document  using 
only for current doc and saving  the document with this setting or 
using the APi (oDoc..DeaualtLocale =  ne-BE


Is this a bug or is it wanted behaviour under 2.2 ?

I am still pusseled from where the instalation wizard found out that i 
am a dutch-Belgium  user because that's the setting after a new 
instalation, and inposible to changes this setting.


I now suppose  OO find this setting in the famous default doc where 
also the default-styles are stored. I try now to changes the default-doc 
and see if i can changes the default-Languages Settings this way


Fernand


Fernand Vanrie wrote:

Thomas Lange - Sun Germany - ham02 - Hamburg wrote:

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
  

Thomas thanks for this reply,

In the mean time i came to the same conclusion,
In fact I think :-) that using the for curreent doc only has an 
effect AFTER saving the doc

and must be an equivalent for
changing odoc.charlocal via the api

But befo a can be conslusif about this behaviour  i have to resolve a 
other problem: the code changing the DefaultLocale is working but the 
changes maded , disapear  after i close the Quickstarter, so all 
changes are done in memory.,
I just found that i gave the same problem when do the changes with the 
UI I now downlaoding the lattest stable to be sure its not due to my 
installed version (2.2.0)

an will continue the testing
I come back with my findings

Greetz

Fernand

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


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


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



[api-dev] NodePath-name for LanguageSettings

2007-09-04 Thread Fernand Vanrie
For changing the 'use of systemdialogs i found somewher the correct 
name of the Nodpath

and used in basic coding like:

xconfig = 
createunoservice(com.sun.star.configuration.ConfigurationProvider)

aPropValue.Name = nodepath
aPropValue.Value = org.openoffice.Office.Common/Misc
aArgs(0) = aPropValue

wher can i find the nodepath-name for changing the LanguagesStettings 
in OO



thanks for any hint

Fernand

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



Re: [api-dev] NodePath-name for LanguageSettings

2007-09-04 Thread Thomas Lange - Sun Germany - ham02 - Hamburg

Hello Fernand,

Should be sth. like org.openoffice.Office.Linguistic.
See share\registry\data\org\openoffice\Office\Linguistic.xcu

Thomas


 For changing the 'use of systemdialogs i found somewher the correct 
 name of the Nodpath
  and used in basic coding like:
 
 xconfig = 
 createunoservice(com.sun.star.configuration.ConfigurationProvider)
 aPropValue.Name = nodepath
 aPropValue.Value = org.openoffice.Office.Common/Misc
 aArgs(0) = aPropValue
 
 wher can i find the nodepath-name for changing the LanguagesStettings 
 in OO
 
 
 thanks for any hint
 
 Fernand
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: [api-dev] NodePath-name for LanguageSettings

2007-09-04 Thread Fernand Vanrie

Thomas Lange - Sun Germany - ham02 - Hamburg wrote:

Thomas,
thanks a lot

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 ?

greetz
Fernand

Hello Fernand,

Should be sth. like org.openoffice.Office.Linguistic.
See share\registry\data\org\openoffice\Office\Linguistic.xcu

Thomas


  
For changing the 'use of systemdialogs i found somewher the correct 
name of the Nodpath

 and used in basic coding like:

xconfig = 
createunoservice(com.sun.star.configuration.ConfigurationProvider)

aPropValue.Name = nodepath
aPropValue.Value = org.openoffice.Office.Common/Misc
aArgs(0) = aPropValue

wher can i find the nodepath-name for changing the LanguagesStettings 
in OO



thanks for any hint

Fernand

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




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


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