Files
help/source/text/shared/01/xformsdataaddcon.xhp
Christian Lohmaier 77cb682cd1 convert plain paragraphs with role="heading" → h<level>
i.e. without child elements and also drop the language that was changed
to implied in the dtd previously/defaults to en-US unless specified.

This change doesn't affect translations, only the content of the
paragraph/headings is extracted.

done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'

(all permutations re order of attributes, and xml-lang="en-US" being
optional / implied)

Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:10 +00:00

55 lines
2.7 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="textshared01xformsdataaddconxhp" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">Add Condition</title>
<filename>/text/shared/01/xformsdataaddcon.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id8615680"><bookmark_value>conditions;items in Data Navigator</bookmark_value>
<bookmark_value>XForms;conditions</bookmark_value>
</bookmark>
<bookmark xml-lang="en-US" branch="hid/svx/ui/addconditiondialog/@@nowidget@@" id="bm_@@nowidget@@" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/svx/ui/addconditiondialog/AddConditionDialog" id="bm_id5080723" localize="false"/>
<h1 id="par_idN1053E">Add Condition</h1>
<paragraph xml-lang="en-US" id="par_idN10542" role="paragraph"><ahelp hid=".">Add a condition in this subdialog of the Add Item / Edit Item dialog of the Data Navigator.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/svx/ui/addconditiondialog/condition" id="bm_id5080721" localize="false"/>
<h2 id="par_idN10561">Condition</h2>
<paragraph xml-lang="en-US" id="par_idN10565" role="paragraph"><ahelp hid=".">Enter a condition.</ahelp><comment>examples?</comment></paragraph>
<bookmark xml-lang="en-US" branch="hid/svx/ui/addconditiondialog/result" id="bm_id5080722" localize="false"/>
<h2 id="par_idN10568">Result</h2>
<paragraph xml-lang="en-US" id="par_idN1056C" role="paragraph"><ahelp hid=".">Displays a preview of the result.</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/svx/ui/addconditiondialog/edit" id="bm_id5074007" localize="false"/>
<h2 id="par_idN1056F">Edit Namespaces</h2>
<paragraph xml-lang="en-US" id="par_idN10573" role="paragraph"><ahelp hid=".">Opens the Form Namespaces dialog where you can add, edit, or delete namespaces.</ahelp></paragraph>
</body>
</helpdocument>