xref: /AOO42X/main/helpcontent2/source/text/swriter/guide/hidden_text.xhp (revision 21f4ae177a52f1e5ace9b4ea500f53fc0ca795ed)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
30e4b25e7SAndrew Rist<!--***********************************************************
4cdf0e10cSrcweir *
50e4b25e7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
60e4b25e7SAndrew Rist * or more contributor license agreements.  See the NOTICE file
70e4b25e7SAndrew Rist * distributed with this work for additional information
80e4b25e7SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
90e4b25e7SAndrew Rist * to you under the Apache License, Version 2.0 (the
100e4b25e7SAndrew Rist * "License"); you may not use this file except in compliance
110e4b25e7SAndrew Rist * with the License.  You may obtain a copy of the License at
12cdf0e10cSrcweir *
130e4b25e7SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14cdf0e10cSrcweir *
150e4b25e7SAndrew Rist * Unless required by applicable law or agreed to in writing,
160e4b25e7SAndrew Rist * software distributed under the License is distributed on an
170e4b25e7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
180e4b25e7SAndrew Rist * KIND, either express or implied.  See the License for the
190e4b25e7SAndrew Rist * specific language governing permissions and limitations
200e4b25e7SAndrew Rist * under the License.
21cdf0e10cSrcweir *
220e4b25e7SAndrew Rist ***********************************************************-->
230e4b25e7SAndrew Rist
241832f669Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textswriterguidehidden_textxml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Hiding Text</title>
28cdf0e10cSrcweir<filename>/text/swriter/guide/hidden_text.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
321832f669Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3148856">
331832f669Smseidel<bookmark_value>text; hiding</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>sections;hiding</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>paragraphs;hiding</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>hiding;text, with conditions</bookmark_value>
37cdf0e10cSrcweir<bookmark_value>variables;for hiding text</bookmark_value>
38cdf0e10cSrcweir</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*b5f39a4bSmseidel<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>
40cdf0e10cSrcweir</variable></paragraph>
41*b5f39a4bSmseidel<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*b5f39a4bSmseidel<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>
43cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id5174108" role="heading" level="2" l10n="NEW">To Create a Variable</paragraph>
44cdf0e10cSrcweir<list type="ordered">
45cdf0e10cSrcweir<listitem>
46*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3153131" role="listitem" l10n="U">Click in your document and choose <emph>Insert - Fields - Other</emph>.</paragraph>
47cdf0e10cSrcweir</listitem>
48cdf0e10cSrcweir<listitem>
49*b5f39a4bSmseidel<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>
50cdf0e10cSrcweir</listitem>
51cdf0e10cSrcweir<listitem>
52*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3149970" role="listitem" l10n="U">Click "General" in the <emph>Format</emph> list.</paragraph>
53cdf0e10cSrcweir</listitem>
54cdf0e10cSrcweir<listitem>
55*b5f39a4bSmseidel<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>
56cdf0e10cSrcweir</listitem>
57cdf0e10cSrcweir<listitem>
58*b5f39a4bSmseidel<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>
59cdf0e10cSrcweir</listitem>
60cdf0e10cSrcweir<listitem>
61*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3145108" role="listitem" l10n="U">To hide the variable in your document, select <emph>Invisible</emph>.</paragraph>
62cdf0e10cSrcweir</listitem>
63cdf0e10cSrcweir<listitem>
64*b5f39a4bSmseidel<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>
65cdf0e10cSrcweir</listitem>
66cdf0e10cSrcweir</list>
67*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="hd_id3156245" role="heading" level="2" l10n="U">To Hide Text</paragraph>
68cdf0e10cSrcweir<list type="ordered">
69cdf0e10cSrcweir<listitem>
70*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3145391" role="listitem" l10n="U">Click in the document where you want to add the text.</paragraph>
71cdf0e10cSrcweir</listitem>
72cdf0e10cSrcweir<listitem>
73*b5f39a4bSmseidel<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>
74cdf0e10cSrcweir</listitem>
75cdf0e10cSrcweir<listitem>
76*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3155325" role="listitem" l10n="U">Click "Hidden Text" in the <emph>Type</emph> list.</paragraph>
77cdf0e10cSrcweir</listitem>
78cdf0e10cSrcweir<listitem>
79*b5f39a4bSmseidel<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>
80cdf0e10cSrcweir</listitem>
81cdf0e10cSrcweir<listitem>
82*b5f39a4bSmseidel<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>
83cdf0e10cSrcweir</listitem>
84cdf0e10cSrcweir<listitem>
85*b5f39a4bSmseidel<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>
86cdf0e10cSrcweir</listitem>
87cdf0e10cSrcweir</list>
88*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="hd_id3154256" role="heading" level="2" l10n="U">To Hide a Paragraph</paragraph>
89cdf0e10cSrcweir<list type="ordered">
90cdf0e10cSrcweir<listitem>
91*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3154853" role="listitem" l10n="U">Click in the paragraph where you want to add the text.</paragraph>
92cdf0e10cSrcweir</listitem>
93cdf0e10cSrcweir<listitem>
94*b5f39a4bSmseidel<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>
95cdf0e10cSrcweir</listitem>
96cdf0e10cSrcweir<listitem>
97*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3155902" role="listitem" l10n="U">Click "Hidden Paragraph" in the <emph>Type</emph> list.</paragraph>
98cdf0e10cSrcweir</listitem>
99cdf0e10cSrcweir<listitem>
100*b5f39a4bSmseidel<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>
101cdf0e10cSrcweir</listitem>
102cdf0e10cSrcweir<listitem>
103*b5f39a4bSmseidel<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>
104cdf0e10cSrcweir</listitem>
105cdf0e10cSrcweir</list>
106cdf0e10cSrcweir<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*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="hd_id3148675" role="heading" level="2" l10n="U">To Hide a Section</paragraph>
108cdf0e10cSrcweir<list type="ordered">
109cdf0e10cSrcweir<listitem>
110*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3148697" role="listitem" l10n="U">Select the text that you want to hide in your document.</paragraph>
111cdf0e10cSrcweir</listitem>
112cdf0e10cSrcweir<listitem>
113*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3153019" role="listitem" l10n="U">Choose <emph>Insert - Section</emph>.</paragraph>
114cdf0e10cSrcweir</listitem>
115cdf0e10cSrcweir<listitem>
116*b5f39a4bSmseidel<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>
117cdf0e10cSrcweir</listitem>
118cdf0e10cSrcweir<listitem>
119*b5f39a4bSmseidel<paragraph xml-lang="en-US" id="par_id3153636" role="listitem" l10n="U">Click <item type="menuitem">Insert</item>.</paragraph>
120cdf0e10cSrcweir</listitem>
121cdf0e10cSrcweir</list>
122cdf0e10cSrcweir<section id="relatedtopics">
123cdf0e10cSrcweir<embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/>
124cdf0e10cSrcweir<embed href="text/swriter/guide/fields_userdata.xhp#fields_userdata"/>
125cdf0e10cSrcweir<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>
126cdf0e10cSrcweir<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*b5f39a4bSmseidel<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*b5f39a4bSmseidel<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*b5f39a4bSmseidel<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>
130cdf0e10cSrcweir</section>
131cdf0e10cSrcweir</body>
132cdf0e10cSrcweir</helpdocument>
133