To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=20506
------- Additional comments from [EMAIL PROTECTED] Sun Jun 22 02:54:08 +0000
2008 -------
Re: issue 20506: Style management
Style copying causes confusion galore! You can have StyleX in a
document, and a
different StyleX in a template. The two were originally identical copies, but
the template version has been modified. Now you open the document --and you wind
up with the old style! Of course, you can copy the updated style from the
template into the document, but that's a pain. Besides, StyleX might have yet
another, more recent, version in another document, and you forgot to copy it in
the template, so that the template StyleX is, itself, obsolete....
This situation is similar to that of a database where records are
dispersed in
several locations: two users can access two different versions of the 'same'
record, one, or both, being obsolete. The solution is well known: have only one
record location, and update and read that one record. Same for styles.
Styles should be stored in templates only, not in documents. (For one
thing,
that should make document files leaner. Why should an empty file have a size of
9.08 K?) A document will have any number of associated templates containing the
styles needed, specified in a list of style names stored with the document.
Style names would normally (if only to reduce user confusion) be unique, ie, no
two templates would contain identically-named styles. However, this 'rule' would
be the user's option. If two styles from two templates had the same name, the
style loaded last (according to the order in which the associated templates are
listed in the document) would supersede the previous one.
Example: a document using Style0...7 could load
*Template0 containing Style0, Style1, Style2, Style3 and Style4;
*then Template1 containing Style1, Style4 (not necessarily the same as in
Template0), Style5, Style6;
*then Template2 containing Style1 (not necessarily the same as in Template0 and
Template1), Style2 (not necessarily the same as in Template0), Style5 (not
necessarily the same as in Template1) and Style7.
The styles available to the document would be Style0 (from Template0), Style1
and Style2 (both from Template2), Style3, Style4 (from Template1), Style5 (from
Template2), Style6, and Style7. From these loaded styles, User could activate
(through check-boxes in the list) those needed in the document, listed in the
'Apply Style' submenu of the TextObjectBar. This way, styles --say, Styles8..23
in Template1-- unused in the document would not clutter the style menu.
'Superseding' a style does not mean replacing it. For example, Style1
remains
unchanged in Template0, available to a document that does not load Template1 or
Template2 after Template0.
Style superseding would be accompanied by a prompt ('Do you want to
supersede...?' or a warning to the user, who might want to use Style1
fromTemplate1 and be unaware that Template2 contains another Style1. If User
gets annoyed at this prompting, she can name differently all the styles
throughout all templates --which would be good practice, anyway.
However, predefined styles, such Heading1..10 (which should be replaced
with
Heading0..9) could be defined in several templates, such as 'Book' and 'Report'.
This should cause no superseding, as a particular document should not associate
those two templates obviously meant for two different contexts.
Benefits: Many style-related issues would be solved: Issue 86140 (no
style
copying),
Many rules or cautions would become irrelevant, such as (quotes are
from Help
or documentation):
** from Working with Master Documents:
* Use the same document template for the master document and its
subdocuments.
When you modify or create a style, add it to the document template, and then
reload the master document to apply to the subdocuments. This way the
subdocuments will look the same when they are loaded into the master document.
(Imported from a template,a style will always be the same in a master document
and its subdocuments)
* Don’t make changes to styles in the master document or in any of the
subdocuments—do it in the template.
To update the master document (and all of the subdocuments) with changes to the
template, just open the master document. You’ll get two messages: first, to ask
if you want to update all
links; and second, if you want to apply the changed styles. Answer Yes to both
of these messages.
* Just one rule: if you make any changes to the styles while editing a
subdocument, you must copy those changed styles to the template so they are
available to all of the subdocuments and to the master document
(If styles are stored in templates only, template changes are automatically
enforced in the master document and its subdocuments)
* 4) Modify the chapter title style (Heading 1) in the Master Document
file as
you did in the template file in step 2
** from Working with Templates:
* The next time that you open a document that was created from the changed
template, the following message appears:...
Click Yes to apply the template’s changed styles to the document. Click No if
you don’t want to apply the template’s changed styles to the document.
(No such query would be necessary; changed styles would be automatically
applied. If the user really wanted to keep Style3 for some documents, she should
make a new style, such as Style3a.)
** from Working with Styles:
* You can create a new style by copying an existing style. This new style
applies only to this document; it will not be saved in the template.
Instead, the user would be asked to choose the template where to store the new
style.
* You can copy or move styles from one template or document into another
template or document.
The only operation would be moving a style from one template to another; no
copying, to avoid style duplication.
One 'problem' with this management is that a style could be missing. For
example, Style7 could be named (ie, requested) in the document, but not be
imported --because none of the attached templates contains it. (Maybe it was
deleted or moved from an attached templates.) A warning would be issued: 'Style7
missing'.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]