Thanks for the comment, Dan.
I did the 'experiment' the way you suggest and, where you say I will "likely
see the dialog", that did not happen. When I reopened TEST, there was no
message from Writer.
Where you say that the problem might be due to my having "created the
document (TEST) from the DEFAULT template", I don't see how that would have
any effect. I made A the default template and then [with Ctrl+N] opened a
new document, for which File | Properties | General clearly states that the
template [used for creating the doc] is A ; I think that the fact that A was
the default should have no effect.
Ben
----- Original Message -----
From: "Dan Lewis" <[EMAIL PROTECTED]>
Subject: Re: what happens when a template is deleted?
On Thursday February 15 2007 12:48 am, ben wrote:
The Writer Help item entitled Opening Documents With Templates
states the following.
"When you open a document that was created from a template,
OpenOffice.org checks ... If a document was created using a
template that cannot be found a dialog is shown that asks you how
to proceed next time the document is opened. ..."
My 'experiment' [see below] suggests that this may not be correct.
[] At the outset, a template called D is the default.
[] I open a new blank document, modify one of the para styles, save
the template -- call it A -- and make A the default template. Close
the document.
[] I open a new blank document, verify that the underlying template
is A, enter several paras of text, apply the modified style to one
of them. Save the doc as TEST and close it.
[] Via File > Template > Organize , I DELETE the template A and
[re-]designate D as the default template.
[] Now I open TEST . No problem, no message from Writer!!!
But (as I understand the Help item), since A is deleted, Writer
should now display a dialog, asking me what to do about this
situation.-- Did I misunderstand something? What exactly should
happen in this situation?
I THINK the Help item is WRONG. Information about styles [list of
available styles, and their specifications] is carried in the
document, in what I think of as a 'virtual' template associated
with the document. So the fact that A [which defined the initial
associated template, when the document was created] no longer
exists is irrelevant and there is no need for any message from
Writer and no need for any decision by the user. --- Does that seem
right?
DAN'S COMMENT:
Perhaps you need to do a little differently. Create the new style
and save it as a template (A). DO NOT set it as the default template.
Then create a new document (TEST) based upon this new style. Save the
document. Delete the new template (A). Open the new document (TEST).
You will likely see the dialog about the missing template.
My thinking is this. You created the document (TEST) from the
DEFAULT template. Even though it has the styles of template A, it
still the DEFAULT template. Likely your document (TEST) was linked to
the DEFAULT rather than the A template. So, when you opened TEST, it
had an associated template: DEFAULT. This is true even if the styles
of the DEFAULT template had been changed.
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]