AllLangHelp_sdatabase.mk           |    2 +
 source/text/sdatabase/11090000.xhp |    6 +--
 source/text/sdatabase/SortDown.xhp |   25 +++++++++++++++
 source/text/sdatabase/SortUp.xhp   |   25 +++++++++++++++
 source/text/sdatabase/menuview.xhp |   60 +++++++++++++++++--------------------
 source/text/shared/02/12020000.xhp |    1 
 6 files changed, 83 insertions(+), 36 deletions(-)

New commits:
commit ce7c46b6887bf4c74252e8d6b047013a22675bb6
Author:     Olivier Hallot <olivier.hal...@libreoffice.org>
AuthorDate: Tue Aug 27 16:37:08 2024 -0300
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Tue Aug 27 22:09:30 2024 +0200

    tdf#162607 Remove dup's in hid2file.js, .uno:Sort*
    
    + Added separate help files for uno:Sortup and uno:SortDown commands
    + Removed bookmark from sdatabase/11090000.xhp and shared/02/12020000.xhp
    + updated menuview.xhp
    + refactor here and there
    
    Change-Id: I4c6038a89fe3eddf95b052f155e91a34ee4b164d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/172479
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/AllLangHelp_sdatabase.mk b/AllLangHelp_sdatabase.mk
index 9ee532b252..3e2c062fb2 100644
--- a/AllLangHelp_sdatabase.mk
+++ b/AllLangHelp_sdatabase.mk
@@ -103,6 +103,8 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,sdatabase,\
     helpcontent2/source/text/sdatabase/rep_pagenumbers \
     helpcontent2/source/text/sdatabase/rep_prop \
     helpcontent2/source/text/sdatabase/rep_sort \
+    helpcontent2/source/text/sdatabase/SortDown \
+    helpcontent2/source/text/sdatabase/SortUp \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/source/text/sdatabase/11090000.xhp 
b/source/text/sdatabase/11090000.xhp
index adc129c282..bb5056d76d 100644
--- a/source/text/sdatabase/11090000.xhp
+++ b/source/text/sdatabase/11090000.xhp
@@ -26,9 +26,7 @@
 <body>
 <section id="table_filter">
 <h1 id="hd_id3150702"><link href="text/sdatabase/11090000.xhp">Table 
Filter</link></h1><comment>UFI: file remains as a help id container - no 
browsing</comment></section>
-<bookmark branch="hid/DBACCESS_HID_DSADMIN_SUPPRESS_VERSIONCL" 
id="bm_id3154046" localize="false"/><paragraph role="paragraph" 
id="par_id3149164"><ahelp hid="." visibility="hidden">Some databases track 
changes to each record by assigning version number to fields that are changed. 
This number is incremented by 1 each time the field is changed. Displays the 
internal version number of the record in the database table.</ahelp></paragraph>
-<bookmark branch="hid/.uno:Sortup" id="bm_id5955967" localize="false"/>
-<h2 id="hd_id3154923">Sort Ascending<comment>in View - Sort menu</comment></h2>
-<paragraph role="paragraph" id="par_id3147559"><ahelp hid=".">Sorts the list 
of table names in ascending order starting at the beginning of the 
alphabet.</ahelp></paragraph>
+<bookmark branch="hid/DBACCESS_HID_DSADMIN_SUPPRESS_VERSIONCL" 
id="bm_id3154046" localize="false"/>
+<paragraph role="paragraph" id="par_id3149164"><ahelp hid="." 
visibility="hidden">Some databases track changes to each record by assigning 
version number to fields that are changed. This number is incremented by 1 each 
time the field is changed. Displays the internal version number of the record 
in the database table.</ahelp></paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/sdatabase/SortDown.xhp 
b/source/text/sdatabase/SortDown.xhp
new file mode 100644
index 0000000000..a0028384cd
--- /dev/null
+++ b/source/text/sdatabase/SortDown.xhp
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+    <!--
+    * 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/.
+    *
+    -->
+
+    <meta>
+        <topic id="textsdatabaseSortDownxhp" indexer="include" 
status="PUBLISH">
+        <title id="tit">Sort Descending</title>
+        <filename>/text/sdatabase/SortDown.xhp</filename>
+    </topic>
+</meta>
+<body>
+<bookmark branch="hid/.uno:SortDown" id="bm_id5470183" localize="false"/>
+<section id="sortdown">
+    <h1 id="hd_id321724784357398"><variable id="h1"><link 
href="text/sdatabase/SortDown.xhp">Sort Descending</link></variable></h1>
+    <paragraph id="par_id271724784357400" role="paragraph">Sorts the entries 
in the detail view in descending order.</paragraph>
+</section>
+</body>
+</helpdocument>
diff --git a/source/text/sdatabase/SortUp.xhp b/source/text/sdatabase/SortUp.xhp
new file mode 100644
index 0000000000..17b8766fb5
--- /dev/null
+++ b/source/text/sdatabase/SortUp.xhp
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+    <!--
+    * 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/.
+    *
+    -->
+
+    <meta>
+        <topic id="textsdatabaseSortupxhp" indexer="include" status="PUBLISH">
+        <title id="tit">Sort Ascending</title>
+        <filename>/text/sdatabase/SortUp.xhp</filename>
+    </topic>
+</meta>
+<body>
+<bookmark branch="hid/.uno:Sortup" id="bm_id5470183" localize="false"/>
+<section id="sortup">
+    <h1 id="hd_id321724784357398"><variable id="h1"><link 
href="text/sdatabase/SortUp.xhp">Sort Ascending</link></variable></h1>
+    <paragraph id="par_id271724784357400" role="paragraph">Sorts the entries 
in the detail view in ascending order.</paragraph>
+</section>
+</body>
+</helpdocument>
diff --git a/source/text/sdatabase/menuview.xhp 
b/source/text/sdatabase/menuview.xhp
index 899b789fa3..6d1b328267 100644
--- a/source/text/sdatabase/menuview.xhp
+++ b/source/text/sdatabase/menuview.xhp
@@ -19,7 +19,7 @@
 <helpdocument version="1.0">
 <meta>
 <topic id="textsharedexplorerdatabasemenuviewxml" indexer="include" 
status="PUBLISH">
-<title id="tit" xml-lang="en-US">View</title>
+<title id="tit">View</title>
 <filename>/text/sdatabase/menuview.xhp</filename>
 </topic>
 <history>
@@ -30,45 +30,43 @@
 <section id="view">
 <h1 id="par_idN1054D"><link href="text/sdatabase/menuview.xhp">View</link></h1>
 </section>
-<paragraph role="paragraph" id="par_idN1055D" xml-lang="en-US">The View menu 
of a database window.</paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBDatabaseObjectsMenu" 
id="bm_id2862636a" localize="false"/>
+<paragraph role="paragraph" id="par_idN1055D">The View menu of a database 
window.</paragraph>
+<bookmark branch="hid/.uno:DBDatabaseObjectsMenu" id="bm_id2862636a" 
localize="false"/>
 <h2 id="par_idN10560">Database Objects</h2>
-<paragraph role="paragraph" id="par_idN10564" xml-lang="en-US"><ahelp 
hid=".">Opens a submenu.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBViewForms" id="bm_id2447279" 
localize="false"/>
+<paragraph role="paragraph" id="par_idN10564"><ahelp hid=".">Opens a 
submenu.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBViewForms" id="bm_id2447279" localize="false"/>
 <h3 id="par_idN10567">Forms</h3>
-<paragraph role="paragraph" id="par_idN1056B" xml-lang="en-US"><ahelp 
hid=".">Selects the forms container and shows all forms in the detail 
view.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBViewReports" id="bm_id4928739" 
localize="false"/>
+<paragraph role="paragraph" id="par_idN1056B"><ahelp hid=".">Selects the forms 
container and shows all forms in the detail view.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBViewReports" id="bm_id4928739" localize="false"/>
 <h3 id="par_idN1056E">Reports</h3>
-<paragraph role="paragraph" id="par_idN10572" xml-lang="en-US"><ahelp 
hid=".">Selects the reports container and shows all reports in the detail 
view.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBViewQueries" id="bm_id1669362" 
localize="false"/>
+<paragraph role="paragraph" id="par_idN10572"><ahelp hid=".">Selects the 
reports container and shows all reports in the detail view.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBViewQueries" id="bm_id1669362" localize="false"/>
 <h3 id="par_idN10575">Queries</h3>
-<paragraph role="paragraph" id="par_idN10579" xml-lang="en-US"><ahelp 
hid=".">Selects the queries container and shows all queries in the detail 
view.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBViewTables" id="bm_id1720023" 
localize="false"/>
+<paragraph role="paragraph" id="par_idN10579"><ahelp hid=".">Selects the 
queries container and shows all queries in the detail view.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBViewTables" id="bm_id1720023" localize="false"/>
 <h3 id="par_idN1057C">Tables</h3>
-<paragraph role="paragraph" id="par_idN10580" xml-lang="en-US"><ahelp 
hid=".">Selects the tables container and shows all tables in the detail 
view.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBSort" id="bm_id2862636b" 
localize="false"/>
+<paragraph role="paragraph" id="par_idN10580"><ahelp hid=".">Selects the 
tables container and shows all tables in the detail view.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBSort" id="bm_id2862636b" localize="false"/>
 <h2 id="par_idN10583">Sort</h2>
-<paragraph role="paragraph" id="par_idN10587" xml-lang="en-US"><ahelp 
hid=".">Opens a submenu.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:Sortup" id="bm_id2862636c" 
localize="false"/>
-<h3 id="par_idN1058A">Ascending</h3>
-<paragraph role="paragraph" id="par_idN1058E" xml-lang="en-US"><ahelp 
hid=".">Sorts the entries in the detail view in ascending 
order.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:SortDown" id="bm_id2862636d" 
localize="false"/>
-<h3 id="par_idN10591">Descending</h3>
-<paragraph role="paragraph" id="par_idN10595" xml-lang="en-US"><ahelp 
hid=".">Sorts the entries in the detail view in descending 
order.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBPreview" id="bm_id24472791" 
localize="false"/>
+<paragraph role="paragraph" id="par_idN10587"><ahelp hid=".">Opens a 
submenu.</ahelp></paragraph>
+
+<embed href="text/sdatabase/SortUp.xhp#sortup"/>
+<embed href="text/sdatabase/SortDown.xhp#sortdown"/>
+
+<bookmark branch="hid/.uno:DBRefreshTables" id="bm_id2862636c" 
localize="false"/>
+<h2 id="par_idN105C6">Refresh Tables</h2>
+<paragraph role="paragraph" id="par_idN105CA"><ahelp hid=".">Refreshes the 
tables. </ahelp><comment>what happens? cool drinks? 
Icecream?</comment></paragraph>
+<bookmark branch="hid/.uno:DBPreview" id="bm_id24472791" localize="false"/>
 <h2 id="par_idN10598">Preview</h2>
-<paragraph role="paragraph" id="par_idN1059C" xml-lang="en-US"><ahelp 
hid=".">Opens a submenu.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBDisablePreview" 
id="bm_id49287391" localize="false"/>
+<paragraph role="paragraph" id="par_idN1059C"><ahelp hid=".">Opens a 
submenu.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBDisablePreview" id="bm_id49287391" 
localize="false"/>
 <h3 id="par_idN1059F">None</h3>
-<paragraph role="paragraph" id="par_idN105B5" xml-lang="en-US"><ahelp 
hid=".">Disables the preview in the database window.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBShowDocInfoPreview" 
id="bm_id16693621" localize="false"/>
+<paragraph role="paragraph" id="par_idN105B5"><ahelp hid=".">Disables the 
preview in the database window.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBShowDocInfoPreview" id="bm_id16693621" 
localize="false"/>
 <h3 id="par_idN105B8">Document Information</h3>
-<paragraph role="paragraph" id="par_idN105BC" xml-lang="en-US"><ahelp 
hid=".">The preview window displays the document information of a form or 
report.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBShowDocPreview" 
id="bm_id17200231" localize="false"/>
+<paragraph role="paragraph" id="par_idN105BC"><ahelp hid=".">The preview 
window displays the document information of a form or 
report.</ahelp></paragraph>
+<bookmark branch="hid/.uno:DBShowDocPreview" id="bm_id17200231" 
localize="false"/>
 <h3 id="par_idN105BF">Document</h3>
-<paragraph role="paragraph" id="par_idN105C3" xml-lang="en-US"><ahelp 
hid=".">The preview displays the document of a form or 
report.</ahelp></paragraph>
-<bookmark xml-lang="en-US" branch="hid/.uno:DBRefreshTables" 
id="bm_id2862636c" localize="false"/>
-<h2 id="par_idN105C6">Refresh Tables</h2>
-<paragraph role="paragraph" id="par_idN105CA" xml-lang="en-US"><ahelp 
hid=".">Refreshes the tables. </ahelp><comment>what happens? cool drinks? 
Icecream?</comment></paragraph>
+<paragraph role="paragraph" id="par_idN105C3"><ahelp hid=".">The preview 
displays the document of a form or report.</ahelp></paragraph>
 </body>
 </helpdocument>
diff --git a/source/text/shared/02/12020000.xhp 
b/source/text/shared/02/12020000.xhp
index 2988747bd0..f0282d7b8a 100644
--- a/source/text/shared/02/12020000.xhp
+++ b/source/text/shared/02/12020000.xhp
@@ -25,7 +25,6 @@
 </meta>
 <body>
 <bookmark branch="hid/.uno:SortDescending" id="bm_id1104741" localize="false"/>
-<bookmark branch="hid/.uno:SortDown" id="bm_id5470183" localize="false"/>
 <section id="sortdescending">
 <h1 id="hd_id3154689"><link href="text/shared/02/12020000.xhp">Sort 
Descending</link></h1>
 <paragraph role="paragraph" id="par_id3149987"><ahelp 
hid=".uno:SortDown">Sorts the data of the selected field or cell range in 
descending order.</ahelp> Text fields are sorted alphabetically, number fields 
are sorted by number.</paragraph>

Reply via email to