xref: /trunk/main/helpcontent2/source/text/swriter/guide/hidden_text.xhp (revision 9b3bc896abcfb1dd68a50ebeeef1c945e06f9ddc)
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--***********************************************************
4 *
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements.  See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership.  The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License.  You may obtain a copy of the License at
12 *
13 *   http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied.  See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 *
22 ***********************************************************-->
23
24<helpdocument version="1.0">
25<meta>
26<topic id="textswriterguidehidden_textxml" indexer="include" status="PUBLISH">
27<title xml-lang="en-US" id="tit">Hiding Text</title>
28<filename>/text/swriter/guide/hidden_text.xhp</filename>
29</topic>
30</meta>
31<body>
32<bookmark xml-lang="en-US" branch="index" id="bm_id3148856">
33<bookmark_value>text; hiding</bookmark_value>
34<bookmark_value>sections;hiding</bookmark_value>
35<bookmark_value>paragraphs;hiding</bookmark_value>
36<bookmark_value>hiding;text, with conditions</bookmark_value>
37<bookmark_value>variables;for hiding text</bookmark_value>
38</bookmark><comment>mw deleted "comparisons;" and copied two entries to hidden_text_display.xhp and 2 entries to nonprintable_text.xhp</comment><comment>MW added "variables;"</comment>
39<paragraph xml-lang="en-US" id="hd_id3148856" role="heading" level="1" l10n="U"><variable id="hidden_text"><link href="text/swriter/guide/hidden_text.xhp" name="Hiding Text">Hiding Text</link>
40</variable></paragraph>
41<paragraph xml-lang="en-US" id="par_id3150103" role="paragraph" l10n="U">You can use fields and sections to hide or display text in your document if a condition is met.</paragraph>
42<paragraph xml-lang="en-US" id="par_id3153409" role="paragraph" l10n="U">Before you can hide text, you must first create a variable to use in the condition for hiding the text.</paragraph>
43<paragraph xml-lang="en-US" id="hd_id5174108" role="heading" level="2" l10n="NEW">To Create a Variable</paragraph>
44<list type="ordered">
45<listitem>
46<paragraph xml-lang="en-US" id="par_id3153131" role="listitem" l10n="U">Click in your document and choose <emph>Insert - Fields - Other</emph>.</paragraph>
47</listitem>
48<listitem>
49<paragraph xml-lang="en-US" id="par_id3149640" role="listitem" l10n="U">Click the <emph>Variables</emph> tab and click "Set Variable" in the <emph>Type</emph> list.</paragraph>
50</listitem>
51<listitem>
52<paragraph xml-lang="en-US" id="par_id3149970" role="listitem" l10n="U">Click "General" in the <emph>Format</emph> list.</paragraph>
53</listitem>
54<listitem>
55<paragraph xml-lang="en-US" id="par_id3149620" role="listitem" l10n="U">Type a name for the variable in the <item type="menuitem">Name</item> box, for example, <item type="literal">Hide</item>.</paragraph>
56</listitem>
57<listitem>
58<paragraph xml-lang="en-US" id="par_id3149869" role="listitem" l10n="U">Enter a value for the variable in the <item type="menuitem">Value</item> box, for example, <item type="literal">1</item>.</paragraph>
59</listitem>
60<listitem>
61<paragraph xml-lang="en-US" id="par_id3145108" role="listitem" l10n="U">To hide the variable in your document, select <emph>Invisible</emph>.</paragraph>
62</listitem>
63<listitem>
64<paragraph xml-lang="en-US" id="par_id3149585" role="listitem" l10n="U">Click <item type="menuitem">Insert</item> and <item type="menuitem">Close</item>.</paragraph>
65</listitem>
66</list>
67<paragraph xml-lang="en-US" id="hd_id3156245" role="heading" level="2" l10n="U">To Hide Text</paragraph>
68<list type="ordered">
69<listitem>
70<paragraph xml-lang="en-US" id="par_id3145391" role="listitem" l10n="U">Click in the document where you want to add the text.</paragraph>
71</listitem>
72<listitem>
73<paragraph xml-lang="en-US" id="par_id3145409" role="listitem" l10n="U">Choose <emph>Insert - Fields - Other</emph> and click the <emph>Functions</emph> tab.</paragraph>
74</listitem>
75<listitem>
76<paragraph xml-lang="en-US" id="par_id3155325" role="listitem" l10n="U">Click "Hidden Text" in the <emph>Type</emph> list.</paragraph>
77</listitem>
78<listitem>
79<paragraph xml-lang="en-US" id="par_id3154404" role="listitem" l10n="U">Enter a statement in the <item type="menuitem">Condition</item> box. For example, using the variable you previously defined, enter <item type="literal">Hide==1</item>.</paragraph>
80</listitem>
81<listitem>
82<paragraph xml-lang="en-US" id="par_id3153371" role="listitem" l10n="U">Type the text that you want to hide in the <emph>Hidden text</emph> box.</paragraph>
83</listitem>
84<listitem>
85<paragraph xml-lang="en-US" id="par_id3154233" role="listitem" l10n="U">Click <item type="menuitem">Insert</item> and <item type="menuitem">Close</item>.</paragraph>
86</listitem>
87</list>
88<paragraph xml-lang="en-US" id="hd_id3154256" role="heading" level="2" l10n="U">To Hide a Paragraph</paragraph>
89<list type="ordered">
90<listitem>
91<paragraph xml-lang="en-US" id="par_id3154853" role="listitem" l10n="U">Click in the paragraph where you want to add the text.</paragraph>
92</listitem>
93<listitem>
94<paragraph xml-lang="en-US" id="par_id3154872" role="listitem" l10n="U">Choose <emph>Insert - Fields - Other</emph> and click the <emph>Functions</emph> tab.</paragraph>
95</listitem>
96<listitem>
97<paragraph xml-lang="en-US" id="par_id3155902" role="listitem" l10n="U">Click "Hidden Paragraph" in the <emph>Type</emph> list.</paragraph>
98</listitem>
99<listitem>
100<paragraph xml-lang="en-US" id="par_id3155947" role="listitem" l10n="U">Enter a statement in the <item type="menuitem">Condition</item> box. For example, using the variable you previously defined, enter <item type="literal">Hide==1</item>.</paragraph>
101</listitem>
102<listitem>
103<paragraph xml-lang="en-US" id="par_id3149991" role="listitem" l10n="U">Click <item type="menuitem">Insert</item> and <item type="menuitem">Close</item>.</paragraph>
104</listitem>
105</list>
106<paragraph xml-lang="en-US" id="par_id3793450" role="note" l10n="NEW">You must enable this feature by removing the check mark from menu <emph>View - Hidden Paragraphs</emph>. When the check mark is set, you cannot hide any paragraph.</paragraph>
107<paragraph xml-lang="en-US" id="hd_id3148675" role="heading" level="2" l10n="U">To Hide a Section</paragraph>
108<list type="ordered">
109<listitem>
110<paragraph xml-lang="en-US" id="par_id3148697" role="listitem" l10n="U">Select the text that you want to hide in your document.</paragraph>
111</listitem>
112<listitem>
113<paragraph xml-lang="en-US" id="par_id3153019" role="listitem" l10n="U">Choose <emph>Insert - Section</emph>.</paragraph>
114</listitem>
115<listitem>
116<paragraph xml-lang="en-US" id="par_id3148950" role="listitem" l10n="U">In the <item type="menuitem">Hide</item> area, select <item type="menuitem">Hide</item>, and then enter an expression in the <item type="menuitem">Condition</item> box. For example, using the variable you previously defined, enter <item type="literal">Hide==1</item>.</paragraph>
117</listitem>
118<listitem>
119<paragraph xml-lang="en-US" id="par_id3153636" role="listitem" l10n="U">Click <item type="menuitem">Insert</item>.</paragraph>
120</listitem>
121</list>
122<section id="relatedtopics">
123<embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/>
124<embed href="text/swriter/guide/fields_userdata.xhp#fields_userdata"/>
125<paragraph xml-lang="en-US" id="par_id3846858" role="paragraph" l10n="NEW"><link href="text/swriter/guide/hidden_text_display.xhp" name="Displaying Hidden Text">Displaying Hidden Text</link></paragraph>
126<paragraph xml-lang="en-US" id="par_id8148442" role="paragraph" l10n="NEW"><link href="text/swriter/guide/nonprintable_text.xhp" name="Creating Non-printing Text">Creating Non-printing Text</link></paragraph>
127<paragraph xml-lang="en-US" id="par_id3148603" role="paragraph" l10n="U"><link href="text/swriter/01/04090000.xhp" name="Insert - Fields - Other">Insert - Fields - Other</link></paragraph>
128<paragraph xml-lang="en-US" id="par_id3147011" role="paragraph" l10n="U"><link href="text/swriter/01/04020000.xhp" name="Insert - Section">Insert - Section</link></paragraph>
129<paragraph xml-lang="en-US" id="par_id3147029" role="paragraph" l10n="U"><link href="text/swriter/02/14020000.xhp" name="List of Operators">List of Operators</link></paragraph>
130</section>
131</body>
132</helpdocument>
133