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


Some new findings, it seems I was wrong about USE_CONFIG not working it actually does work, partially. The USE_CONFIG-flag is supposed to show a security dialog if the security setting is Medium. At least that is how I interpret http://api.libreoffice.org/docs/common/ref/com/sun/star/document/MacroExecMode.html#USE_CONFIG. Besides that issue everything seems OK.

I will try to create a patch that uses USE_CONFIG and hopefully find some time to see if I can get the flag to work as specified, that task may very well be way over my head though.

Regards,
Niklas Johansson

Niklas Johansson skrev 2013-02-27 18:53:
Hi, I'm trying to look into an issue with the new template manager. The new manager doesn't respect macro security settings and always opens every document with macros disabled. If I've read the code correctly I believe that the old code used a dispatch to open the templates while the new implementation uses loadComponentFromURL.

The dispatch service takes care of checking macro security etc while you need to explicitly tell loadComponentFromURL if macros should be allowed. I did do a simple test building MacroExcecutionMode set to USE_CONFIG which didn't really have any effect (probably me messing something up). Something that did give effect was setting the same value to ALWAYS_EXECUTE_NO_WARN, but sadly that isn't what we want either.

Basically I want to know if you think it would be a good idea to go back to a dispatch type of handling or not. I'm a bit worried that it might mess with the CMIS integration.

I believe this is the new method that opens templates
http://opengrok.libreoffice.org/xref/core/sfx2/source/doc/templatedlg.cxx#673

I believe this was the method (which also took care of the previewing templates in the manager) http://opengrok.libreoffice.org/xref/core/svtools/source/contnr/templwin.cxx#685



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.