Template Changerby André SchnabelThis extension will add a new item to the File - Templates menu that allows to assign a new template to the current document. All styles and formatting will be loaded from that template and the document will behave as it was created using that template. New menu is File - Templates - Assign new... As merging menu items is supported for OOo 2.3 and higher only, there will be a toolbar button to assign a new template. This behaviour has been requested in Issue 52783. The extension itself is localized to Danish, Dutch, English, German, Italian, Russian and Spanish. If there is need for further translations, please send me an email (you should be able to translate about 10 strings to the desired language). License: opensource | Read license Further product information: Product details Provider: André Schnabel
|
||
Comments
i want to use this extension in a macro
i make a new template, than i use the record macro and assign my template with this extension and record nothing !!! can you help me ? tnx
using the extension (code) in a makro
Hi,
the extension actually is a macro. Once you installed the extension, you can use tools - makros - manage - makros ... .Look for the library TemplateChanger. The code you need is in module TemplateChanger - Main.
It should be quite easyto read and adopt the code - it's really no great secret.
As the extension is under LGPL, you can reuse the code according to the license.
André
hi,
yes i find ... :) now i try to make someting with that code, for me its not easy because i dnt now the language ...
tnx
laur
Excellent extension
Using this in a Magazine Editorial department. In the past it was necessary, when getting content from outside sources, to open a new document in the default Editors template, copy the text from the outside source and then Paste Special>Unformatted Text into the new Document.
Now it's simply Open with writer, click "Assign Template" and select.
Brilliant. Thanks Andre
Suggested improvement
When a document is created from a template the Document Properties show which template it is created from. Presumably this is what enables OOo to prompt for style changes in the document when the template's styles are changed.
This extension adds much needed functionality, but it simply deletes the template listed in the document properties, rather than changing it to the new template. It seems to me that the extension would be a lot more effective if it actually changed internally the template on which the document was based.
Connecting to the template
Hi,
the template changer actually does, what you suggest and it does it exactly the way OpenOffice.org operates (what is a little confusing).
1st: In file properties, the Title of the template, not the file name is displayed. So, as long as your template has no Title, this will not be visible in the file's properties.
2nd: OOo loads styles from a changed template only, if the template is in the OOo template paths. This means, it must be either one of OOo's default templates or you need to put it under MyTemplates.
If these conditions are met, but the styles still get not updated, please send me the affected files and I'll have a look.
Template title displays!
Thank you. I have assigned titles to my templates and they now appear!
I have trouble getting it to work
Hi,
I succesfully installed the extension and got the new toolbar. however, when i select 'assign new template' nothing happens. I assume a box must open so you can select a new template.
i am using v 2.3.1 on Windows XP
any help would be appreciated.
Wayne Glover
I had the same problem
I had the same problem. When I downloaded the extension it was a zip file, which I unpacked. I then pointed the extension manager to the .xcu file and got the new toolbar (which did nothing).
I then uninstalled the extension, changed the zip file´s extension to .oxt and installed again. This time it worked fine.
Perhaps the people who maintain the site could change the extension from .zip to .oxt!
.zip or .oxt
The extension actually has an .oxt filename extension. This might be a misconfiguration of the the browser or maybe the server. I'll ask at the extension-site mailing list.
btw. as workaround, you can open the .zip file directly in the extension manager. This way should always work.
Great idea but.............
I've installed but the menu option does not show. Yes, I'm using the latest Openoffice.org version.
NTP
Version ond localization?
Can you tell the exact version of OOo (e.g. if it is a Linux-Distribution version, OOo-Build, Oxygen Office or "original" one) and your localization?
Please verify, if the extension is activated.
Thanks,
André
Extension could not be activate
Hi André
Button "activate" is disabled after installing extension on my Ubuntu 7.04 with OOo 2.2.0.
I did some modification and russification. Now it is work for me.
Check e-mail.
Konstantin.