merge the formfield patch from ooo-build
[ooovba.git] / helpcontent2 / source / text / swriter / guide / fields_userdata.xhp
blob3efa954c88eaf9c1a2a40758641eaf2cc06fb217
1 <?xml version="1.0" encoding="UTF-8"?>
2 <helpdocument version="1.0">
4 <!--
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: soffice2xmlhelp.xsl,v $
14 * $Revision: 1.10 $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
34 -->
37 <meta>
38 <topic id="textswriterguidefields_userdataxml" indexer="include" status="PUBLISH">
39 <title xml-lang="en-US" id="tit">Querying User Data in Fields or Conditions</title>
40 <filename>/text/swriter/guide/fields_userdata.xhp</filename>
41 </topic>
42 </meta>
43 <body>
44 <bookmark xml-lang="en-US" branch="index" id="bm_id3153398"><bookmark_value>fields; user data</bookmark_value>
45 <bookmark_value>user data; querying</bookmark_value>
46 <bookmark_value>conditions; user data fields</bookmark_value>
47 <bookmark_value>hiding;text, from specific users</bookmark_value>
48 <bookmark_value>text; hiding from specific users, with conditions</bookmark_value>
49 <bookmark_value>user variables in conditions/fields</bookmark_value>
50 </bookmark>
51 <paragraph xml-lang="en-US" id="hd_id3153398" role="heading" level="1" l10n="U"
52 oldref="59"><variable id="fields_userdata"><link href="text/swriter/guide/fields_userdata.xhp" name="Querying User Data in Fields or Conditions">Querying User Data in Fields or Conditions</link>
53 </variable></paragraph>
54 <paragraph xml-lang="en-US" id="par_id3154239" role="paragraph" l10n="U" oldref="60">You can access and compare some user data from conditions or fields. For example, you can compare user data with the following operators:</paragraph>
55 <table id="tbl_id3154255">
56 <tablerow>
57 <tablecell>
58 <paragraph xml-lang="en-US" id="par_id3155889" role="tablehead" l10n="U" oldref="94">Operator</paragraph>
59 </tablecell>
60 <tablecell>
61 <paragraph xml-lang="en-US" id="par_id3147110" role="tablehead" l10n="U" oldref="95">Meaning</paragraph>
62 </tablecell>
63 </tablerow>
64 <tablerow>
65 <tablecell>
66 <paragraph xml-lang="en-US" id="par_id3150508" role="tablecontent" l10n="U" oldref="96">== or EQ</paragraph>
67 </tablecell>
68 <tablecell>
69 <paragraph xml-lang="en-US" id="par_id3150531" role="tablecontent" l10n="U" oldref="97">equals</paragraph>
70 </tablecell>
71 </tablerow>
72 <tablerow>
73 <tablecell>
74 <paragraph xml-lang="en-US" id="par_id3150725" role="tablecontent" l10n="U" oldref="98">!= or NEQ</paragraph>
75 </tablecell>
76 <tablecell>
77 <paragraph xml-lang="en-US" id="par_id3150748" role="tablecontent" l10n="U" oldref="99">is not equal to</paragraph>
78 </tablecell>
79 </tablerow>
80 </table>
82 <paragraph xml-lang="en-US" id="par_id3153167" role="paragraph" l10n="U" oldref="101">If you want, you can use a condition to hide specific text in your document from a specific user.</paragraph>
83 <list type="ordered">
84 <listitem>
85 <paragraph xml-lang="en-US" id="par_id3153190" role="listitem" l10n="U" oldref="102">Select the text in the document that you want to hide.</paragraph>
86 </listitem>
87 <listitem>
88 <paragraph xml-lang="en-US" id="par_id3145273" role="listitem" l10n="U" oldref="103">Choose <emph>Insert - Section</emph>.</paragraph>
89 </listitem>
90 <listitem>
91 <paragraph xml-lang="en-US" id="par_id3145297" role="listitem" l10n="U" oldref="104">In the <item type="menuitem">Hide</item>
92 <emph/>area, select the <item type="menuitem">Hide</item> check box.</paragraph>
93 </listitem>
94 <listitem>
95 <paragraph xml-lang="en-US" id="par_id3155533" role="listitem" l10n="U" oldref="105">In the <emph>With Condition</emph> box, type <emph>user_lastname == "Doe"</emph>, where "Doe" is the last name of the user that you want to hide the text from. </paragraph>
96 </listitem>
97 <listitem>
98 <paragraph xml-lang="en-US" id="par_id3155573" role="listitem" l10n="U" oldref="107">Click <emph>Insert</emph> and then save the document.</paragraph>
99 </listitem>
100 </list>
101 <paragraph xml-lang="en-US" id="par_id3147760" role="note" l10n="U" oldref="108">The name of the hidden section can still be seen in the Navigator.</paragraph>
102 <paragraph xml-lang="en-US" id="par_id3147777" role="paragraph" l10n="U" oldref="61">The following table is a list of the user variables that you can access when defining a condition or a field:</paragraph>
103 <table id="tbl_id3147793">
104 <tablerow>
105 <tablecell>
106 <paragraph xml-lang="en-US" id="par_id3147819" role="tablehead" l10n="U" oldref="62">User variables</paragraph>
107 </tablecell>
108 <tablecell>
109 <paragraph xml-lang="en-US" id="par_id3147218" role="tablehead" l10n="U" oldref="63">Meaning</paragraph>
110 </tablecell>
111 </tablerow>
112 <tablerow>
113 <tablecell>
114 <paragraph xml-lang="en-US" id="par_id3147245" role="code" l10n="U" oldref="64">user_firstname</paragraph>
115 </tablecell>
116 <tablecell>
117 <paragraph xml-lang="en-US" id="par_id3147268" role="paragraph" l10n="U" oldref="65">First name</paragraph>
118 </tablecell>
119 </tablerow>
120 <tablerow>
121 <tablecell>
122 <paragraph xml-lang="en-US" id="par_id3145592" role="code" l10n="U" oldref="66">user_lastname</paragraph>
123 </tablecell>
124 <tablecell>
125 <paragraph xml-lang="en-US" id="par_id3145615" role="paragraph" l10n="U" oldref="67">Last name</paragraph>
126 </tablecell>
127 </tablerow>
128 <tablerow>
129 <tablecell>
130 <paragraph xml-lang="en-US" id="par_id3145642" role="code" l10n="U" oldref="68">user_initials</paragraph>
131 </tablecell>
132 <tablecell>
133 <paragraph xml-lang="en-US" id="par_id3145666" role="paragraph" l10n="U" oldref="69">Initials</paragraph>
134 </tablecell>
135 </tablerow>
136 <tablerow>
137 <tablecell>
138 <paragraph xml-lang="en-US" id="par_id3151200" role="code" l10n="U" oldref="70">user_company</paragraph>
139 </tablecell>
140 <tablecell>
141 <paragraph xml-lang="en-US" id="par_id3151223" role="paragraph" l10n="U" oldref="71">Company</paragraph>
142 </tablecell>
143 </tablerow>
144 <tablerow>
145 <tablecell>
146 <paragraph xml-lang="en-US" id="par_id3151250" role="code" l10n="U" oldref="72">user_street</paragraph>
147 </tablecell>
148 <tablecell>
149 <paragraph xml-lang="en-US" id="par_id3152912" role="paragraph" l10n="U" oldref="73">Street</paragraph>
150 </tablecell>
151 </tablerow>
152 <tablerow>
153 <tablecell>
154 <paragraph xml-lang="en-US" id="par_id3152940" role="code" l10n="U" oldref="74">user_country</paragraph>
155 </tablecell>
156 <tablecell>
157 <paragraph xml-lang="en-US" id="par_id3152963" role="paragraph" l10n="U" oldref="75">Country</paragraph>
158 </tablecell>
159 </tablerow>
160 <tablerow>
161 <tablecell>
162 <paragraph xml-lang="en-US" id="par_id3152990" role="code" l10n="U" oldref="76">user_zipcode</paragraph>
163 </tablecell>
164 <tablecell>
165 <paragraph xml-lang="en-US" id="par_id3145679" role="paragraph" l10n="U" oldref="77">Zip Code</paragraph>
166 </tablecell>
167 </tablerow>
168 <tablerow>
169 <tablecell>
170 <paragraph xml-lang="en-US" id="par_id3145706" role="code" l10n="U" oldref="78">user_city</paragraph>
171 </tablecell>
172 <tablecell>
173 <paragraph xml-lang="en-US" id="par_id3145729" role="paragraph" l10n="U" oldref="79">City</paragraph>
174 </tablecell>
175 </tablerow>
176 <tablerow>
177 <tablecell>
178 <paragraph xml-lang="en-US" id="par_id3145756" role="code" l10n="U" oldref="80">user_title</paragraph>
179 </tablecell>
180 <tablecell>
181 <paragraph xml-lang="en-US" id="par_id3145779" role="paragraph" l10n="U" oldref="81">Title</paragraph>
182 </tablecell>
183 </tablerow>
184 <tablerow>
185 <tablecell>
186 <paragraph xml-lang="en-US" id="par_id3156284" role="code" l10n="U" oldref="82">user_position</paragraph>
187 </tablecell>
188 <tablecell>
189 <paragraph xml-lang="en-US" id="par_id3156307" role="paragraph" l10n="U" oldref="83">Position</paragraph>
190 </tablecell>
191 </tablerow>
192 <tablerow>
193 <tablecell>
194 <paragraph xml-lang="en-US" id="par_id3156334" role="code" l10n="U" oldref="84">user_tel_work</paragraph>
195 </tablecell>
196 <tablecell>
197 <paragraph xml-lang="en-US" id="par_id3156357" role="paragraph" l10n="U" oldref="85">Business telephone number</paragraph>
198 </tablecell>
199 </tablerow>
200 <tablerow>
201 <tablecell>
202 <paragraph xml-lang="en-US" id="par_id3156384" role="code" l10n="U" oldref="86">user_tel_home</paragraph>
203 </tablecell>
204 <tablecell>
205 <paragraph xml-lang="en-US" id="par_id3149728" role="paragraph" l10n="U" oldref="87">Home telephone number</paragraph>
206 </tablecell>
207 </tablerow>
208 <tablerow>
209 <tablecell>
210 <paragraph xml-lang="en-US" id="par_id3149756" role="code" l10n="U" oldref="88">user_fax</paragraph>
211 </tablecell>
212 <tablecell>
213 <paragraph xml-lang="en-US" id="par_id3149778" role="paragraph" l10n="U" oldref="89">Fax number</paragraph>
214 </tablecell>
215 </tablerow>
216 <tablerow>
217 <tablecell>
218 <paragraph xml-lang="en-US" id="par_id3149806" role="code" l10n="U" oldref="90">user_email</paragraph>
219 </tablecell>
220 <tablecell>
221 <paragraph xml-lang="en-US" id="par_id3147294" role="paragraph" l10n="U" oldref="91">E-mail address</paragraph>
222 </tablecell>
223 </tablerow>
224 <tablerow>
225 <tablecell>
226 <paragraph xml-lang="en-US" id="par_id3147321" role="code" l10n="U" oldref="92">user_state</paragraph>
227 </tablecell>
228 <tablecell>
229 <paragraph xml-lang="en-US" id="par_id3147344" role="paragraph" l10n="U" oldref="93">State</paragraph>
230 </tablecell>
231 </tablerow>
232 </table>
234 <section id="relatedtopics">
235 <embed href="text/swriter/guide/fields.xhp#fields"/>
236 <embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/>
237 <embed href="text/swriter/guide/hidden_text.xhp#hidden_text"/>
238 <paragraph xml-lang="en-US" id="par_id3147392" role="paragraph" l10n="C"><link href="text/swriter/02/14020000.xhp" name="List of operators">List of operators</link></paragraph>
239 </section>
240 </body>
241 </helpdocument>