1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski<helpdocument version="1.0">
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski<!--***********************************************************
5*b1cdbd2cSJim Jagielski *
6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
7*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
8*b1cdbd2cSJim Jagielski * distributed with this work for additional information
9*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
12*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
13*b1cdbd2cSJim Jagielski *
14*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
15*b1cdbd2cSJim Jagielski *
16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
21*b1cdbd2cSJim Jagielski * under the License.
22*b1cdbd2cSJim Jagielski *
23*b1cdbd2cSJim Jagielski ***********************************************************-->
24*b1cdbd2cSJim Jagielski
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski<meta>
29*b1cdbd2cSJim Jagielski<topic id="textswriter0105130100xml" indexer="include">
30*b1cdbd2cSJim Jagielski<title id="tit" xml-lang="en-US">Condition</title>
31*b1cdbd2cSJim Jagielski<filename>/text/swriter/01/05130100.xhp</filename>
32*b1cdbd2cSJim Jagielski</topic>
33*b1cdbd2cSJim Jagielski</meta>
34*b1cdbd2cSJim Jagielski<body>
35*b1cdbd2cSJim Jagielski<section id="bedingung">
36*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3154656"><bookmark_value>styles; conditional</bookmark_value>
37*b1cdbd2cSJim Jagielski<bookmark_value>conditional styles</bookmark_value>
38*b1cdbd2cSJim Jagielski</bookmark>
39*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3154656" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/swriter/01/05130100.xhp" name="Condition">Condition</link></paragraph>
40*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3154766" xml-lang="en-US" l10n="U" oldref="2">Define conditions for conditional styles here.</paragraph>
41*b1cdbd2cSJim Jagielski</section>
42*b1cdbd2cSJim Jagielski<section id="howtoget">
43*b1cdbd2cSJim Jagielski<embed href="text/swriter/00/00000405.xhp#vorlagenbedingt"/>
44*b1cdbd2cSJim Jagielski</section>
45*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3151391" xml-lang="en-US" l10n="CHG" oldref="10">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.</paragraph>
46*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3149349" xml-lang="en-US" l10n="U" oldref="11">$[officename] 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:</paragraph>
47*b1cdbd2cSJim Jagielski<list type="ordered">
48*b1cdbd2cSJim Jagielski<listitem>
49*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3149883" xml-lang="en-US" l10n="U" oldref="12">Open a blank text document and write a short business letter with a header (<emph>Format</emph> - <emph>Page</emph> - <emph>Header</emph>).</paragraph>
50*b1cdbd2cSJim Jagielski</listitem>
51*b1cdbd2cSJim Jagielski<listitem>
52*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3148768" xml-lang="en-US" l10n="CHG" oldref="21">Define a new Paragraph Style by choosing <emph>New</emph> in the <emph>Styles and Formatting</emph> window, and selecting all the paragraph properties that you want for your business letter in the <emph>Paragraph Style</emph> dialog. Name this style "Business letter".</paragraph>
53*b1cdbd2cSJim Jagielski</listitem>
54*b1cdbd2cSJim Jagielski<listitem>
55*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3153723" xml-lang="en-US" l10n="U" oldref="23">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.</paragraph>
56*b1cdbd2cSJim Jagielski</listitem>
57*b1cdbd2cSJim Jagielski<listitem>
58*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3154647" xml-lang="en-US" l10n="U" oldref="24">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.</paragraph>
59*b1cdbd2cSJim Jagielski</listitem>
60*b1cdbd2cSJim Jagielski<listitem>
61*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3150760" xml-lang="en-US" l10n="U" oldref="25">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>Apply</emph>.</paragraph>
62*b1cdbd2cSJim Jagielski</listitem>
63*b1cdbd2cSJim Jagielski<listitem>
64*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3149753" xml-lang="en-US" l10n="CHG" oldref="26">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.)</paragraph>
65*b1cdbd2cSJim Jagielski</listitem>
66*b1cdbd2cSJim Jagielski</list>
67*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3145412" xml-lang="en-US" l10n="U" oldref="27">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.</paragraph>
68*b1cdbd2cSJim Jagielski<paragraph role="tip" id="par_id3154473" xml-lang="en-US" l10n="U" oldref="13">The "Text body" Style was created as a conditional style. Therefore, any styles you derive from it can be used as conditional styles.</paragraph>
69*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3151321" xml-lang="en-US" l10n="U" oldref="14">The Paragraph Style applied to the context is used when exporting to other formats (RTF, HTML, and so on).</paragraph>
70*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:CheckBox:TP_CONDCOLL:CB_CONDITION" id="bm_id3152963" localize="false"/>
71*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3152952" xml-lang="en-US" level="2" l10n="U" oldref="3">Conditional style</paragraph>
72*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3150974" xml-lang="en-US" l10n="U" oldref="15"><ahelp hid="SW:CHECKBOX:TP_CONDCOLL:CB_CONDITION">Check this box to define a new style as a conditional style.</ahelp></paragraph>
73*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/SW_HID_COND_COLL_TABLIST" id="bm_id3147524" localize="false"/>
74*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3153672" xml-lang="en-US" level="2" l10n="U" oldref="4">Context</paragraph>
75*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3147530" xml-lang="en-US" l10n="U" oldref="16"><ahelp hid="HID_COND_COLL_TABLIST">Here you can see the $[officename] predefined contexts, including outline levels 1 to 10, numbering/bullets levels 1 to 10, table header, table contents, section, border, footnote, header and footer.</ahelp></paragraph>
76*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3155896" xml-lang="en-US" level="2" l10n="U" oldref="5">Applied Style</paragraph>
77*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3149689" xml-lang="en-US" l10n="U" oldref="17">Here you can see the list of all Paragraph Styles applied to a context.</paragraph>
78*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_CONDCOLL:LB_STYLE" id="bm_id3159190" localize="false"/>
79*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3154194" xml-lang="en-US" level="2" l10n="U" oldref="6">Styles</paragraph>
80*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3159195" xml-lang="en-US" l10n="U" oldref="18"><ahelp hid="SW:LISTBOX:TP_CONDCOLL:LB_STYLE">A list of all Paragraph Styles which can be assigned to a context is contained in the list box.</ahelp></paragraph>
81*b1cdbd2cSJim Jagielski<embed href="text/swriter/01/05130000.xhp#vorlagenbereich"/>
82*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:PushButton:TP_CONDCOLL:PB_REMOVE" id="bm_id3151329" localize="false"/>
83*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3149306" xml-lang="en-US" level="2" l10n="U" oldref="8">Remove</paragraph>
84*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3151335" xml-lang="en-US" l10n="U" oldref="19"><ahelp hid="SW:PUSHBUTTON:TP_CONDCOLL:PB_REMOVE">Click here to remove the current context assigned to the selected style.</ahelp></paragraph>
85*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/sw:PushButton:TP_CONDCOLL:PB_ASSIGN" id="bm_id3149494" localize="false"/>
86*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3149483" xml-lang="en-US" level="2" l10n="U" oldref="9">Assign</paragraph>
87*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3154829" xml-lang="en-US" l10n="U" oldref="20"><ahelp hid="SW:PUSHBUTTON:TP_CONDCOLL:PB_ASSIGN">Click <emph>Assign</emph> to apply the <emph>selected Paragraph Style</emph> to the defined <emph>context</emph>.</ahelp></paragraph>
88*b1cdbd2cSJim Jagielski</body>
89*b1cdbd2cSJim Jagielski</helpdocument>
90