XDocumentTemplates behaviour

Rafael Dominguez venccsralph at gmail.com
Wed Apr 10 16:17:56 PDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130410/07bcbc84/attachment.html>


More information about the LibreOffice mailing list