Re: how to get access to the User data through API?
Mathias Bauer <[email protected]>
| Newsgroups | gmane.comp.openoffice.devel.general |
|---|---|
| Message-ID | <[email protected]> |
On 10.03.2011 09:03, Zongbo Zhang wrote: > Hi All, > > Writiing a java app, needs to change the user name, I know it can be manually done through Tools->option->user data. > > Which part of the API has some to do with this? > > Will appreciate your help, Look forward to hearing from you! You need to create a ConfigurationAccess object for the path org.openoffice.UserProfile. The user name is the property "Data/givenname" and "Data/sn" for first and last name. Please have a look at officecfg/registry/schema/org/openoffice/UserProfile.xcs or the UserProfile.xcu in your user profile for information about other properties. Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS Please don't reply to "[email protected]". I use it for the OOo lists and only rarely read other mails sent to it. -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help