Hi,

I already asked this question in the forum, but didn't receive any anwsers:
https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=77289


Provided that there is a theme called "Dark Blue" in the galery folder on disk, I can set a new Persona theme in LO by this code:

/config_provider = smgr.createInstanceWithContext("com.sun.star.configuration.ConfigurationProvider",ctx)//
//
//prop = uno.createUnoStruct("com.sun.star.beans.PropertyValue")//
//prop.Name = "nodepath"//
//prop.Value = "/org.openoffice.Office.Common/Misc"//
////
//config_access = config_provider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess", (prop,))//
////
//persona = config_access.PersonaSettings//
//
//values = persona.split(';')//
//values[0] = 'Dark Blue/Header.png'//
//values[1] = 'Dark Blue/Footer.png'//
//values[2] = '#ff0000' # red//
//value = ';'.join(values)//
//config_access.PersonaSettings = value//
////
//config_access.commitChanges()/


Is there a way to make the changes visible without restarting Office? Like it is done, when I use a Persona theme from the option menu in LO?

Thanks for any help,
Xaver

--
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to