summaryrefslogtreecommitdiff
path: root/source/text
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2023-11-01 14:09:00 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-11-01 20:33:44 +0100
commitb28faac2c5fe5600c97b40ba65e773b7f75c299c (patch)
tree172e1df68ab50887af0cb145687d326ca7f04ba3 /source/text
parent5218a19ee667dd6486e75178ab029587978fa11b (diff)
tdf#155876 UI cmds Calc-Insert menu (16)
+ refactoring of Insert Date and time Change-Id: I95db763eb928d683b501cc35b06150cf5f061306 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158770 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text')
-rw-r--r--source/text/scalc/00/00000404.xhp41
-rw-r--r--source/text/scalc/01/InsertCurrentDate.xhp33
-rw-r--r--source/text/scalc/01/InsertCurrentTime.xhp33
-rw-r--r--source/text/scalc/main0104.xhp7
4 files changed, 109 insertions, 5 deletions
diff --git a/source/text/scalc/00/00000404.xhp b/source/text/scalc/00/00000404.xhp
index 6badbd4001..a3ccef1a6b 100644
--- a/source/text/scalc/00/00000404.xhp
+++ b/source/text/scalc/00/00000404.xhp
@@ -30,6 +30,47 @@
<body>
<h1 id="hd_id3149346">Insert Menu</h1>
+<section id="inserttime">
+ <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+ <paragraph role="paragraph" id="par_id521698857081583">Choose <menuitem>Insert - Time</menuitem>.</paragraph>
+ <embed href="text/shared/00/00000004.xhp#from_tabUI"/>
+ <paragraph role="paragraph" id="par_id501698857084857">Choose <menuitem>Insert - Fields - Time</menuitem>.</paragraph>
+ <paragraph role="paragraph" id="par_id601698857088328">On the <menuitem>Insert</menuitem> menu of the <menuitem>Insert</menuitem> tab, choose <menuitem>Time</menuitem>.</paragraph>
+ <embed href="text/shared/00/00000004.xhp#from_toolbars"/>
+ <table id="tab_id71698856461426">
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id311698857095297" role="paragraph"><image src="cmd/lc_timefield.svg" id="img_id451698856461428" width="1cm" height="1cm"><alt id="alt_id251698856461429">Icon Insert Time</alt></image></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id831698857100474" role="paragraph">Insert Time</paragraph>
+ </tablecell>
+ </tablerow>
+ </table>
+ <embed href="text/shared/00/00000004.xhp#from_keyboard"/>
+ <paragraph role="paragraph" id="par_id441698857104573"><switchinline select="sys"><caseinline select="MAC"><keycode>Command</keycode></caseinline><defaultinline><keycode>Ctrl</keycode></defaultinline></switchinline><keycode> + Shift + ;</keycode> (semicolon)</paragraph>
+</section>
+<section id="insertdate">
+ <embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
+ <paragraph role="paragraph" id="par_id891698856307267">Choose <menuitem>Insert - Date</menuitem>.</paragraph>
+ <embed href="text/shared/00/00000004.xhp#from_tabUI"/>
+ <paragraph role="paragraph" id="par_id581698856407913">Choose <menuitem>Insert - Fields - Date</menuitem>.</paragraph>
+ <paragraph role="paragraph" id="par_id911698856281237">On the <menuitem>Insert</menuitem> menu of the <menuitem>Insert</menuitem> tab, choose <menuitem>Date</menuitem>.</paragraph>
+ <embed href="text/shared/00/00000004.xhp#from_toolbars"/>
+ <table id="tab_id71698856461426">
+ <tablerow>
+ <tablecell>
+ <paragraph id="par_id761698856461427" role="paragraph"><image src="cmd/lc_datefield.svg" id="img_id451698856461428" width="1cm" height="1cm"><alt id="alt_id251698856461429">Icon Insert Date</alt></image></paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id61698856461431" role="paragraph">Insert Date</paragraph>
+ </tablecell>
+ </tablerow>
+ </table>
+ <embed href="text/shared/00/00000004.xhp#from_keyboard"/>
+ <paragraph role="paragraph" id="par_id21698856550818"><switchinline select="sys"><caseinline select="MAC"><keycode>Command</keycode></caseinline><defaultinline><keycode>Ctrl</keycode></defaultinline></switchinline><keycode> + ;</keycode> (semicolon)</paragraph>
+</section>
+
<section id="sparklines">
<embed href="text/shared/00/00000004.xhp#from_menu_bar"/>
<paragraph role="paragraph" id="par_id761654173486733">Choose <menuitem>Insert - Sparkline</menuitem>.</paragraph>
diff --git a/source/text/scalc/01/InsertCurrentDate.xhp b/source/text/scalc/01/InsertCurrentDate.xhp
new file mode 100644
index 0000000000..a7bb1bbf22
--- /dev/null
+++ b/source/text/scalc/01/InsertCurrentDate.xhp
@@ -0,0 +1,33 @@
+<?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="textscalc01InsertCurrentDatexhp" indexer="include" status="PUBLISH">
+ <title id="tit">Insert Date</title>
+ <filename>/text/scalc/01/InsertCurrentDate.xhp</filename>
+ </topic>
+ </meta>
+<body>
+<bookmark branch="hid/.uno:InsertCurrentDate" id="bm_id331698855895220" localize="false"/>
+<bookmark branch="index" id="bm_id641698857771482">
+<bookmark_value>cell;insert date</bookmark_value>
+<bookmark_value>insert date;in cells</bookmark_value>
+</bookmark>
+<section id="insertdate">
+ <h1 id="hd_id221698855935217"><variable id="h1"><link href="text/scalc/01/InsertCurrentDate.xhp">Date</link></variable></h1>
+ <paragraph role="paragraph" id="par_id11577295470732">Inserts the current date in the cell.</paragraph>
+</section>
+<section id="howtoget">
+ <embed href="text/scalc/00/00000404.xhp#insertdate"/>
+</section>
+<note id="par_id271698858088628">The date inserted is static.</note>
+</body>
+</helpdocument>
diff --git a/source/text/scalc/01/InsertCurrentTime.xhp b/source/text/scalc/01/InsertCurrentTime.xhp
new file mode 100644
index 0000000000..27d76b846d
--- /dev/null
+++ b/source/text/scalc/01/InsertCurrentTime.xhp
@@ -0,0 +1,33 @@
+<?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="textscalc01InsertCurrentTimexhp" indexer="include" status="PUBLISH">
+ <title id="tit">Insert Time</title>
+ <filename>/text/scalc/01/InsertCurrentTime.xhp</filename>
+ </topic>
+ </meta>
+<body>
+<bookmark branch="hid/.uno:InsertCurrentTime" id="bm_id331698855895220" localize="false"/>
+<bookmark branch="index" id="bm_id181698857668572">
+<bookmark_value>cell;insert time</bookmark_value>
+<bookmark_value>insert time; in cell</bookmark_value>
+</bookmark>
+<section id="inserttime">
+ <h1 id="hd_id221698855935217"><variable id="h1"><link href="text/scalc/01/InsertCurrentTime.xhp">Time</link></variable></h1>
+ <paragraph role="paragraph" id="par_id91577295463980">Inserts the current time in the cell.</paragraph>
+</section>
+<section id="howtoget">
+ <embed href="text/scalc/00/00000404.xhp#inserttime"/>
+</section>
+<note id="par_id101698858105477">The time inserted is static.</note>
+</body>
+</helpdocument>
diff --git a/source/text/scalc/main0104.xhp b/source/text/scalc/main0104.xhp
index 377d5ecb60..423cce7e9f 100644
--- a/source/text/scalc/main0104.xhp
+++ b/source/text/scalc/main0104.xhp
@@ -48,11 +48,8 @@
<embed href="text/shared/01/04100000.xhp#special_char"/>
<embed href="text/shared/01/formatting_mark.xhp#formatting_mark"/>
-<h2 id="hd_id761577295440343">Date</h2>
-<paragraph role="paragraph" id="par_id11577295470732">Inserts the current date in the cell.</paragraph>
-
-<h2 id="hd_id131577295445736">Time</h2>
-<paragraph role="paragraph" id="par_id91577295463980">Inserts the current time in the cell.</paragraph>
+<embed href="text/scalc/01/InsertCurrentDate.xhp#insertdate"/>
+<embed href="text/scalc/01/InsertCurrentTime.xhp#inserttime"/>
<h2 id="hd_id621577296064493">Field</h2>
<paragraph role="paragraph" id="par_id391577296078546">Opens a submenu for selecting the date, sheet name or document title in the cell.</paragraph>