Files
help/source/text/shared/guide/copytable2application.xhp
Ilmari Lauhakangas 7e42394ecb tdf#152323 drop name attribute from <link> elements
Replacement done with

find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
        's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'

(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)

translation files will be prepped with:

find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
    $'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'

(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)

Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-07 17:39:02 +00:00

68 lines
3.9 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="textsharedguidecopytable2applicationxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Inserting Data From Spreadsheets</title>
<filename>/text/shared/guide/copytable2application.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3154186"><bookmark_value>charts;copying with link to source cell range</bookmark_value>
<bookmark_value>inserting; cell ranges from spreadsheets</bookmark_value>
<bookmark_value>pasting;cell ranges from spreadsheets</bookmark_value>
<bookmark_value>presentations;inserting spreadsheet cells</bookmark_value>
<bookmark_value>text documents;inserting spreadsheet cells</bookmark_value>
<bookmark_value>tables in spreadsheets;copying data to other applications</bookmark_value>
</bookmark><comment>mw deleted "tables;" and added "charts;" and "tables in spreadsheets;"</comment>
<paragraph role="heading" id="hd_id3154186" xml-lang="en-US" level="1"><variable id="copytable2application"><link href="text/shared/guide/copytable2application.xhp">Inserting Data From Spreadsheets</link>
</variable></paragraph>
<list type="unordered">
<listitem>
<paragraph role="listitem" id="par_id3147088" xml-lang="en-US">Use the clipboard to copy the contents of a single cell. You can also copy a formula from a cell into the clipboard (for example, from the input line of the formula bar) so that the formula can be inserted into a text.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3145345" xml-lang="en-US">To copy a cell range into a text document, select the cell range in the sheet and then use either the clipboard or drag-and-drop to insert the cells into the text document. You will then find an OLE object in the text document, which you can edit further.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3146957" xml-lang="en-US">If you drag cells to the normal view of a presentation document, the cells will be inserted there as an OLE object. If you drag cells into the outline view, each cell will form a line of the outline view.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3148538" xml-lang="en-US">When you copy a cell range from $[officename] Calc to the clipboard, the drawing objects, OLE objects and charts within this range are also copied.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3153031" xml-lang="en-US">If you insert a cell range with an enclosed chart, the chart will keep its link to the source cell range only if you copied the chart and the source cell range together.</paragraph>
</listitem>
</list>
<embed href="text/shared/00/00000004.xhp#related"/>
<switch select="appl">
<case select="WRITER"><embed href="text/swriter/guide/table_insert.xhp#table_insert"/>
</case>
</switch>
<embed href="text/shared/guide/copytext2application.xhp#copytext2application"/>
<embed href="text/shared/guide/copy_drawfunctions.xhp#copy_drawfunctions"/>
</body>
</helpdocument>