[Solved] Changed template, and document keep old styles

Using them, Making them, Finding them
User avatar
DiGro
Posts: 173
Joined: Mon Oct 08, 2007 1:31 am
Location: Hoorn NH, The Netherlands

Re: Changed template, and document keep old styles

Post 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.
Attachments
Fedor_no template.odt
Fedor.odt copied to a new empty document
(34.08 KiB) Downloaded 398 times
____________
DiGro

AOO 4.1.15 (Dutch) on Windows 11. Scanned with Ziggo Safe Online (F-Secure)
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Changed template, and document keep old styles

Post 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.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Changed template, and document keep old styles

Post 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.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Changed template, and document keep old styles

Post by Hagar Delest »

See the dialog to change the template for current document:
Template changer.png
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.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Changed template, and document keep old styles

Post by Hagar Delest »

See the screenshot is this post of this topic. It should be the same in AOO.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Changed template, and document keep old styles

Post 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
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Bill
Volunteer
Posts: 8932
Joined: Sat Nov 24, 2007 6:48 am

Re: Changed template, and document keep old styles

Post 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
AOO 4.1.14 on Ubuntu MATE 22.04
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: [Solved] Changed template, and document keep old styles

Post 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.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
YODA
Posts: 65
Joined: Fri Aug 10, 2018 4:06 am

Re: [Solved] Changed template, and document keep old styles

Post by YODA »

OpenOffice will still ask you because you only deactivated the template in LibreOffice, OpenOffice does not know that.
Openoffice4.16 on windows 10 Libreoffice Version: 6.1.3.2 (x64)
Post Reply