1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*19f38498Smseidel
382a1df74SAndrew Rist<!--***********************************************************
4*19f38498Smseidel *
582a1df74SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
682a1df74SAndrew Rist * or more contributor license agreements.  See the NOTICE file
782a1df74SAndrew Rist * distributed with this work for additional information
882a1df74SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
982a1df74SAndrew Rist * to you under the Apache License, Version 2.0 (the
1082a1df74SAndrew Rist * "License"); you may not use this file except in compliance
1182a1df74SAndrew Rist * with the License.  You may obtain a copy of the License at
12*19f38498Smseidel *
1382a1df74SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*19f38498Smseidel *
1582a1df74SAndrew Rist * Unless required by applicable law or agreed to in writing,
1682a1df74SAndrew Rist * software distributed under the License is distributed on an
1782a1df74SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1882a1df74SAndrew Rist * KIND, either express or implied.  See the License for the
1982a1df74SAndrew Rist * specific language governing permissions and limitations
2082a1df74SAndrew Rist * under the License.
21*19f38498Smseidel *
2282a1df74SAndrew Rist ***********************************************************-->
2382a1df74SAndrew Rist
24*19f38498Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textswriter0104090005xml" indexer="include">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Variables</title>
28cdf0e10cSrcweir<filename>/text/swriter/01/04090005.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
32cdf0e10cSrcweir<section id="variablen">
33cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id8526261"><bookmark_value>user-defined fields, restriction</bookmark_value>
34cdf0e10cSrcweir</bookmark>
35cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/SW_HID_FLD_VAR" id="bm_id3151266" localize="false"/>
36cdf0e10cSrcweir<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>
37cdf0e10cSrcweir<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>
38cdf0e10cSrcweir</section>
39cdf0e10cSrcweir<section id="howtoget">
40cdf0e10cSrcweir<embed href="text/swriter/00/00000404.xhp#feldvariablen"/>
41cdf0e10cSrcweir</section>
42cdf0e10cSrcweir<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>
43cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARTYPE" id="bm_id3154692" localize="false"/>
44cdf0e10cSrcweir<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>
45cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#feldtyp"/>
46cdf0e10cSrcweir<table id="tbl_id3145416">
47cdf0e10cSrcweir<tablerow>
48cdf0e10cSrcweir<tablecell>
49cdf0e10cSrcweir<paragraph role="tablehead" id="par_id3150703" xml-lang="en-US" l10n="U" oldref="4">Type</paragraph>
50cdf0e10cSrcweir</tablecell>
51cdf0e10cSrcweir<tablecell>
52cdf0e10cSrcweir<paragraph role="tablehead" id="par_id3154096" xml-lang="en-US" l10n="U" oldref="5">Description</paragraph>
53cdf0e10cSrcweir</tablecell>
54cdf0e10cSrcweir</tablerow>
55cdf0e10cSrcweir<tablerow>
56cdf0e10cSrcweir<tablecell>
57cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149803" xml-lang="en-US" l10n="U" oldref="6">Set Variable</paragraph>
58cdf0e10cSrcweir</tablecell>
59cdf0e10cSrcweir<tablecell>
60cdf0e10cSrcweir<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>
61cdf0e10cSrcweir</tablecell>
62cdf0e10cSrcweir</tablerow>
63cdf0e10cSrcweir<tablerow>
64cdf0e10cSrcweir<tablecell>
65cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3154571" xml-lang="en-US" l10n="U" oldref="8">Show Variable</paragraph>
66cdf0e10cSrcweir</tablecell>
67cdf0e10cSrcweir<tablecell>
68cdf0e10cSrcweir<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>
69cdf0e10cSrcweir</tablecell>
70cdf0e10cSrcweir</tablerow>
71cdf0e10cSrcweir<tablerow>
72cdf0e10cSrcweir<tablecell>
73cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3147531" xml-lang="en-US" l10n="U" oldref="10">DDE field</paragraph>
74cdf0e10cSrcweir</tablecell>
75cdf0e10cSrcweir<tablecell>
76cdf0e10cSrcweir<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>
77cdf0e10cSrcweir</tablecell>
78cdf0e10cSrcweir</tablerow>
79cdf0e10cSrcweir<tablerow>
80cdf0e10cSrcweir<tablecell>
81cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3159196" xml-lang="en-US" l10n="U" oldref="12">Insert Formula</paragraph>
82cdf0e10cSrcweir</tablecell>
83cdf0e10cSrcweir<tablecell>
84cdf0e10cSrcweir<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>
85cdf0e10cSrcweir</tablecell>
86cdf0e10cSrcweir</tablerow>
87cdf0e10cSrcweir<tablerow>
88cdf0e10cSrcweir<tablecell>
89cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149494" xml-lang="en-US" l10n="U" oldref="14">Input field</paragraph>
90cdf0e10cSrcweir</tablecell>
91cdf0e10cSrcweir<tablecell>
92cdf0e10cSrcweir<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>
93cdf0e10cSrcweir<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>
94cdf0e10cSrcweir<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>
95cdf0e10cSrcweir</tablecell>
96cdf0e10cSrcweir</tablerow>
97cdf0e10cSrcweir<tablerow>
98cdf0e10cSrcweir<tablecell>
99cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3149034" xml-lang="en-US" l10n="U" oldref="16">Number range</paragraph>
100cdf0e10cSrcweir</tablecell>
101cdf0e10cSrcweir<tablecell>
102cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3152772" xml-lang="en-US" l10n="U" oldref="17">Inserts automatic numbering for tables, graphics, or text frames.</paragraph>
103cdf0e10cSrcweir</tablecell>
104cdf0e10cSrcweir</tablerow>
105cdf0e10cSrcweir<tablerow>
106cdf0e10cSrcweir<tablecell>
107cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3147073" xml-lang="en-US" l10n="U" oldref="18">Set page variable</paragraph>
108cdf0e10cSrcweir</tablecell>
109cdf0e10cSrcweir<tablecell>
110cdf0e10cSrcweir<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>
111cdf0e10cSrcweir</tablecell>
112cdf0e10cSrcweir</tablerow>
113cdf0e10cSrcweir<tablerow>
114cdf0e10cSrcweir<tablecell>
115cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3156267" xml-lang="en-US" l10n="U" oldref="20">Show Page Variable</paragraph>
116cdf0e10cSrcweir</tablecell>
117cdf0e10cSrcweir<tablecell>
118cdf0e10cSrcweir<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>
119cdf0e10cSrcweir</tablecell>
120cdf0e10cSrcweir</tablerow>
121cdf0e10cSrcweir<tablerow>
122cdf0e10cSrcweir<tablecell>
123cdf0e10cSrcweir<paragraph role="tablecontent" id="par_id3145779" xml-lang="en-US" l10n="U" oldref="22">User Field</paragraph>
124cdf0e10cSrcweir</tablecell>
125cdf0e10cSrcweir<tablecell>
126cdf0e10cSrcweir<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>
127cdf0e10cSrcweir</tablecell>
128cdf0e10cSrcweir</tablerow>
129cdf0e10cSrcweir</table>
130cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#hinweis"/>
131cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARNUMFORMAT" id="bm_id3148875" localize="false"/>
132cdf0e10cSrcweir<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>
133cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#format"/>
134cdf0e10cSrcweir<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>
135cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_VAR:ED_VARNAME" id="bm_id3150108" localize="false"/>
136cdf0e10cSrcweir<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>
137cdf0e10cSrcweir<embed href="text/swriter/01/04090002.xhp#name"/>
138cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_VAR:ED_VARVALUE" id="bm_id3150119" localize="false"/>
139cdf0e10cSrcweir<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>
140cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#wert"/>
141cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARFORMAT" id="bm_id3155871" localize="false"/>
142cdf0e10cSrcweir<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>
143cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARSELECTION" id="bm_id3150684" localize="false"/>
144cdf0e10cSrcweir<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>
145cdf0e10cSrcweir<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>
146cdf0e10cSrcweir<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
147cdf0e10cSrcweir</caseinline><defaultinline>Ctrl</defaultinline></switchinline> and double-click the field.</paragraph>
148cdf0e10cSrcweir<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> (&lt;Value&gt;) or to a closing HTML (&lt;/Value&gt;) tag when the file is saved as an HTML document, depending on the option that you select.</paragraph>
149cdf0e10cSrcweir<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>
150cdf0e10cSrcweir<paragraph role="heading" id="hd_id3155969" xml-lang="en-US" level="2" l10n="U" oldref="27">Formula</paragraph>
151cdf0e10cSrcweir<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>
152cdf0e10cSrcweir<embed href="text/swriter/01/04090003.xhp#hinweis"/>
153cdf0e10cSrcweir<embed href="text/swriter/01/04090001.xhp#korrektur"/>
154cdf0e10cSrcweir<section id="unsichtbar">
155cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:CheckBox:TP_FLD_VAR:CB_VARINVISIBLE" id="bm_id3156226" localize="false"/>
156cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149229" xml-lang="en-US" level="2" l10n="U" oldref="29">Invisible</paragraph>
157cdf0e10cSrcweir<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>
158cdf0e10cSrcweir</section>
159cdf0e10cSrcweir<paragraph role="heading" id="hd_id3146326" xml-lang="en-US" level="2" l10n="U" oldref="39">Chapter numbering</paragraph>
160cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3146340" xml-lang="en-US" l10n="U" oldref="40">Sets the options for resetting chapter numbers.</paragraph>
161cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_VAR:LB_VARCHAPTERLEVEL" id="bm_id3149829" localize="false"/>
162cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147456" xml-lang="en-US" level="3" l10n="U" oldref="41">Level</paragraph>
163cdf0e10cSrcweir<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>
164cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_VAR:ED_VARSEPARATOR" id="bm_id3147605" localize="false"/>
165cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147594" xml-lang="en-US" level="3" l10n="U" oldref="43">Separator</paragraph>
166cdf0e10cSrcweir<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>
167cdf0e10cSrcweir<section id="uebernehmen">
168cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/SW_HID_FLDVAR_APPLY" id="bm_id3147069" localize="false"/>
169cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147057" xml-lang="en-US" level="2" l10n="U" oldref="31">Apply</paragraph>
170cdf0e10cSrcweir<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>
171cdf0e10cSrcweir<embed href="text/swriter/02/14040000.xhp#syuebernehmen"/>
172cdf0e10cSrcweir</section>
173cdf0e10cSrcweir<section id="loeschen">
174cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/SW_HID_FLDVAR_DELETE" id="bm_id3151092" localize="false"/>
175cdf0e10cSrcweir<paragraph role="heading" id="hd_id3151080" xml-lang="en-US" level="2" l10n="U" oldref="33">Delete</paragraph>
176cdf0e10cSrcweir<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>
177cdf0e10cSrcweir<table id="tbl_id3154080">
178cdf0e10cSrcweir<tablerow>
179cdf0e10cSrcweir<tablecell>
180cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145318" xml-lang="en-US" l10n="E">
181cdf0e10cSrcweir<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>
182*19f38498Smseidel</image></paragraph>
183cdf0e10cSrcweir</tablecell>
184cdf0e10cSrcweir<tablecell>
185cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150169" xml-lang="en-US" l10n="U" oldref="35">Delete</paragraph>
186cdf0e10cSrcweir</tablecell>
187cdf0e10cSrcweir</tablerow>
188cdf0e10cSrcweir</table>
189cdf0e10cSrcweir</section>
190cdf0e10cSrcweir</body>
191cdf0e10cSrcweir</helpdocument>
192