1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir<helpdocument version="1.0"> 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir<!-- 5*cdf0e10cSrcweir*********************************************************************** 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 12*cdf0e10cSrcweir * 13*cdf0e10cSrcweir * This file is part of OpenOffice.org. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 17*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 18*cdf0e10cSrcweir * 19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 26*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 28*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 29*cdf0e10cSrcweir * 30*cdf0e10cSrcweir ************************************************************************ 31*cdf0e10cSrcweir --> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir<meta> 35*cdf0e10cSrcweir <topic id="textswriterguidehidden_textxml" indexer="include" status="PUBLISH"> 36*cdf0e10cSrcweir <title xml-lang="en-US" id="tit">Hiding Text</title> 37*cdf0e10cSrcweir <filename>/text/swriter/guide/hidden_text.xhp</filename> 38*cdf0e10cSrcweir </topic> 39*cdf0e10cSrcweir </meta> 40*cdf0e10cSrcweir <body> 41*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3148856"><bookmark_value>text; hiding</bookmark_value> 42*cdf0e10cSrcweir <bookmark_value>sections;hiding</bookmark_value> 43*cdf0e10cSrcweir <bookmark_value>paragraphs;hiding</bookmark_value> 44*cdf0e10cSrcweir <bookmark_value>hiding;text, with conditions</bookmark_value> 45*cdf0e10cSrcweir <bookmark_value>variables;for hiding text</bookmark_value> 46*cdf0e10cSrcweir</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> 47*cdf0e10cSrcweir<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> 48*cdf0e10cSrcweir</variable></paragraph> 49*cdf0e10cSrcweir <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> 50*cdf0e10cSrcweir <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> 51*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id5174108" role="heading" level="2" l10n="NEW">To Create a Variable</paragraph> 52*cdf0e10cSrcweir <list type="ordered"> 53*cdf0e10cSrcweir <listitem> 54*cdf0e10cSrcweir <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> 55*cdf0e10cSrcweir </listitem> 56*cdf0e10cSrcweir <listitem> 57*cdf0e10cSrcweir <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> 58*cdf0e10cSrcweir </listitem> 59*cdf0e10cSrcweir <listitem> 60*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3149970" role="listitem" l10n="U" oldref="22">Click "General" in the <emph>Format </emph>list.</paragraph> 61*cdf0e10cSrcweir </listitem> 62*cdf0e10cSrcweir <listitem> 63*cdf0e10cSrcweir <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> 64*cdf0e10cSrcweir </listitem> 65*cdf0e10cSrcweir <listitem> 66*cdf0e10cSrcweir <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> 67*cdf0e10cSrcweir </listitem> 68*cdf0e10cSrcweir <listitem> 69*cdf0e10cSrcweir <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> 70*cdf0e10cSrcweir </listitem> 71*cdf0e10cSrcweir <listitem> 72*cdf0e10cSrcweir <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> 73*cdf0e10cSrcweir </listitem> 74*cdf0e10cSrcweir </list> 75*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id3156245" role="heading" level="2" l10n="U" 76*cdf0e10cSrcweir oldref="27">To Hide Text</paragraph> 77*cdf0e10cSrcweir <list type="ordered"> 78*cdf0e10cSrcweir <listitem> 79*cdf0e10cSrcweir <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> 80*cdf0e10cSrcweir </listitem> 81*cdf0e10cSrcweir <listitem> 82*cdf0e10cSrcweir <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> 83*cdf0e10cSrcweir </listitem> 84*cdf0e10cSrcweir <listitem> 85*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3155325" role="listitem" l10n="U" oldref="29">Click "Hidden Text" in the <emph>Type </emph>list.</paragraph> 86*cdf0e10cSrcweir </listitem> 87*cdf0e10cSrcweir <listitem> 88*cdf0e10cSrcweir <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> 89*cdf0e10cSrcweir </listitem> 90*cdf0e10cSrcweir <listitem> 91*cdf0e10cSrcweir <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> 92*cdf0e10cSrcweir </listitem> 93*cdf0e10cSrcweir <listitem> 94*cdf0e10cSrcweir <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> 95*cdf0e10cSrcweir </listitem> 96*cdf0e10cSrcweir </list> 97*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id3154256" role="heading" level="2" l10n="U" 98*cdf0e10cSrcweir oldref="33">To Hide a Paragraph</paragraph> 99*cdf0e10cSrcweir <list type="ordered"> 100*cdf0e10cSrcweir <listitem> 101*cdf0e10cSrcweir <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> 102*cdf0e10cSrcweir </listitem> 103*cdf0e10cSrcweir <listitem> 104*cdf0e10cSrcweir <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> 105*cdf0e10cSrcweir </listitem> 106*cdf0e10cSrcweir <listitem> 107*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3155902" role="listitem" l10n="U" oldref="6">Click "Hidden Paragraph" in the <emph>Type </emph>list.</paragraph> 108*cdf0e10cSrcweir </listitem> 109*cdf0e10cSrcweir <listitem> 110*cdf0e10cSrcweir <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> 111*cdf0e10cSrcweir </listitem> 112*cdf0e10cSrcweir <listitem> 113*cdf0e10cSrcweir <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> 114*cdf0e10cSrcweir </listitem> 115*cdf0e10cSrcweir </list> 116*cdf0e10cSrcweir <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> 117*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="hd_id3148675" role="heading" level="2" l10n="U" 118*cdf0e10cSrcweir oldref="38">To Hide a Section</paragraph> 119*cdf0e10cSrcweir <list type="ordered"> 120*cdf0e10cSrcweir <listitem> 121*cdf0e10cSrcweir <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> 122*cdf0e10cSrcweir </listitem> 123*cdf0e10cSrcweir <listitem> 124*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3153019" role="listitem" l10n="U" oldref="9">Choose <emph>Insert - Section</emph>.</paragraph> 125*cdf0e10cSrcweir </listitem> 126*cdf0e10cSrcweir <listitem> 127*cdf0e10cSrcweir <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> 128*cdf0e10cSrcweir </listitem> 129*cdf0e10cSrcweir <listitem> 130*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_id3153636" role="listitem" l10n="U" oldref="41">Click <item type="menuitem">Insert</item>.</paragraph> 131*cdf0e10cSrcweir </listitem> 132*cdf0e10cSrcweir </list> 133*cdf0e10cSrcweir <section id="relatedtopics"> 134*cdf0e10cSrcweir <embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/> 135*cdf0e10cSrcweir <embed href="text/swriter/guide/fields_userdata.xhp#fields_userdata"/> 136*cdf0e10cSrcweir <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> 137*cdf0e10cSrcweir <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> 138*cdf0e10cSrcweir <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> 139*cdf0e10cSrcweir <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> 140*cdf0e10cSrcweir <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> 141*cdf0e10cSrcweir </section> 142*cdf0e10cSrcweir </body> 143*cdf0e10cSrcweir</helpdocument>