Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


I already asked this question in the forum, but didn't receive any anwsers:

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("",ctx)//
//prop = uno.createUnoStruct("")//
//prop.Name = "nodepath"//
//prop.Value = "/org.openoffice.Office.Common/Misc"//
//config_access = config_provider.createInstanceWithArguments("", (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//

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,

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.