Files
help/source/text/sdatabase/tablewizard02.xhp
Ilmari Lauhakangas 7e42394ecb tdf#152323 drop name attribute from <link> elements
Replacement done with

find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
        's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'

(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)

translation files will be prepped with:

find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
    $'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'

(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)

Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-07 17:39:02 +00:00

64 lines
5.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<helpdocument version="1.0">
<meta>
<topic id="textsharedexplorerdatabasetablewizard02xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Table Wizard - Set Types and Formats</title>
<filename>/text/sdatabase/tablewizard02.xhp</filename>
</topic>
</meta>
<body>
<section id="settype">
<h1 id="par_idN10552"><link href="text/sdatabase/tablewizard02.xhp">Table Wizard - Set Types and Formats</link></h1>
<paragraph role="paragraph" id="par_idN10562" xml-lang="en-US">Specifies the field information for your selected fields.</paragraph>
</section>
<bookmark xml-lang="en-US" branch="hid/WIZARDS_HID_DLGTABLE_LB_SELFIELDNAMES" id="bm_id5365764" localize="false"/><h2 id="par_idN10565">Selected fields</h2>
<paragraph role="paragraph" id="par_idN10569" xml-lang="en-US"><ahelp hid=".">Select a field in order to edit the field information.</ahelp></paragraph>
<embed href="text/shared/autopi/01090100.xhp#updown"/>
<bookmark xml-lang="en-US" branch="hid/WIZARDS_HID_DLGTABLE_CMDMINUS" id="bm_id8947111.00000001" localize="false"/><h3 id="par_idN10574"></h3>
<paragraph role="paragraph" id="par_idN10578" xml-lang="en-US"><ahelp hid=".">Remove the selected field from the list box.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/WIZARDS_HID_DLGTABLE_CMDPLUS" id="bm_id7230140" localize="false"/><h3 id="par_idN1057B">+</h3>
<paragraph role="paragraph" id="par_idN1057F" xml-lang="en-US"><ahelp hid=".">Add a new data field to the list box.</ahelp></paragraph>
<h2 id="par_idN10582">Field information</h2>
<bookmark xml-lang="en-US" branch="hid/WIZARDS_HID_DLGTABLE_COLNAME" id="bm_id1665089" localize="false"/><h3 id="par_idN10586">Field name</h3>
<paragraph role="paragraph" id="par_idN1058A" xml-lang="en-US"><ahelp hid=".">Displays the name of the selected data field. If you want, you can enter a new name.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_ENT_TYPE" id="bm_id1665090" localize="false"/>
<h3 id="par_idN1058D">Field type</h3>
<paragraph role="paragraph" id="par_idN10591" xml-lang="en-US"><ahelp hid=".">Select a field type.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_ENT_AUTOINCREMENT" id="bm_id1055330" localize="false"/><h3 id="hd_id5486922">AutoValue</h3>
<paragraph role="paragraph" id="par_id4198736" xml-lang="en-US"><ahelp hid=".">If set to Yes, the values for this data field are generated by the database engine.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_ENT_REQUIRED" id="bm_id3498336" localize="false"/><h3 id="par_idN106A0">Entry required</h3>
<paragraph role="paragraph" id="par_idN106A6" xml-lang="en-US"><ahelp hid=".">If set to Yes, this field must not be empty.</ahelp><comment>not in spec doc</comment></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_ENT_LEN" id="bm_id3498337" localize="false"/>
<h3 id="par_idN10594">Length</h3>
<paragraph role="paragraph" id="par_idN10598" xml-lang="en-US"><ahelp hid=".">Specifies the number of characters for the data field.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_ENT_SCALE" id="bm_id3498338" localize="false"/>
<h3 id="par_idN1059B">Decimal places</h3>
<paragraph role="paragraph" id="par_idN1059F" xml-lang="en-US"><ahelp hid=".">Specifies the number of decimal places for the data field. This option is only available for numerical or decimal data fields.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_ENT_BOOL_DEFAULT" id="bm_id3498339" localize="false"/>
<h3 id="par_idN105A2">Default value</h3>
<paragraph role="paragraph" id="par_idN105A6" xml-lang="en-US"><ahelp hid=".">Specifies the default value for a Yes/No field.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_TAB_AUTOINCREMENTVALUE" id="bm_id8732871.00000001" localize="false"/><h3 id="par_idN10730">Auto-increment statement</h3>
<paragraph role="paragraph" id="par_id6706747" xml-lang="en-US"><ahelp hid=".">Enter the SQL command specifier that instructs the data source to auto-increment a specified Integer data field.</ahelp> For example, the following MySQL statement used the AUTO_INCREMENT statement to increase the "id" field each time the statement creates a data field:</paragraph>
<paragraph role="code" id="par_id8946501" xml-lang="en-US">CREATE TABLE "table1" ("id" INTEGER AUTO_INCREMENT)</paragraph>
<paragraph role="paragraph" id="par_id4846949" xml-lang="en-US">For this example, you must enter AUTO_INCREMENT into the Auto-increment statement box.</paragraph>
<paragraph role="paragraph" id="par_idN105A9" xml-lang="en-US"><link href="text/sdatabase/tablewizard03.xhp">Table Wizard - Set primary key</link></paragraph>
</body>
</helpdocument>