In LibreOffice 4.0.0 it is no longer possible to assign current document to different template.
In LO 3.6 and earlier we had two options:
- copy styles from template to current document → regression reported as https://bugs.freedesktop.org/show_bug.cgi?id=60589
- use Template Changer extension (http://extensions.libreoffice.org/extension-center/template-changer). Due to removal of File → Templates menu item, this extension no longer works (perhaps it can be invoked from Macro window, though).
We are left only with "Load styles" option in Stylist, but it is available only for Writer (no Calc and Draw; Impress has it's own Master Slides import tool).
What would be great is new button in File → Properties → General tab. At the bottom of this window is "Template" field. On it's right could be button "change template" which would fire up new template manager. After selecting template, document would be assigned to it.
We are not responsible for extensions maintenance. Please contact the maintainer to have the extension updated (or fix it yourself).
On the LibreOffice side, this is an interesting enhancement I was planning for later (not related to template manager though)
Ah, I did not read that detail in original report " ... extension no longer works"
So this one should be changed
Can you please add versions you tested successfully with this extensions in a comment on Extensions Repository?
Please submit a separate bug if there is an other problem not related to the extension.
Are you planning to contribute an update for this Extension?
Template Changer extension does not work due to two changes in 4.0.0:
- removal of Files → Template menu (extension has nowhere to register it's items)
- removal of XDocumentInfo API, which it uses.
Running extensions Main function from Macros window ends up with error message: "Could not find property or method: DocumentInfo"
(actual message may be a bit different, because I had to translate it from Polish).
I have created enhancement request for ability to change template of current document:
I have also posted comment on extension page:
(In reply to comment #4)
> Template Changer extension does not work due to two changes in 4.0.0:
> - removal of Files → Template menu (extension has nowhere to register it's
> - removal of XDocumentInfo API, which it uses.
> Running extensions Main function from Macros window ends up with error
> message: "Could not find property or method: DocumentInfo"
> (actual message may be a bit different, because I had to translate it from
This is because the extension uses the deprecated XDocumentInfo interface. Again, this is work to be handled on the extension side.
Closing the bug as there is a separate enhancement request for the Template change and the rest is only for an extension update.
I hardly have time to take care - but actually the extension is LGPL.
Information to start a change from the extension website comments:
The deprecated XDocumentInfo and related UNO interfaces were removed (core commit e6f81b1898a59280f41177206b777a7a0d32f3fc). The replacement XDocumentProperties is available since OpenOffice.org 3.0 (interface announcement).
The missing Files - templates menu should be a minor issue (just pick another menu node to plug in)
*** Bug 60989 has been marked as a duplicate of this bug. ***
This beta release contains the necessary fixes for LibreOffice 4.0. The menus have been moved to File » Send: http://numbertext.org/tmp/template-changer-1.2.7b.oxt
*** Bug 71746 has been marked as a duplicate of this bug. ***
The version 1.2.7b tested on LO 188.8.131.52 and 184.108.40.206 and works fine.
The only issue is that the menu is in a wrong place (Send to...)
Created attachment 103039 [details]
New version of Template Changer
New version of Template Changer that resides under Files/Templates.
Since LibreOffice 4.4 Template Changer stopped working.
220.127.116.11 ppa Xubuntu 14.10: attachment 103039 [details] works.
@13 True. It was an error in my profile. Deleting my profile fixed it for me. I'm sorry for not reporting it back here. So template-changer-1.2.7c.oxt works with version 4.4.0 and 4.4.1.
People are still pointed to http://extensions.libreoffice.org/extension-center/template-changer and that version does not work.
http://bugs.documentfoundation.org/attachment.cgi?id=103039 works fine, is it possible to publish it at extension-center?
Created attachment 128049 [details]
Adapted to the menu layout changes in Libreoffice 5.2
Commit 384c75b7e8b50a64a1c0e8fd1ffef1350e2522d2 by Akshay Deep on June 11th changed the menu layout a bit. That's why I created a version 1.2.6d to reflect these changes. I guess it's a matter of personal taste, but I feel these menu options are better suited below "Manage Templates".
Uhmm version 1.2.7d it is.
(In reply to Patrick Smits from comment #17)
> Uhmm version 1.2.7d it is.
Using LO 5.2.3 on Mac OS X 10.11.6
I cannot install this extension because of Bug 99784.
It isn't clear to me the appropriate place to report defects found with the Template Changer extension v1.2.7d or others. Patrick, are you now the maintainer?
(This functionality should be part of the core LibreOffice, rather than requiring an extension...)
Hi Smith Kennedy,
Andre was the author of the extension, I merely fixed some bugs that were related to where the extension was located in the File-menu. That's why I didn't change the copyright notice. I will keep fixing things as long as I can.
I do agree though, that this should be in LibreOffice by default.
@Patrick: Do you know if 1.2.7d works with AOo 4.x? I'm on the verge of moving to Libre Office as my MS Office alternative but am loathe to risk existing documents (am very risk-averse). Am installing Lo today in any case.
I agree that this should be part of Lo (AOo folks call it Trivial... sigh) but if the extension works I'm happy.
(In reply to Patrick Smits from comment #16)
> Created attachment 128049 [details]
> Adapted to the menu layout changes in Libreoffice 5.2
Patrick: Since I updated to your version 1.2.7d I encounter the problem that the chapter numbering is set back to 1 after assigning a template. Chapter (outline) numbering should be ignored with the template changer as it's not part of a style.
There's a new extension "DocumentTemplateChanger" (published more than a year ago) which should be able to replace this one. Unfortunately, it's not to be found via a search in the new extensions site (though it was there in the old one), I hope temporarily. I can send it to you directly, point at my name to see my mail address and sent me a message.