Here are my thoughts about style sheets:
Style sheets are not styles, but collections of styles. Style sheets
are objects, just like templateButton etc. are, but they'd have
names, with styles as parts, to which you can set properties.
set the textFont style "default" of stylesheet "StandardGreen" to "Helvetica"
They are stored in stacks and can be used if the stack is "in use".
If that library stack is not available at runtime, the styles are
maintained until it becomes available again, but are displayed in
some default look.
You can assign the style not only to paragraphs, but to arbitrary chunks:
set the style of line 2 to 4 of fld "foo"\
to style "default" of styleSheet "StandardGreen"
set the style of word 3 of line 4 of fld "foo"\
to "link" of styleSheet "StandardGreen"
I am not shure if there should be a distinction between character and
paragraph styles.
You can also assign a styleSheet to a field and the "default" style
is assigned to all characters that have no style yet.
set the styleSheet of fld "foo" to "StandardGreen"
set the style of line 7 of fld "foo" to style "link"
If you assign a different styleSheet to the same field, all styles
with matching names in the new styleSheet change, the others keep
their style name property, but display as default.
One attribute of a style can be "invisible", so you can hide certain
paragraphs in one style and make them visible in another.
You can import and export style sheets in CSS standard notation (like
the htmlText property of fields).
Regards
R�diger
--------------------------------------------------------------------
| Ruediger zu Dohna GINIT GmbH 0721-96681-63 [EMAIL PROTECTED] |
| PGP-Fingerprint: F1 BF 9D 95 57 26 48 42 FE F8 E8 02 41 1A EE 3E |
--------------------------------------------------------------------