Converting fields into text
Writer does not provide any easy way to convert field contents into
text. To do this, you need to copy the field contents and paste them
back as unformatted text. This is not a very good solution if you have
hundreds of fields that you want to change, but you could use a macro
to automate the process.
Developing conditional content
Conditional content is text and graphics that are included or excluded
depending on a condition you specify.
A simple example is a reminder letter for an overdue account. The first
and second reminders might have a subject line of “Reminder Notice”,
but the third reminder letter might have the subject “Final Notice” and
a different final paragraph.
A more complex example is a software manual for a product that
comes in two versions, Pro and Lite. Both product versions have much
in common, but the Pro version includes some features that are not in
the Lite version. If you use conditional content, you can maintain one
file containing information for both versions and print (or create online
help) customized for each version. You do not have to maintain two
sets of the information that is the same for both versions, so you will
not forget to update both versions when something changes.
Choose the types of conditional content to use
This section describes several Writer features that can help you design
and maintain conditional content. You can use one or any combination
of these features in the same document.
Conditional text
With conditional text, you can have two alternative texts (a word,
phrase, or sentence). One text will be displayed and printed if the
condition you specify is met, and the other will be displayed and
printed if the condition is not met. You cannot include graphics or edit
the text except in the field dialog (not in the body of the document).
You also cannot format part of the text (for example, bolding one word
but not the others), but you can format the field to affect all of the field
contents (for example, bolding all of the words). You cannot include a
cross-reference or other field in the text.
Chapter 14 Working with Fields 453
Comments to this Manuals