AllLangHelp_shared.mk                        |    1 
 source/text/shared/00/00000004.xhp           |   34 +++++++++++++++++++++++----
 source/text/shared/00/00000406.xhp           |    2 -
 source/text/shared/01/grid_and_helplines.xhp |   31 ++++++++++++++++++++----
 source/text/shared/02/01171400.xhp           |    4 +++
 source/text/shared/02/baseline_grid.xhp      |   32 +++++++++++++++++++++++++
 source/text/shared/optionen/01050100.xhp     |   21 ++++++++++++++--
 7 files changed, 112 insertions(+), 13 deletions(-)

New commits:
commit ef7c93eaa59b5cd398c2c9719084e44dd10cd1bf
Author:     Tamás Zolnai <[email protected]>
AuthorDate: Fri Dec 19 16:02:55 2025 +0100
Commit:     Tamás Zolnai <[email protected]>
CommitDate: Wed Dec 24 01:11:27 2025 +0100

    tdf#169806: Add new baseline grid feature to help pages.
    
    Change-Id: I4477a3609d25bf6363a42ba40063789e24b3c412
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/196160
    Tested-by: Jenkins
    Reviewed-by: Tamás Zolnai <[email protected]>

diff --git a/AllLangHelp_shared.mk b/AllLangHelp_shared.mk
index a7884a9aed..a07ab8cd82 100644
--- a/AllLangHelp_shared.mk
+++ b/AllLangHelp_shared.mk
@@ -593,6 +593,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,shared,\
     helpcontent2/source/text/shared/02/24080000 \
     helpcontent2/source/text/shared/02/24090000 \
     helpcontent2/source/text/shared/02/24100000 \
+    helpcontent2/source/text/shared/02/baseline_grid \
     helpcontent2/source/text/shared/02/basicshapes \
     helpcontent2/source/text/shared/02/blockarrows \
     helpcontent2/source/text/shared/02/callouts \
diff --git a/source/text/shared/00/00000004.xhp 
b/source/text/shared/00/00000004.xhp
index 1c817c19b1..88374689a8 100644
--- a/source/text/shared/00/00000004.xhp
+++ b/source/text/shared/00/00000004.xhp
@@ -368,8 +368,16 @@
 </section>
 
 <section id="displaygrid">
-    <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
-    <paragraph role="paragraph" id="par_id441686510141372">Choose 
<menuitem>View - Grid and Helplines - Display Grid</menuitem>.</paragraph>
+    <switch select="appl">
+        <case select="WRITER">
+            <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+            <paragraph role="paragraph" id="par_id441686510141373">Choose 
<menuitem>View - Grid(s) and Helplines - Display Grid</menuitem>.</paragraph>
+        </case>
+        <default>
+            <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+            <paragraph role="paragraph" id="par_id441686510141372">Choose 
<menuitem>View - Grid and Helplines - Display Grid</menuitem>.</paragraph>
+        </default>
+    </switch>
     <switch select="appl">
         <case select="IMPRESS">
             <embed href="text/shared/00/00000004.xhp#from_context"/>
@@ -407,8 +415,16 @@
 </section>
 
 <section id="snaptogrid">
-    <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
-    <paragraph role="paragraph" id="par_id391686514191362">Choose 
<menuitem>View - Grid and Helplines - Snap to Grid</menuitem>.</paragraph>
+    <switch select="appl">
+        <case select="WRITER">
+            <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+            <paragraph role="paragraph" id="par_id391686514191363">Choose 
<menuitem>View - Grid(s) and Helplines - Snap to Grid</menuitem>.</paragraph>
+        </case>
+        <default>
+            <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+            <paragraph role="paragraph" id="par_id391686514191362">Choose 
<menuitem>View - Grid and Helplines - Snap to Grid</menuitem>.</paragraph>
+        </default>
+    </switch>
     <switch select="appl">
         <case select="IMPRESS">
             <embed href="text/shared/00/00000004.xhp#from_context"/>
@@ -454,6 +470,16 @@
     </section>
 </section>
 
+<section id="baseline_grid_howtoget">
+    <switch select="appl">
+        <case select="WRITER">
+            <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+            <paragraph role="paragraph" id="par_id441686510141374">Choose 
<menuitem>View - Grids and Helplines - Display Baseline 
Grid</menuitem>.</paragraph>
+            <embed href="text/shared/00/00000004.xhp#from_tabUI"/>
+            <paragraph role="paragraph" id="par_id731686511199921">Choose 
<menuitem>View - Display Baseline Grid</menuitem>.</paragraph>
+        </case>
+    </switch>
+</section>
 
 <table id="tbl_id3145151">
 <tablerow>
diff --git a/source/text/shared/00/00000406.xhp 
b/source/text/shared/00/00000406.xhp
index 0d0b7eeb7e..9de3f0d86b 100644
--- a/source/text/shared/00/00000406.xhp
+++ b/source/text/shared/00/00000406.xhp
@@ -404,7 +404,7 @@
         <paragraph role="paragraph" id="par_id641711391402403">- then in the 
<menuitem>Options</menuitem> dialog, choose <menuitem>%PRODUCTNAME Writer - 
View</menuitem> or <menuitem>%PRODUCTNAME Writer/Web - 
View</menuitem>.</paragraph>
     </section>
     <paragraph id="par_id3146316" role="paragraph"><variable 
id="registerschattencursor">Open a text document, choose <switchinline 
select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - 
Preferences</emph></caseinline><defaultinline><emph>Tools - 
Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME 
Writer/%PRODUCTNAME Writer/Web - Formatting Aids</emph>.</variable></paragraph>
-    <paragraph id="par_id3153534" role="paragraph"><variable 
id="raster">Choose <switchinline select="sys"><caseinline 
select="MAC"><emph>%PRODUCTNAME - 
Preferences</emph></caseinline><defaultinline><emph>Tools - 
Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME 
Writer/%PRODUCTNAME Calc/%PRODUCTNAME Writer/Web - 
Grid</emph>.</variable></paragraph>
+    <paragraph id="par_id3153534" role="paragraph"><variable 
id="raster">Choose <switchinline select="sys"><caseinline 
select="MAC"><emph>%PRODUCTNAME - 
Preferences</emph></caseinline><defaultinline><emph>Tools - 
Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME 
Writer/%PRODUCTNAME Calc/%PRODUCTNAME Writer/Web - 
Grid(s)</emph>.</variable></paragraph>
     <section id="basic_fonts">
         <paragraph id="par_id3155961" role="paragraph">Open a text document, 
choose <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - 
Preferences</emph></caseinline><defaultinline><emph>Tools - 
Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME Writer - 
Basic Fonts (Western)</emph>.</paragraph>
         <paragraph id="par_id3159313" role="paragraph">Open a text document, 
choose <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - 
Preferences</emph></caseinline><defaultinline><emph>Tools - 
Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME Writer - 
Basic Fonts (Asian)</emph>. Asian language support must be enabled.</paragraph>
diff --git a/source/text/shared/01/grid_and_helplines.xhp 
b/source/text/shared/01/grid_and_helplines.xhp
index 8f745982a5..17c31b26bb 100644
--- a/source/text/shared/01/grid_and_helplines.xhp
+++ b/source/text/shared/01/grid_and_helplines.xhp
@@ -20,7 +20,7 @@
 
 <meta>
   <topic id="textshared01grid_and_helplinesxml" indexer="include" 
status="PUBLISH">
-    <title id="tit">Grid and Help Lines</title>
+    <title id="tit">Grid(s) and Help Lines</title>
     <filename>/text/shared/01/grid_and_helplines.xhp</filename>
   </topic>
 </meta>
@@ -28,12 +28,28 @@
 <body>
 <bookmark branch="hid/.uno:GridMenu" id="bm_id571696885112273" 
localize="false"/>
 <section id="grid_and_help_lines">
-<h1 id="hd_id033020170255198878"><link 
href="text/shared/01/grid_and_helplines.xhp">Grid and Help Lines</link></h1>
-<paragraph id="par_id033020170257116434" role="paragraph"><ahelp 
hid=".">Toggle the visibility of grid points and guide lines to help object 
moving and precise position in the current page.</ahelp></paragraph>
+<switch select="appl">
+  <case select="WRITER">
+    <h1 id="hd_id033020170255198879"><link 
href="text/shared/01/grid_and_helplines.xhp">Grid(s) and Help Lines</link></h1>
+    <paragraph id="par_id033020170257116435" role="paragraph"><ahelp 
hid=".">Toggle the visibility of grids and guide lines to help object moving 
and precise position in the current page.</ahelp></paragraph>
+  </case>
+  <default>
+    <h1 id="hd_id033020170255198878"><link 
href="text/shared/01/grid_and_helplines.xhp">Grid and Help Lines</link></h1>
+    <paragraph id="par_id033020170257116434" role="paragraph"><ahelp 
hid=".">Toggle the visibility of grid points and guide lines to help object 
moving and precise position in the current page.</ahelp></paragraph>
+  </default>
+</switch>
 </section>
 <section id="howtoget">
-  <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
-  <paragraph role="paragraph" id="par_id341686503897625">Choose <menuitem>View 
- Grid and Helplines</menuitem>.</paragraph>
+  <switch select="appl">
+    <case select="WRITER">
+      <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+      <paragraph role="paragraph" id="par_id341686503897626">Choose 
<menuitem>View - Grid(s) and Helplines</menuitem>.</paragraph>
+    </case>
+    <default>
+      <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+      <paragraph role="paragraph" id="par_id341686503897625">Choose 
<menuitem>View - Grid and Helplines</menuitem>.</paragraph>
+    </default>
+  </switch>
   <switch select="appl">
     <case select="IMPRESS">
       <embed href="text/shared/00/00000004.xhp#from_context"/>
@@ -64,5 +80,10 @@
 </switch>
 
 <embed href="text/shared/02/01171400.xhp#helplines_while_moving"/>
+
+<switch select="appl">
+  <case select="WRITER"><embed 
href="text/shared/02/baseline_grid.xhp#display_baseline_grid"/></case>
+</switch>
+
 </body>
 </helpdocument>
diff --git a/source/text/shared/02/01171400.xhp 
b/source/text/shared/02/01171400.xhp
index 31c54a0da6..025a5093d5 100644
--- a/source/text/shared/02/01171400.xhp
+++ b/source/text/shared/02/01171400.xhp
@@ -39,6 +39,10 @@
     <case select="CALC"/>
     <case select="MATH"/>
     <case select="BASE"/>
+    <case select="WRITER">
+      <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+      <paragraph role="paragraph" id="par_id501686521465918">Choose 
<menuitem>View - Grid(s) and Helplines - Helplines While 
Moving</menuitem>.</paragraph>
+    </case>
     <default>
       <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
       <paragraph role="paragraph" id="par_id501686521465917">Choose 
<menuitem>View - Grid and Helplines - Helplines While 
Moving</menuitem>.</paragraph>
diff --git a/source/text/shared/02/baseline_grid.xhp 
b/source/text/shared/02/baseline_grid.xhp
new file mode 100644
index 0000000000..9fd932b1e1
--- /dev/null
+++ b/source/text/shared/02/baseline_grid.xhp
@@ -0,0 +1,32 @@
+<?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/.
+ *
+-->
+<helpdocument version="1.0">
+<meta>
+    <topic id="textshared02baselinegridxml" indexer="include" status="PUBLISH">
+        <title id="tit">Display Baseline Grid</title>
+        <filename>/text/shared/02/baseline_grid.xhp</filename>
+    </topic>
+</meta>
+<body>
+    <bookmark branch="hid/.uno:BaselineGridVisible" id="bm_id281686516796298" 
localize="false"/>
+    <section id="display_baseline_grid">
+        <h1 id="hd_id3160476"><link 
href="text/shared/02/baseline_grid.xhp#display_baseline_grid">Display Baseline 
Grid</link></h1>
+        <paragraph id="par_id71849725" role="paragraph">Displays the baseline 
grid for page line-spacing.</paragraph>
+    </section>
+    <paragraph role="paragraph" id="par_id131686520802426">The page 
line-spacing feature aligns all affected text portions so that the the bottoms 
of the text lines align with an invisible grid. This invisible grid is called 
the baseline grid. This baseline grid is calculated based on the reference 
style defined for the page line-spacing. If page line-spacing is not enabled 
for a given page, the standard reference style (i.e. Body Text) is used to 
position the baseline grid.</paragraph>
+    <note id="par_id71849724">The baseline grid is not available in HTML / XML 
documents.</note>
+    <section id="howtoget">
+        <embed href="text/shared/00/00000004.xhp#baseline_grid_howtoget"/>
+    </section>
+    <section id="relatedtopics">
+        <paragraph role="paragraph" id="par_id3156738"><link 
href="text/swriter/guide/registertrue.xhp">Printing with Page 
line-spacing</link></paragraph>
+    </section>
+</body>
+</helpdocument>
diff --git a/source/text/shared/optionen/01050100.xhp 
b/source/text/shared/optionen/01050100.xhp
index ea915e6111..37d3c4efda 100644
--- a/source/text/shared/optionen/01050100.xhp
+++ b/source/text/shared/optionen/01050100.xhp
@@ -22,7 +22,7 @@
 
 <meta>
       <topic id="textsharedoptionen01050100xml" indexer="include" 
status="PUBLISH">
-         <title id="tit">Grid</title>
+         <title id="tit">Grid(s)</title>
          <filename>/text/shared/optionen/01050100.xhp</filename>
       </topic>
    </meta>
@@ -34,8 +34,16 @@
 </bookmark>
 <bookmark branch="hid/svx/ui/optgridpage/OptGridPage" id="bm_id3155552" 
localize="false"/>
 <bookmark branch="hid/svx/ui/optgridpage/@@nowidget@@" id="bm_@@nowidget@@" 
localize="false"/>
-<h1 id="hd_id3147226"><link 
href="text/shared/optionen/01050100.xhp">Grid</link></h1>
-         <paragraph id="par_id3147088" role="paragraph"><ahelp 
hid="svx/ui/optgridpage/OptGridPage">Specifies the settings for the 
configurable grid on your document pages. This grid helps you determine the 
exact position of your objects. You can also set this grid in line with the 
"magnetic" snap grid.</ahelp></paragraph>
+         <switch select="appl">
+            <case select="WRITER">
+               <h1 id="hd_id3147227"><link 
href="text/shared/optionen/01050100.xhp">Grid(s)</link></h1>
+               <paragraph id="par_id3147087" role="paragraph"><ahelp 
hid="svx/ui/optgridpage/OptGridPage">Specifies the settings for the 
configurable grid and baseline grid on your document pages. The grid helps you 
determine the exact position of your objects. You can also set this grid in 
line with the "magnetic" snap grid. The baseline grid helps you to verify 
whether page line-spacing is properly applied on the 
document.</ahelp></paragraph>
+            </case>
+            <default>
+               <h1 id="hd_id3147226"><link 
href="text/shared/optionen/01050100.xhp">Grid</link></h1>
+               <paragraph id="par_id3147088" role="paragraph"><ahelp 
hid="svx/ui/optgridpage/OptGridPage">Specifies the settings for the 
configurable grid on your document pages. This grid helps you determine the 
exact position of your objects. You can also set this grid in line with the 
"magnetic" snap grid.</ahelp></paragraph>
+            </default>
+         </switch>
       </section>
       <section id="howtoget">
          <embed href="text/shared/00/00000406.xhp#raster"/>
@@ -95,6 +103,13 @@
 </caseinline><caseinline select="IMPRESS">Sets the snap lines in front of all 
objects.
 </caseinline></switchinline></paragraph>
       <paragraph id="par_id1251869" role="paragraph"><ahelp hid="." 
visibility="hidden">Sets the snap lines in front of all 
objects.</ahelp></paragraph>
+      <switch select="appl">
+         <case select="WRITER">
+            <h2 id="hd_id3149619">Baseline Grid</h2>
+            <h3 id="hd_id3153778">Visible grid</h3>
+            <paragraph id="par_id3250393" role="paragraph">Specifies whether 
to display the baseline grid for page line-spacing.</paragraph>
+         </case>
+      </switch>
       <section id="relatedtopics">
          <paragraph id="par_id984221" role="paragraph">Set the grid color on 
<switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - 
Preferences</caseinline><defaultinline>Tools - 
Options</defaultinline></switchinline> - %PRODUCTNAME - <link 
href="text/shared/optionen/01012000.xhp">Application Colors</link>.</paragraph>
       </section>

Reply via email to