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>
This commit is contained in:
Olivier Hallot
2023-11-01 14:09:00 -03:00
parent 5218a19ee6
commit b28faac2c5
5 changed files with 111 additions and 5 deletions

View File

@ -283,6 +283,8 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,scalc,\
helpcontent2/source/text/scalc/01/func_year \
helpcontent2/source/text/scalc/01/func_yearfrac \
helpcontent2/source/text/scalc/01/hide_sheet \
helpcontent2/source/text/scalc/01/InsertCurrentDate \
helpcontent2/source/text/scalc/01/InsertCurrentTime \
helpcontent2/source/text/scalc/01/JumpToNextTableSel \
helpcontent2/source/text/scalc/01/JumpToPrevTableSel \
helpcontent2/source/text/scalc/01/live_data_stream \

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>