Issue 40885 - preset content in styles
Summary: preset content in styles
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.1.4
Hardware: All All
: P3 Trivial with 6 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2005-01-18 11:34 UTC by bobharvey
Modified: 2013-02-07 22:40 UTC (History)
1 user (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---

Sample document with Additional Style and Table of contents (69.50 KB, application/msword)
2007-04-04 08:58 UTC, valdisvi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bobharvey 2005-01-18 11:34:08 UTC
I'm adding this to 'framework' because I think the ideas would be useful in all
apps, not just the WP.  Please re-apply as you see fit.

I've come across several ideas lately that lead me to suggest the idea of
'styles' be enhanced to include pre-set textual content.

1.  Page styles, header and footer content.
Page styles make it relatively easy to control things like header and footer
visibility, but the contents still have to be edited in the main page.  How
about providing the ability to embed the text of headers and footers - "page n
of N", 'Chapter N', and other text+field combinations in the style.  So when
someone selects a page style all this stuff is inserted without additional actions.

A preset watermark would be an interesting extension of the idea as well.

This would be very helpful in large organisations where style rules cover not
just the layout of pages but the standardised content as well.

2.  Boilerplate in paragraph styles

There are two possible ideas here, and both bear thinking about.
2.1  Text as bullets - an uneditable string that is outdented before the
paragraph starts.
2.2  Boilerplate contents - editable text that is pre-inserted when a paragraph
style is inserted.  

3.  Boilerplate in caption styles
When a caption is inserted in an illustration, the word "illustration" is
inserted and hence appears in the index unless it is edited in each instance. 
There appears to be no way to enter a different word in this position, and I
think it perfectly reasonable that the author ought to be able to choose in
advance what word is inserted here.  The layout of these captions ought to be
selectable as a style, including the relative placement of the prefix, the
number, the method of numbering, and the individual title. for what provoked these

4.  Watermark style to include content
It would be interesting to have a box for default contents of a watermark style

5.  Captions in frames
A frame style could include a default to insert a caption?

It is possible that the ideas in 2. and 3. could be generalisable and applied to
all styles - controls for uneditable prefixes (and postfixes), editable
boilerplate text, pre-determined index marking, field insertion and numbering

The ideas in 2 could alternatively be addressed 'from the other end' with an
'insert boilerplate' menu item, that picked preset paragraphs from elsewhere. 
They would, of course, be suscpetible to styles, but the style would not be the
method of introducing the content.  That would not address the other ideas, however.

I will leave matters of detail to folks cleverer than I.
Comment 1 thorsten.martens 2005-01-18 14:08:39 UTC
TM->requirements: Please have a look.
Comment 2 bobharvey 2005-03-02 23:56:33 UTC
Further thoughts:

AA: why is there no 'Document style' at the top of the hierarchy?
BB: What about a concept of a 'Section' style, consisting of multiple pages?

CC: Watermarks.
The more I read the forums, the more trouble people are having with watermarks.
 Large imnages that prevent the selection of other objects nominally in front,
Watermarks that don't rotate when page orientation is switched.

I come back again to presetting watermark graphics into page styles, perhaps
with "convert to greyscale" and "grey by nn%" options.
Comment 3 bobharvey 2005-09-20 21:54:22 UTC
I'd like to return to this one again.

The more I think about things like the caption texts, the more I think they 
should be part of the style.  And, like everything else in a style, subject to 
global change.  

The proposed boilerplate text should not be inserted from the style, it should 
just appear to have been inserted.  So when you edit the style all the instances 
of it alter, just like other style based parameters.
Comment 4 8daysaweek 2005-09-20 21:57:51 UTC
*** Issue 40885 has been confirmed by votes. ***
Comment 5 bobharvey 2005-10-17 12:50:39 UTC
6.  Graphics style

One organisation I work for uses a small version of the logo as a bullet for 
chapter headings, and another for subheadings.

At the moment these are embedded multiple times in documents.  They cannot be 
linked to an external file, much as I want to, as the documents are sometimes 
sent to other readers.  This proposal is equivalent to an internal link

I would like to propose a 'graphics style' that would allow a single image to be 
embedded in the document and repeated any number of times. This would save 
space, and allow for central updating when the design changes (e.g. at 
Christmas, when we put snow on the icon).

A similar technique would help people who use icons for things like action 
points in lists etc.  Imagine a spreadsheet with icons in the cells and 
=graphics(B2) style formulae to select and repeat them.
Comment 6 bobharvey 2006-04-06 06:34:56 UTC
I have recently come across issue 64014.

I suspect that external style sheets are a way forward for many items, and 
would like to see that sort of flexibility combined with the proposal here.

I am still wedded to the idea of styles-with-content
Comment 7 valdisvi 2007-04-04 08:58:24 UTC
Created attachment 44201 [details]
Sample document with Additional Style and Table of contents
Comment 8 bobharvey 2008-07-23 14:58:23 UTC
I still think that having styles-with-content is a valid idea, and commend this
idea as both product differentiation and for OOo 4.

The idea of external style sheets still appeals as well. ('live templates')