Thomas Kashofer wrote: > Hi guys, > > not a pure dev question, but way to deep for any manual. > > I have a problem with the document templates and the hierarchy they use. > > I just read the 0210WG-WorkingWithTemplatesInWriter.pdf > (http://documentation.openoffice.org/manuals/oooauthors/), but nothing > is said about document template hierarchies (and I could not find any > other documentation on that subject). > > In some German wiki (http://www.ooowiki.de/DokumentVorlagen) I read a > small paragraph (way at the bottom), where it was stated, that every > template knows its "predecessor" (but I could not find anything in the > XML files of the child-template .ott). This way it shall be possible to > create a template hierarchy, where you can propagate changes from a > "master-template" down to child templates (and even multiple-levels > shall be possible). > > On Ubuntu 6.06.01 with OO.o 2.0.2 as well as Windows XP and OO.o 2.1 I > could not get changes to be propagated. > I saved the templates with "Edit - Templates - Save" and made changes > via "Edit - > Templates - Organize... - Edit". > Is this just a misunderstanding of the forum writer or am I doing > something wrong? > > I tried creating the child-template in two variations: > First via editing the master-/parent-template and saving that as > child-template. Second via making changes to a parent document and then > creating the child-template from that document. > > I have no clue. Any help is appreciated
I don't know for sure but I think the german wiki pages is referring to the general dependency of documents on templates. If you create a document based on a template the name of the template is stored inside. Each time when you open the document for editing the template it is based on is checked for changes. In case it was changed the user is asked to take over these changes into the document. This way a document always stays connected to its template until the user cuts this connection by denying the update. Templates also are documents. In case you create a new template based on another one this information should be stored in this new template in the same way as in a "normal" document. So here the template "knows its predecessor". Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
