summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/swriter/01/05130100.xhp
diff options
context:
space:
mode:
Diffstat (limited to 'helpcontent2/source/text/swriter/01/05130100.xhp')
-rw-r--r--helpcontent2/source/text/swriter/01/05130100.xhp85
1 files changed, 85 insertions, 0 deletions
diff --git a/helpcontent2/source/text/swriter/01/05130100.xhp b/helpcontent2/source/text/swriter/01/05130100.xhp
new file mode 100644
index 000000000..158011486
--- /dev/null
+++ b/helpcontent2/source/text/swriter/01/05130100.xhp
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+<!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ -->
+
+<meta>
+<topic id="textswriter0105130100xml" indexer="include">
+<title id="tit" xml-lang="en-US">Condition</title>
+<filename>/text/swriter/01/05130100.xhp</filename>
+</topic>
+</meta>
+<body>
+<section id="conditional">
+<bookmark xml-lang="en-US" branch="index" id="bm_id3154656"><bookmark_value>styles; conditional</bookmark_value>
+<bookmark_value>conditional styles</bookmark_value>
+</bookmark>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/@@nowidget@@" id="bm_@@nowidget@@" localize="false"/>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/ConditionPage" id="bm_id3152964" localize="false"/>
+<h1 id="hd_id3154656" xml-lang="en-US"><link href="text/swriter/01/05130100.xhp" name="Condition">Condition</link></h1>
+<paragraph role="paragraph" id="par_id3154766" xml-lang="en-US">Define conditions for conditional styles here.</paragraph>
+</section>
+<section id="howtoget">
+<embed href="text/swriter/00/00000405.xhp#conditional_style"/>
+</section>
+<paragraph role="paragraph" id="par_id3151391" xml-lang="en-US">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>
+<paragraph role="paragraph" id="par_id3149349" xml-lang="en-US">$[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>
+<list type="ordered">
+<listitem>
+<paragraph role="listitem" id="par_id3149883" xml-lang="en-US">Open a blank text document and write a short business letter with a header (<emph>Format - Page - Header</emph>).</paragraph>
+</listitem>
+<listitem>
+<paragraph role="listitem" id="par_id3148768" xml-lang="en-US">Define a new Paragraph Style by choosing <emph>New</emph> in the <emph>Styles</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>
+</listitem>
+<listitem>
+<paragraph role="listitem" id="par_id3153723" xml-lang="en-US">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>
+</listitem>
+<listitem>
+<paragraph role="listitem" id="par_id3154647" xml-lang="en-US">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>
+</listitem>
+<listitem>
+<paragraph role="listitem" id="par_id3150760" xml-lang="en-US">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>
+</listitem>
+<listitem>
+<paragraph role="listitem" id="par_id3149753" xml-lang="en-US">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>
+</listitem>
+</list>
+<paragraph role="paragraph" id="par_id3145412" xml-lang="en-US">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>
+<paragraph role="tip" id="par_id3154473" xml-lang="en-US">The "Text Body" Style was created as a conditional style. Therefore, any styles you derive from it can be used as conditional styles.</paragraph>
+<paragraph role="paragraph" id="par_id3151321" xml-lang="en-US">The Paragraph Style applied to the context is used when exporting to other formats (RTF, HTML, and so on).</paragraph>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/condstyle" id="bm_id3152963" localize="false"/>
+<h2 id="hd_id3152952" xml-lang="en-US">Conditional style</h2>
+<paragraph role="paragraph" id="par_id3150974" xml-lang="en-US"><ahelp hid="modules/swriter/ui/conditionpage/condstyle">Check this box to define a new style as a conditional style.</ahelp></paragraph>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/links" id="bm_id3147524" localize="false"/>
+<h2 id="hd_id3153672" xml-lang="en-US">Context</h2>
+<paragraph role="paragraph" id="par_id3147530" xml-lang="en-US"><ahelp hid="modules/swriter/ui/conditionpage/links">Here you can see the $[officename] predefined contexts, including outline levels 1 to 10, list levels 1 to 10, table header, table contents, section, border, footnote, header and footer.</ahelp></paragraph>
+<h2 id="hd_id3155896" xml-lang="en-US">Applied Styles</h2>
+<paragraph role="paragraph" id="par_id3149689" xml-lang="en-US">Here you can see the list of all Paragraph Styles applied to a context.</paragraph>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/styles" id="bm_id3159190" localize="false"/>
+<h2 id="hd_id3154194" xml-lang="en-US">Paragraph Styles</h2>
+<paragraph role="paragraph" id="par_id3159195" xml-lang="en-US"><ahelp hid="modules/swriter/ui/conditionpage/styles">A list of all Paragraph Styles which can be assigned to a context is contained in the list box.</ahelp></paragraph>
+<embed href="text/swriter/01/05130000.xhp#style_groups"/>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/remove" id="bm_id3151329" localize="false"/>
+<h2 id="hd_id3149306" xml-lang="en-US">Remove</h2>
+<paragraph role="paragraph" id="par_id3151335" xml-lang="en-US"><ahelp hid="modules/swriter/ui/conditionpage/remove">Click here to remove the current context assigned to the selected style.</ahelp></paragraph>
+<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/conditionpage/apply" id="bm_id3149494" localize="false"/>
+<h2 id="hd_id3149483" xml-lang="en-US">Assign</h2>
+<paragraph role="paragraph" id="par_id3154829" xml-lang="en-US"><ahelp hid="modules/swriter/ui/conditionpage/apply">Click <emph>Apply</emph> to apply the <emph>selected Paragraph Style</emph> to the defined <emph>context</emph>.</ahelp></paragraph>
+<embed href="text/shared/00/00000001.xhp#reset"/>
+</body>
+</helpdocument>