[Libreoffice-bugs] [Bug 50699] Template Changer: Allow ability to change a document's associated template

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 25 23:17:27 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=50699

--- Comment #77 from Gerhard Weydt <gerhard.weydt at t-online.de> ---
(In reply to John from comment #76)
> (In reply to Gerhard Weydt from comment #75)
> 
> > Second
> 
> I mean that it could be used as a workaround: instead of trying to change
> the template of the existing document:
> 
> 1. create a new document associated with the required template
> 2. replace the contents of the new document with the contents of the old
> document (Select All > Cut > Paste).
> 
> I'm not going to say that this workaround is really good.
> 
> * First of all, it's not very quick and intuitive.
> * Also, the meta-information will be lost (File > Properties > Description).
> 
> These two pitfalls weren't visible for me when I posted my previous message.
> And therefore I was sure that the described workaround is much better. Now I
> changed my mind.
> 
> > Third
> 
> Yes, you are correct. I mean that in this case the template should be
> launched using general-purpose file manager.

To deal with your last two lines quickly: I still don't understand that,
because the aim is to use no template or to cut the link to a used template, so
why should there be the need to "launch" (whatever that means) a template?

But the main point is, and perhaps you missed it because you stopped reading
somewhere, as you confessed: There is an extension doing all that is asked for,
see comment 68. The workaround to create a new document based on the new
template and then cpoying the content of the previous document does work, but
it requires some work. I first thought that no great problem, when I stumbled
over the bug report, but people reported problems with broken links (see
comments 62 and following), so I realized that this could be a lot of work if
many documents were afffected.
There was an older extension which did not work any longer, due to some
technical reason, and the author could not be reached. So I decided to create a
new extension, after I had been convinced that there was a need for it. I don't
know for the moment how much I relied on his code.
The extension allows to link another template to an existing document (changing
the appearance whereever changed styles are concerned), to cut the link to the
template (i. e. disregard present and future changes to the template, which is
, as I assume now without additional testing, the same as renouncing to update
a document with respect to the template when opening it), to reactivate this
link (there is no function for that in standard LibO), and to deelete the link,
leaving the document as permanently stand-alone without template (again there's
no LibO function.
So I think there is no need for thinking about workarounds. The extension seems
to work, as 14 persons voted it up and no one voted it down; a big number of
votes should not be expected for such a special feature.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191025/c7f48a5d/attachment.html>


More information about the Libreoffice-bugs mailing list