From 0ef840bfd6928f312b3ece83c5a8bbd225767646 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Thu, 17 Jun 2021 20:15:48 -0300 Subject: Mute l10n on some internal field names Change-Id: Ie794e15c31def6111eccd83f3e7a744984045cf6 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/117310 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos (cherry picked from commit 0849d16f3b86339a8906c496f89db64d2995fa6f) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/117311 --- source/text/swriter/01/04090200.xhp | 58 ++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/source/text/swriter/01/04090200.xhp b/source/text/swriter/01/04090200.xhp index c5b2343b92..8ff2a5a16a 100644 --- a/source/text/swriter/01/04090200.xhp +++ b/source/text/swriter/01/04090200.xhp @@ -37,8 +37,8 @@ databases;in conditions hiding; database fields -Defining Conditions - +

Defining Conditions +

Conditions are logical expressions that you can use to control the display of fields and sections in your document. Although the following examples apply to fields, they also apply to sections. You can define conditions for the following field types: @@ -75,7 +75,7 @@ - If you leave the Condition box empty, the condition is interpreted as not being met. + If you leave the Condition box empty, the condition is interpreted as not being met. When you define a condition, use the same elements for defining a formula, namely comparative operators, mathematical and statistical functions, number formats, variables and constants. You can use the following types of variables when you define a condition: @@ -93,7 +93,7 @@ You cannot use internal variables, such as page and chapter numbers, in condition expression. - Conditions and Variables +

Conditions and Variables

The following examples use a variable called "x": @@ -144,8 +144,8 @@
- The "equal" comparative operator must be represented by two equal signs (==) in a condition. For example, if you define a variable "x" with the value of 1, you can enter the condition as x==1. - User Data + The "equal" comparative operator must be represented by two equal signs (==) in a condition. For example, if you define a variable "x" with the value of 1, you can enter the condition as x==1. +

User Data

You can include user data when you define conditions. To change your user data, choose %PRODUCTNAME - PreferencesTools - Options - $[officename] - User data. User data must be entered in the form of strings. You can query the user data with "==" (EQ), "!=" (NEQ), or "!"(NOT). The following table lists user data variables and their meanings: @@ -159,7 +159,7 @@ - user_firstname + user_firstname First name @@ -167,7 +167,7 @@ - user_lastname + user_lastname Last name @@ -175,7 +175,7 @@ - user_initials + user_initials Initials @@ -183,7 +183,7 @@ - user_company + user_company Company @@ -191,7 +191,7 @@ - user_street + user_street Street @@ -199,7 +199,7 @@ - user_country + user_country Country @@ -207,7 +207,7 @@ - user_zipcode + user_zipcode Zip code @@ -215,7 +215,7 @@ - user_city + user_city City @@ -223,7 +223,7 @@ - user_title + user_title Title @@ -231,7 +231,7 @@ - user_position + user_position Position @@ -239,7 +239,7 @@ - user_tel_work + user_tel_work Business telephone number @@ -247,7 +247,7 @@ - user_tel_home + user_tel_home Home telephone number @@ -255,7 +255,7 @@ - user_fax + user_fax Fax number @@ -263,7 +263,7 @@ - user_email + user_email Email address @@ -271,7 +271,7 @@ - user_state + user_state State (not in all $[officename] versions) @@ -280,7 +280,7 @@
For example, to hide a paragraph, text, or a section from a user with a specific initial, such as "LM", enter the condition: user_initials=="LM". - Conditions and Database Fields +

Conditions and Database Fields

You can define conditions for accessing databases, or database fields. For example, you can check the contents of a database field from a condition, or use database fields in logical expressions. The following table lists a few more examples of using databases in conditions: @@ -331,18 +331,18 @@
- Note the difference between the boolean NOT "!" and the comparative operator not equal "!=" (NEQ). + Note the difference between the boolean NOT "!" and the comparative operator not equal "!=" (NEQ). When you refer to a database field in a condition, use the form Databasename.Tablename.Fieldname. If one of the names contains a character that is an operator, such as a minus sign (-), enclose the name in square brackets, for example, Databasename.[Table-name].Fieldname. Never use spaces inside field names.UFI: fixes bug #i25781# - but see #i25983#. Fixes also #i19571# - Example: Hiding an Empty Database Field +

Example: Hiding an Empty Database Field

You may want to create a condition that hides an empty field, for example, if the COMPANY field is empty for some of the data records. Select the Hidden Paragraph list entry, and type the following condition: Addressbook.Addresses.Company EQ "" or type the following NOT Addressbook.Addresses.Company If the COMPANY database field is empty, the condition is true and the paragraph is hidden. - To display hidden paragraphs on the screen, choose %PRODUCTNAME - PreferencesTools - Options - %PRODUCTNAME Writer - View, and clear the Hidden paragraphs check box. - Examples of Conditions in Fields + To display hidden paragraphs on the screen, choose %PRODUCTNAME - PreferencesTools - Options - %PRODUCTNAME Writer - View, and clear the Hidden paragraphs check box. +

Examples of Conditions in Fields

The following examples use the Conditional text field, although they can be applied to any fields that can be linked to a condition. The syntax used for conditions is also used for the Hidden text, Hidden paragraph, Any record or Next record fields. - To display conditional text based on the number of pages: +

To display conditional text based on the number of pages:

Choose Insert - Field - More Fields, and then click the Functions tab. @@ -363,7 +363,7 @@ Click Insert, and then click Close. - To display conditional text based on a user-defined Variable +

To display conditional text based on a user-defined Variable

Choose Insert - Field - More Fields, and then click the Variables tab. @@ -397,7 +397,7 @@ To edit the contents of the "Profit" variable, double-click the variable field. - To display conditional text based on the contents of a database field: +

To display conditional text based on the contents of a database field:

The first part of this example inserts a space between the "First Name" and "Last Name" fields in a document, and the second part inserts text based on the contents of a field. This example requires that an address data source is registered with $[officename]. -- cgit