1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir<helpdocument version="1.0"> 3cdf0e10cSrcweir 4*82a1df74SAndrew Rist<!--*********************************************************** 5cdf0e10cSrcweir * 6*82a1df74SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 7*82a1df74SAndrew Rist * or more contributor license agreements. See the NOTICE file 8*82a1df74SAndrew Rist * distributed with this work for additional information 9*82a1df74SAndrew Rist * regarding copyright ownership. The ASF licenses this file 10*82a1df74SAndrew Rist * to you under the Apache License, Version 2.0 (the 11*82a1df74SAndrew Rist * "License"); you may not use this file except in compliance 12*82a1df74SAndrew Rist * with the License. You may obtain a copy of the License at 13*82a1df74SAndrew Rist * 14*82a1df74SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 15*82a1df74SAndrew Rist * 16*82a1df74SAndrew Rist * Unless required by applicable law or agreed to in writing, 17*82a1df74SAndrew Rist * software distributed under the License is distributed on an 18*82a1df74SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19*82a1df74SAndrew Rist * KIND, either express or implied. See the License for the 20*82a1df74SAndrew Rist * specific language governing permissions and limitations 21*82a1df74SAndrew Rist * under the License. 22*82a1df74SAndrew Rist * 23*82a1df74SAndrew Rist ***********************************************************--> 24*82a1df74SAndrew Rist 25*82a1df74SAndrew Rist 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir<meta> 29cdf0e10cSrcweir<topic id="textswriter0104090005xml" indexer="include"> 30cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Variables</title> 31cdf0e10cSrcweir<filename>/text/swriter/01/04090005.xhp</filename> 32cdf0e10cSrcweir</topic> 33cdf0e10cSrcweir</meta> 34cdf0e10cSrcweir<body> 35cdf0e10cSrcweir<section id="variablen"> 36cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id8526261"><bookmark_value>user-defined fields, restriction</bookmark_value> 37cdf0e10cSrcweir</bookmark> 38cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/SW_HID_FLD_VAR" id="bm_id3151266" localize="false"/> 39cdf0e10cSrcweir<paragraph role="heading" id="hd_id3153716" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/swriter/01/04090005.xhp" name="Variables">Variables</link></paragraph> 40cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150764" xml-lang="en-US" l10n="U" oldref="2">Variable fields let you add dynamic content to your document. For example, you can use a variable to reset the page numbering.</paragraph> 41cdf0e10cSrcweir</section> 42cdf0e10cSrcweir<section id="howtoget"> 43cdf0e10cSrcweir<embed href="text/swriter/00/00000404.xhp#feldvariablen"/> 44cdf0e10cSrcweir</section> 45cdf0e10cSrcweir<paragraph role="warning" id="par_id3149759" xml-lang="en-US" l10n="U" oldref="3">User-defined fields are only available in the current document.</paragraph> 46cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARTYPE" id="bm_id3154692" localize="false"/> 47cdf0e10cSrcweir<paragraph role="paragraph" id="par_id0903200802243625" xml-lang="en-US" l10n="NEW"><ahelp hid="." visibility="hidden">Lists the available field types. To add a field to your document, click a field type, click a field in the <emph>Select </emph>list, and then click <emph>Insert</emph>.</ahelp></paragraph> 48cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#feldtyp"/> 49cdf0e10cSrcweir<table id="tbl_id3145416"> 50cdf0e10cSrcweir<tablerow> 51cdf0e10cSrcweir<tablecell> 52cdf0e10cSrcweir<paragraph role="tablehead" id="par_id3150703" xml-lang="en-US" l10n="U" oldref="4">Type</paragraph> 53cdf0e10cSrcweir</tablecell> 54cdf0e10cSrcweir<tablecell> 55cdf0e10cSrcweir<paragraph role="tablehead" id="par_id3154096" xml-lang="en-US" l10n="U" oldref="5">Description</paragraph> 56cdf0e10cSrcweir</tablecell> 57cdf0e10cSrcweir</tablerow> 58cdf0e10cSrcweir<tablerow> 59cdf0e10cSrcweir<tablecell> 60cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149803" xml-lang="en-US" l10n="U" oldref="6">Set Variable</paragraph> 61cdf0e10cSrcweir</tablecell> 62cdf0e10cSrcweir<tablecell> 63cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3150996" xml-lang="en-US" l10n="U" oldref="7">Defines a variable and its value. You can change the value of a variable by clicking in front of the variable field, and then choosing <emph>Edit - Field</emph>.</paragraph> 64cdf0e10cSrcweir</tablecell> 65cdf0e10cSrcweir</tablerow> 66cdf0e10cSrcweir<tablerow> 67cdf0e10cSrcweir<tablecell> 68cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3154571" xml-lang="en-US" l10n="U" oldref="8">Show Variable</paragraph> 69cdf0e10cSrcweir</tablecell> 70cdf0e10cSrcweir<tablecell> 71cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3153669" xml-lang="en-US" l10n="U" oldref="9">Inserts the current value of the variable that you click in the <emph>Selection </emph>list.</paragraph> 72cdf0e10cSrcweir</tablecell> 73cdf0e10cSrcweir</tablerow> 74cdf0e10cSrcweir<tablerow> 75cdf0e10cSrcweir<tablecell> 76cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3147531" xml-lang="en-US" l10n="U" oldref="10">DDE field</paragraph> 77cdf0e10cSrcweir</tablecell> 78cdf0e10cSrcweir<tablecell> 79cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149684" xml-lang="en-US" l10n="U" oldref="11">Inserts a <link href="text/shared/00/00000005.xhp#dde" name="DDE">DDE</link> link into the document, that you can update as often as you want through the assigned name.</paragraph> 80cdf0e10cSrcweir</tablecell> 81cdf0e10cSrcweir</tablerow> 82cdf0e10cSrcweir<tablerow> 83cdf0e10cSrcweir<tablecell> 84cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3159196" xml-lang="en-US" l10n="U" oldref="12">Insert Formula</paragraph> 85cdf0e10cSrcweir</tablecell> 86cdf0e10cSrcweir<tablecell> 87cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3151322" xml-lang="en-US" l10n="U" oldref="13">Inserts a fixed number, or the result of a formula.</paragraph> 88cdf0e10cSrcweir</tablecell> 89cdf0e10cSrcweir</tablerow> 90cdf0e10cSrcweir<tablerow> 91cdf0e10cSrcweir<tablecell> 92cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149494" xml-lang="en-US" l10n="U" oldref="14">Input field</paragraph> 93cdf0e10cSrcweir</tablecell> 94cdf0e10cSrcweir<tablecell> 95cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3154829" xml-lang="en-US" l10n="U" oldref="15">Inserts a new value for a variable or a User Field.</paragraph> 96cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149098" xml-lang="en-US" l10n="U" oldref="37">The value of a variable in an Input field is only valid from where the field is inserted and onwards. To change the value of the variable later in the document, insert another Input field of the same name, but with a different value. However, the value of a User Field is changed globally.</paragraph> 97cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3151255" xml-lang="en-US" l10n="U" oldref="38">The variables are displayed in the <emph>Selection</emph> field. When you click the <emph>Insert</emph> button, the dialog<link href="text/swriter/01/04090100.xhp" name="Input Field"><emph>Input Field</emph></link> appears, where you can enter the new value or additional text as a remark.</paragraph> 98cdf0e10cSrcweir</tablecell> 99cdf0e10cSrcweir</tablerow> 100cdf0e10cSrcweir<tablerow> 101cdf0e10cSrcweir<tablecell> 102cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149034" xml-lang="en-US" l10n="U" oldref="16">Number range</paragraph> 103cdf0e10cSrcweir</tablecell> 104cdf0e10cSrcweir<tablecell> 105cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3152772" xml-lang="en-US" l10n="U" oldref="17">Inserts automatic numbering for tables, graphics, or text frames.</paragraph> 106cdf0e10cSrcweir</tablecell> 107cdf0e10cSrcweir</tablerow> 108cdf0e10cSrcweir<tablerow> 109cdf0e10cSrcweir<tablecell> 110cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3147073" xml-lang="en-US" l10n="U" oldref="18">Set page variable</paragraph> 111cdf0e10cSrcweir</tablecell> 112cdf0e10cSrcweir<tablecell> 113cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3154389" xml-lang="en-US" l10n="U" oldref="19">Inserts a reference point in the document, after which the page count restarts. Select "on" to enable the reference point, and "off" to disable it. You can also enter an offset to start the page count at a different number.</paragraph> 114cdf0e10cSrcweir</tablecell> 115cdf0e10cSrcweir</tablerow> 116cdf0e10cSrcweir<tablerow> 117cdf0e10cSrcweir<tablecell> 118cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3156267" xml-lang="en-US" l10n="U" oldref="20">Show Page Variable</paragraph> 119cdf0e10cSrcweir</tablecell> 120cdf0e10cSrcweir<tablecell> 121cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3150588" xml-lang="en-US" l10n="U" oldref="21">Displays the number of pages from the "Set page variable" reference point to this field.</paragraph> 122cdf0e10cSrcweir</tablecell> 123cdf0e10cSrcweir</tablerow> 124cdf0e10cSrcweir<tablerow> 125cdf0e10cSrcweir<tablecell> 126cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3145779" xml-lang="en-US" l10n="U" oldref="22">User Field</paragraph> 127cdf0e10cSrcweir</tablecell> 128cdf0e10cSrcweir<tablecell> 129cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3151377" xml-lang="en-US" l10n="U" oldref="23">Inserts a custom global variable. You can use the User Field to define a variable for a condition statement. When you change a User Field, all instances of the variable in the document are updated.</paragraph> 130cdf0e10cSrcweir</tablecell> 131cdf0e10cSrcweir</tablerow> 132cdf0e10cSrcweir</table> 133cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#hinweis"/> 134cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARNUMFORMAT" id="bm_id3148875" localize="false"/> 135cdf0e10cSrcweir<paragraph role="paragraph" id="par_id0903200802243892" xml-lang="en-US" l10n="NEW"><ahelp hid="." visibility="hidden">Click the format that you want to apply to the selected field, or click "Additional formats" to define a custom format.</ahelp></paragraph> 136cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#format"/> 137cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3148886" xml-lang="en-US" l10n="U" oldref="25">For user-defined fields, click the format that you want to apply in the <emph>Format </emph>list, or click "Additional formats" to define a custom format.</paragraph> 138cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_VAR:ED_VARNAME" id="bm_id3150108" localize="false"/> 139cdf0e10cSrcweir<paragraph role="paragraph" id="par_id0903200802243880" xml-lang="en-US" l10n="NEW"><ahelp hid="." visibility="hidden">Type the name of the user-defined field that you want to create.</ahelp></paragraph> 140cdf0e10cSrcweir<embed href="text/swriter/01/04090002.xhp#name"/> 141cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_VAR:ED_VARVALUE" id="bm_id3150119" localize="false"/> 142cdf0e10cSrcweir<paragraph role="paragraph" id="par_id0903200802243951" xml-lang="en-US" l10n="NEW"><ahelp hid="." visibility="hidden">Enter the contents that you want to add to a user-defined field.</ahelp></paragraph> 143cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#wert"/> 144cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARFORMAT" id="bm_id3155871" localize="false"/> 145cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155860" xml-lang="en-US" l10n="U" oldref="26"><ahelp hid="SW_LISTBOX_TP_FLD_VAR_LB_VARFORMAT">In the <emph>Format</emph> list, define if the value is inserted as text or a number.</ahelp></paragraph> 146cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARSELECTION" id="bm_id3150684" localize="false"/> 147cdf0e10cSrcweir<paragraph role="heading" id="hd_id3888363" xml-lang="en-US" level="2" l10n="NEW">Selection<comment>on "Document" and "DocInformation" tab page this is called "Select", on the other tab pages "Selection"</comment></paragraph> 148cdf0e10cSrcweir<paragraph role="paragraph" id="par_id7453535" xml-lang="en-US" l10n="NEW"><ahelp hid="SW:LISTBOX:TP_FLD_DOK:LB_DOKSELECTION">Lists the available fields for the field type selected in the <emph>Type </emph>list. To insert a field, click the field, and then click <emph>Insert</emph>.</ahelp></paragraph> 149cdf0e10cSrcweir<paragraph role="tip" id="par_id3326822" xml-lang="en-US" l10n="NEW">To quickly insert a field from the list, hold down <switchinline select="sys"><caseinline select="MAC">Command 150cdf0e10cSrcweir</caseinline><defaultinline>Ctrl</defaultinline></switchinline> and double-click the field.</paragraph> 151cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150696" xml-lang="en-US" l10n="U" oldref="36">In an HTML document, two additional fields are available for the "Set variable" field type: HTML_ON and HTML_OFF. The text that you type in the <emph>Value </emph>box is converted to an opening HTML <link href="text/shared/00/00000002.xhp#tags" name="tag">tag</link> (<Value>) or to a closing HTML (</Value>) tag when the file is saved as an HTML document, depending on the option that you select.</paragraph> 152cdf0e10cSrcweir<paragraph role="tip" id="par_id3149555" xml-lang="en-US" l10n="U" oldref="46">If you double-click an entry while holding the Ctrl key or select the desired variable and press the spacebar, it is immediately inserted into your document.</paragraph> 153cdf0e10cSrcweir<paragraph role="heading" id="hd_id3155969" xml-lang="en-US" level="2" l10n="U" oldref="27">Formula</paragraph> 154cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155982" xml-lang="en-US" l10n="U" oldref="28">This option is only available if the "Insert formula" field type is selected.</paragraph> 155cdf0e10cSrcweir<embed href="text/swriter/01/04090003.xhp#hinweis"/> 156cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#korrektur"/> 157cdf0e10cSrcweir<section id="unsichtbar"> 158cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:CheckBox:TP_FLD_VAR:CB_VARINVISIBLE" id="bm_id3156226" localize="false"/> 159cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149229" xml-lang="en-US" level="2" l10n="U" oldref="29">Invisible</paragraph> 160cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3156233" xml-lang="en-US" l10n="U" oldref="30"><ahelp hid="SW_CHECKBOX_TP_FLD_VAR_CB_VARINVISIBLE">Hides the field contents in the document.</ahelp> The field is inserted as a thin gray mark in the document. This option is only available for the "Set Variable" and "User Field" field types.</paragraph> 161cdf0e10cSrcweir</section> 162cdf0e10cSrcweir<paragraph role="heading" id="hd_id3146326" xml-lang="en-US" level="2" l10n="U" oldref="39">Chapter numbering</paragraph> 163cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146340" xml-lang="en-US" l10n="U" oldref="40">Sets the options for resetting chapter numbers.</paragraph> 164cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARCHAPTERLEVEL" id="bm_id3149829" localize="false"/> 165cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147456" xml-lang="en-US" level="3" l10n="U" oldref="41">Level</paragraph> 166cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3149836" xml-lang="en-US" l10n="U" oldref="42"><ahelp hid="SW_LISTBOX_TP_FLD_VAR_LB_VARCHAPTERLEVEL">Choose the heading or chapter level at which to restart numbering in the document.</ahelp></paragraph> 167cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_VAR:ED_VARSEPARATOR" id="bm_id3147605" localize="false"/> 168cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147594" xml-lang="en-US" level="3" l10n="U" oldref="43">Separator</paragraph> 169cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3148846" xml-lang="en-US" l10n="U" oldref="44"><ahelp hid="SW_EDIT_TP_FLD_VAR_ED_VARSEPARATOR">Type the character that you want to use as a separator between the heading or chapter levels.</ahelp></paragraph> 170cdf0e10cSrcweir<section id="uebernehmen"> 171cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/SW_HID_FLDVAR_APPLY" id="bm_id3147069" localize="false"/> 172cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147057" xml-lang="en-US" level="2" l10n="U" oldref="31">Apply</paragraph> 173cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155562" xml-lang="en-US" l10n="U" oldref="32"><ahelp hid="HID_FLDVAR_APPLY">Adds the user-defined field to the <emph>Selection</emph> list.</ahelp></paragraph> 174cdf0e10cSrcweir<embed href="text/swriter/02/14040000.xhp#syuebernehmen"/> 175cdf0e10cSrcweir</section> 176cdf0e10cSrcweir<section id="loeschen"> 177cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/SW_HID_FLDVAR_DELETE" id="bm_id3151092" localize="false"/> 178cdf0e10cSrcweir<paragraph role="heading" id="hd_id3151080" xml-lang="en-US" level="2" l10n="U" oldref="33">Delete</paragraph> 179cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154769" xml-lang="en-US" l10n="U" oldref="34"><ahelp hid="HID_FLDVAR_DELETE">Removes the user-defined field from the selection list. You can only remove fields that are not used in the current document.</ahelp> To remove a field that is used in the current document from the list, first delete all instances of the field in the document, and then remove it from the list.</paragraph> 180cdf0e10cSrcweir<table id="tbl_id3154080"> 181cdf0e10cSrcweir<tablerow> 182cdf0e10cSrcweir<tablecell> 183cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145318" xml-lang="en-US" l10n="E"> 184cdf0e10cSrcweir<image id="img_id3153293" src="svx/res/nu02.png" width="0.423cm" height="0.423cm"><alt id="alt_id3153293" xml-lang="en-US">Icon</alt> 185cdf0e10cSrcweir </image></paragraph> 186cdf0e10cSrcweir</tablecell> 187cdf0e10cSrcweir<tablecell> 188cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150169" xml-lang="en-US" l10n="U" oldref="35">Delete</paragraph> 189cdf0e10cSrcweir</tablecell> 190cdf0e10cSrcweir</tablerow> 191cdf0e10cSrcweir</table> 192cdf0e10cSrcweir 193cdf0e10cSrcweir</section> 194cdf0e10cSrcweir</body> 195cdf0e10cSrcweir</helpdocument> 196