Im working on the new template manager dialog and i got a problem when
saving a a new blank document as a template, i use the storeTemplate method
of XDocumentTemplates class, but it doesnt update the document URL, so
after a while checking the problem i found that the issue is that
XDocumentTemplates calls storeToURL method of XStorage class instead of
storeAsURL as the save command.
So my question is that is it possible to change the behaviour of
storeTemplate to call storeAsURL instead of storeToURL? or is there any
workaround i can use to fix the problem??
PS: The only code where this is used besides Template manager is in
http://opengrok.libreoffice.org/xref/core/sfx2/source/doc/doctempl.cxx#879but
im not sure if thats active or not and it might have an impact on
extensions using the method but i think it wont be problematic since it
will just update the document URL info and the document frame if you have
it currently opened, which is just reflecting the action you did, so i
think no harm there.
Thanks
Context
- XDocumentTemplates behaviour · Rafael Dominguez
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.