Page 2 of 2
Re: Changed template, and document keep old styles
Posted: Fri Nov 12, 2021 2:35 pm
by DiGro
Ponny wrote:Aha, I almost forgot. I upgraded OpenOffice from 4.1.10 to 4.1.11 yesterday. Is this fact change any thing?
No, it doesn't.
To make the template inactive you can copy all the text from Fedor.odt to a new empty document.
That will disconnect it from the template and connect it to the standard template that is used for new empty documents.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 10:34 am
by Ponny
I read somewhere, there is manualy way to set connected tempate active or inactive an change connected template. Something about manualy editing some lines in some file in main file. Not sure about anything.
If anybody know this way, please tell mi detailed instruction, which line to chanege and how.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 10:57 am
by Hagar Delest
Indeed, that is what I explained at the beginning of this topic early October (the post with a screenshot).
But why bother with such manual editing when the extension (Template Changer) works perfectly fine? I tried it again and you can deactivate a link to a template and then reactivate if later if needed. It doesn't delete the link at all.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 11:28 am
by Ponny
Because this Template changer killing my files. As result I get enpty file. I can't imagine what I doing wrong with this template changer.
And I read somewhere, this template changer works only in some older version of LibreOfice. I forgot numbers.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 11:45 am
by Hagar Delest
I just tried on 7.2 on my Xubuntu machine and it works fine, and I've adjusted the code on my Windows 10 machine with 7.2 portable (and used it with the previous version 7.0) and no problem at all.
I can't see how it could damage your files.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 12:15 pm
by Ponny
In screen picture in tool extension manager I see only
"assign template" command
but not
make template active or inactive
Now I instaled this Template Changer.
But I realy can't find command to make template active or inactive.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 12:42 pm
by Ponny
Well, there are two commands "Assign template". One for current file and another for whole directory.
I not need this for whole directory.
But the first for curent file is unusable for me.
I not need to change template. Just make it active or inactive.
But this command not exist.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 1:04 pm
by Hagar Delest
See the dialog to change the template for current document:
This is for a document for which I've deactivated the template (hence the first option grayed out).
I can now reactivate it or definitively cut the link.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 1:30 pm
by Ponny
For all devils of this world!
Where you found this dialog.
Maybe I am stupid or crazy, but I can't fint it enywhere.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 1:39 pm
by Hagar Delest
See the screenshot is
this post of this topic. It should be the same in AOO.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 2:23 pm
by Ponny
Aha. I see. In OpenOffice 4.1.11 is:
In File / Template is:
Organise
Source of the adress book
Save
Edit
Assign template (current document)
Assign template (folder)
That's all
Maybe in LibreOffice is different.
Re: Changed template, and document keep old styles
Posted: Sat Nov 13, 2021 3:19 pm
by Hagar Delest
It has not been updated since a long time, it may explain the difference.
I were you I would switch to LibreOffice.
The latest extension version is:
https://extensions.libreoffice.org/en/e ... te-changer
Re: Changed template, and document keep old styles
Posted: Sun Nov 14, 2021 4:11 am
by Bill
There is a macro here that is supposed to detach a document from a template (I haven't tested it):
Issue 121304 - Allow detaching a document from the template that was used to create it
Re: [Solved] Changed template, and document keep old styles
Posted: Tue Nov 16, 2021 3:59 pm
by Ponny
Sehr interessant test.
In LibreOffice I can deactivate connected template.
But Open Office stil ask me then, if I want to update styles or keep old styles.
Template is deactivated , but OpenOffice ignoring this data.
I guess.
Re: [Solved] Changed template, and document keep old styles
Posted: Sat Jan 22, 2022 4:07 am
by YODA
OpenOffice will still ask you because you only deactivated the template in LibreOffice, OpenOffice does not know that.