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="textswriterguidehidden_textxml" indexer="include" status="PUBLISH"> 30*b1cdbd2cSJim Jagielski <title xml-lang="en-US" id="tit">Hiding Text</title> 31*b1cdbd2cSJim Jagielski <filename>/text/swriter/guide/hidden_text.xhp</filename> 32*b1cdbd2cSJim Jagielski </topic> 33*b1cdbd2cSJim Jagielski </meta> 34*b1cdbd2cSJim Jagielski <body> 35*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3148856"><bookmark_value>text; hiding</bookmark_value> 36*b1cdbd2cSJim Jagielski <bookmark_value>sections;hiding</bookmark_value> 37*b1cdbd2cSJim Jagielski <bookmark_value>paragraphs;hiding</bookmark_value> 38*b1cdbd2cSJim Jagielski <bookmark_value>hiding;text, with conditions</bookmark_value> 39*b1cdbd2cSJim Jagielski <bookmark_value>variables;for hiding text</bookmark_value> 40*b1cdbd2cSJim Jagielski</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> 41*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3148856" role="heading" level="1" l10n="U" oldref="1"><variable id="hidden_text"><link href="text/swriter/guide/hidden_text.xhp" name="Hiding Text">Hiding Text</link> 42*b1cdbd2cSJim Jagielski</variable></paragraph> 43*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3150103" role="paragraph" l10n="U" oldref="2">You can use fields and sections to hide or display text in your document if a condition is met.</paragraph> 44*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153409" role="paragraph" l10n="U" oldref="19">Before you can hide text, you must first create a variable to use in the condition for hiding the text.</paragraph> 45*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id5174108" role="heading" level="2" l10n="NEW">To Create a Variable</paragraph> 46*b1cdbd2cSJim Jagielski <list type="ordered"> 47*b1cdbd2cSJim Jagielski <listitem> 48*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153131" role="listitem" l10n="U" oldref="20">Click in your document and choose <emph>Insert - Fields - Other</emph>.</paragraph> 49*b1cdbd2cSJim Jagielski </listitem> 50*b1cdbd2cSJim Jagielski <listitem> 51*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149640" role="listitem" l10n="U" oldref="21">Click the <emph>Variables </emph>tab and click "Set Variable" in the <emph>Type </emph>list.</paragraph> 52*b1cdbd2cSJim Jagielski </listitem> 53*b1cdbd2cSJim Jagielski <listitem> 54*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149970" role="listitem" l10n="U" oldref="22">Click "General" in the <emph>Format </emph>list.</paragraph> 55*b1cdbd2cSJim Jagielski </listitem> 56*b1cdbd2cSJim Jagielski <listitem> 57*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149620" role="listitem" l10n="U" oldref="23">Type a name for the variable in the <item type="menuitem">Name</item> box, for example, <item type="literal">Hide</item>.</paragraph> 58*b1cdbd2cSJim Jagielski </listitem> 59*b1cdbd2cSJim Jagielski <listitem> 60*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149869" role="listitem" l10n="U" oldref="24">Enter a value for the variable in the <item type="menuitem">Value</item> box, for example, <item type="literal">1</item>.</paragraph> 61*b1cdbd2cSJim Jagielski </listitem> 62*b1cdbd2cSJim Jagielski <listitem> 63*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3145108" role="listitem" l10n="U" oldref="25">To hide the variable in your document, select <emph>Invisible</emph>.</paragraph> 64*b1cdbd2cSJim Jagielski </listitem> 65*b1cdbd2cSJim Jagielski <listitem> 66*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149585" role="listitem" l10n="U" oldref="26">Click <item type="menuitem">Insert</item> and <item type="menuitem">Close</item>.</paragraph> 67*b1cdbd2cSJim Jagielski </listitem> 68*b1cdbd2cSJim Jagielski </list> 69*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id3156245" role="heading" level="2" l10n="U" 70*b1cdbd2cSJim Jagielski oldref="27">To Hide Text</paragraph> 71*b1cdbd2cSJim Jagielski <list type="ordered"> 72*b1cdbd2cSJim Jagielski <listitem> 73*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3145391" role="listitem" l10n="U" oldref="28">Click in the document where you want to add the text.</paragraph> 74*b1cdbd2cSJim Jagielski </listitem> 75*b1cdbd2cSJim Jagielski <listitem> 76*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3145409" role="listitem" l10n="U" oldref="5">Choose <emph>Insert - Fields - Other</emph> and click the <emph>Functions </emph>tab.</paragraph> 77*b1cdbd2cSJim Jagielski </listitem> 78*b1cdbd2cSJim Jagielski <listitem> 79*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3155325" role="listitem" l10n="U" oldref="29">Click "Hidden Text" in the <emph>Type </emph>list.</paragraph> 80*b1cdbd2cSJim Jagielski </listitem> 81*b1cdbd2cSJim Jagielski <listitem> 82*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3154404" role="listitem" l10n="U" oldref="30">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> 83*b1cdbd2cSJim Jagielski </listitem> 84*b1cdbd2cSJim Jagielski <listitem> 85*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153371" role="listitem" l10n="U" oldref="31">Type the text that you want to hide in the <emph>Hidden text </emph>box.</paragraph> 86*b1cdbd2cSJim Jagielski </listitem> 87*b1cdbd2cSJim Jagielski <listitem> 88*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3154233" role="listitem" l10n="U" oldref="32">Click <item type="menuitem">Insert</item> and <item type="menuitem">Close</item>.</paragraph> 89*b1cdbd2cSJim Jagielski </listitem> 90*b1cdbd2cSJim Jagielski </list> 91*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id3154256" role="heading" level="2" l10n="U" 92*b1cdbd2cSJim Jagielski oldref="33">To Hide a Paragraph</paragraph> 93*b1cdbd2cSJim Jagielski <list type="ordered"> 94*b1cdbd2cSJim Jagielski <listitem> 95*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3154853" role="listitem" l10n="U" oldref="34">Click in the paragraph where you want to add the text.</paragraph> 96*b1cdbd2cSJim Jagielski </listitem> 97*b1cdbd2cSJim Jagielski <listitem> 98*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3154872" role="listitem" l10n="U" oldref="35">Choose <emph>Insert - Fields - Other</emph> and click the <emph>Functions </emph>tab.</paragraph> 99*b1cdbd2cSJim Jagielski </listitem> 100*b1cdbd2cSJim Jagielski <listitem> 101*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3155902" role="listitem" l10n="U" oldref="6">Click "Hidden Paragraph" in the <emph>Type </emph>list.</paragraph> 102*b1cdbd2cSJim Jagielski </listitem> 103*b1cdbd2cSJim Jagielski <listitem> 104*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3155947" role="listitem" l10n="U" oldref="36">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> 105*b1cdbd2cSJim Jagielski </listitem> 106*b1cdbd2cSJim Jagielski <listitem> 107*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3149991" role="listitem" l10n="U" oldref="37">Click <item type="menuitem">Insert</item> and <item type="menuitem">Close</item>.</paragraph> 108*b1cdbd2cSJim Jagielski </listitem> 109*b1cdbd2cSJim Jagielski </list> 110*b1cdbd2cSJim Jagielski <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> 111*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="hd_id3148675" role="heading" level="2" l10n="U" 112*b1cdbd2cSJim Jagielski oldref="38">To Hide a Section</paragraph> 113*b1cdbd2cSJim Jagielski <list type="ordered"> 114*b1cdbd2cSJim Jagielski <listitem> 115*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3148697" role="listitem" l10n="U" oldref="39">Select the text that you want to hide in your document.</paragraph> 116*b1cdbd2cSJim Jagielski </listitem> 117*b1cdbd2cSJim Jagielski <listitem> 118*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153019" role="listitem" l10n="U" oldref="9">Choose <emph>Insert - Section</emph>.</paragraph> 119*b1cdbd2cSJim Jagielski </listitem> 120*b1cdbd2cSJim Jagielski <listitem> 121*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3148950" role="listitem" l10n="U" oldref="40">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> 122*b1cdbd2cSJim Jagielski </listitem> 123*b1cdbd2cSJim Jagielski <listitem> 124*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3153636" role="listitem" l10n="U" oldref="41">Click <item type="menuitem">Insert</item>.</paragraph> 125*b1cdbd2cSJim Jagielski </listitem> 126*b1cdbd2cSJim Jagielski </list> 127*b1cdbd2cSJim Jagielski <section id="relatedtopics"> 128*b1cdbd2cSJim Jagielski <embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/> 129*b1cdbd2cSJim Jagielski <embed href="text/swriter/guide/fields_userdata.xhp#fields_userdata"/> 130*b1cdbd2cSJim Jagielski <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> 131*b1cdbd2cSJim Jagielski <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> 132*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3148603" role="paragraph" l10n="U" oldref="10"><link href="text/swriter/01/04090000.xhp" name="Insert - Fields - Other">Insert - Fields - Other</link></paragraph> 133*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3147011" role="paragraph" l10n="U" oldref="11"><link href="text/swriter/01/04020000.xhp" name="Insert - Section">Insert - Section</link></paragraph> 134*b1cdbd2cSJim Jagielski <paragraph xml-lang="en-US" id="par_id3147029" role="paragraph" l10n="U" oldref="46"><link href="text/swriter/02/14020000.xhp" name="List of Operators">List of Operators</link></paragraph> 135*b1cdbd2cSJim Jagielski </section> 136*b1cdbd2cSJim Jagielski </body> 137*b1cdbd2cSJim Jagielski</helpdocument>