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


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: users+unsubscribe@global.libreoffice.org
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

Context


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.