Define conditions for conditional styles here.
Conditional styles are paragraph styles that have different properties depending on the context. Once defined, you cannot change the conditional properties of a conditional style.
LibreOffice applies the paragraph properties of conditional styles as follows (the bold terms correspond to the titles of dialog fields): If a paragraph formatted with a conditional style is in a \<emph\>Context\</emph\> that has an \<emph\>Applied Style\</emph\> linked to it, then the \<emph\>Paragraph Style\</emph\> from that condition is used. If no style is linked to the \<emph\>Context\</emph\>, then the attributes defined in the conditional style apply. The following example illustrates this relationship:
Open a blank text document and write a short business letter with a header (Format - Page - Header).
Define a new Paragraph Style by choosing New in the Styles window, and selecting all the paragraph properties that you want for your business letter in the Paragraph Style dialog. Name this style "Business letter".
Then click the \<emph\>Condition\</emph\> tab and select the \<emph\>Conditional style\</emph\> field to define the new Paragraph Style as a conditional style.
In \<emph\>Context\</emph\>, select the header entry and under \<emph\>Paragraph Styles\</emph\> select the style for the header in your business letter; for example, the default Paragraph Style "Header". You also can select your own style.
You can apply the Paragraph Style to the context by double-clicking the selected entry in the \<emph\>Paragraph Styles\</emph\> list box or by using \<emph\>Assign\</emph\>.
Click \<emph\>OK\</emph\> to close the Paragraph Style dialog, and then format all paragraphs in your business letter, including the header, with the new "Business letter" conditional Paragraph Style. (When you click in the header, you may need to display \<item type=\"literal\"\>All Styles\</item\> or \<item type=\"literal\"\>Custom Styles\</item\> in the style list to use the new business letter style.)
The header text now has the attributes you specified in the Header Paragraph Style, while the other parts of the document have the attributes defined in the business letter conditional Paragraph Style.
The "Text Body" Style was created as a conditional style. Therefore, any styles you derive from it can be used as conditional styles.
The Paragraph Style applied to the context is used when exporting to other formats (RTF, HTML, and so on).
Check this box to define a new style as a conditional style.
Here you can see the LibreOffice predefined contexts, including outline levels 1 to 10, list levels 1 to 10, table header, table contents, section, border, footnote, header and footer.
Here you can see the list of all Paragraph Styles applied to a context.
A list of all Paragraph Styles which can be assigned to a context is contained in the list box.
Click here to remove the current context assigned to the selected style.
Click Apply to apply the selected Paragraph Style to the defined context.