Files
help/source/text/shared/guide/pasting.xhp
Christian Lohmaier 77cb682cd1 convert plain paragraphs with role="heading" → h<level>
i.e. without child elements and also drop the language that was changed
to implied in the dtd previously/defaults to en-US unless specified.

This change doesn't affect translations, only the content of the
paragraph/headings is extracted.

done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'

(all permutations re order of attributes, and xml-lang="en-US" being
optional / implied)

Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:10 +00:00

82 lines
4.7 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="textsharedguidepastingxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Pasting Contents in Special Formats</title>
<filename>/text/shared/guide/pasting.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3620715"><bookmark_value>clipboard;pasting formatted/unformatted text</bookmark_value>
<bookmark_value>inserting;clipboard options</bookmark_value>
<bookmark_value>pasting;formatted/unformatted text</bookmark_value>
<bookmark_value>text formats;pasting</bookmark_value>
<bookmark_value>formats;pasting in special formats</bookmark_value>
</bookmark><comment>mw changed "pasting;..." and "clipboard;..." and added two index entries</comment>
<paragraph role="heading" id="par_idN10725" xml-lang="en-US" level="1"><variable id="pasting"><link href="text/shared/guide/pasting.xhp">Pasting Contents in Special Formats</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_idN10743" xml-lang="en-US">Contents that are stored on the clipboard can be pasted into your document using different formats. In %PRODUCTNAME you can choose how to paste the contents using a dialog or a drop-down icon.</paragraph>
<paragraph role="paragraph" id="par_idN10746" xml-lang="en-US">The available options depend on the contents of the clipboard.</paragraph>
<paragraph xml-lang="en-US" id="hd_id3144547360" role="paragraph">In Writer text documents, you can press <switchinline select="sys"><caseinline select="MAC">Command+Option</caseinline><defaultinline>Ctrl+Alt</defaultinline></switchinline>+Shift+V to paste the contents of the clipboard as unformatted text.</paragraph>
<h2 id="par_idN10749">Pasting clipboard contents using an icon menu</h2>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_idN10750" xml-lang="en-US">Click the arrow next to the <emph>Paste</emph> icon on the Standard Bar to open the menu.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_idN10758" xml-lang="en-US">Select one of the options.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_idN1075B" xml-lang="en-US">If you do not like the result, click the <emph>Undo</emph> icon and then paste again with another option.</paragraph>
<h2 id="par_idN10762">Pasting clipboard contents using a dialog</h2>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_idN10769" xml-lang="en-US">Choose <emph>Edit - Paste special</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_idN10771" xml-lang="en-US">Select one of the options and click <emph>OK</emph>.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_idN10774" xml-lang="en-US">If you are in a spreadsheet and the contents of the clipboard are spreadsheet cells, then a different <emph>Paste Special</emph> dialog appears. Use the <emph>Paste Special</emph> dialog to copy cells using basic or advanced options.</paragraph>
<list type="unordered">
<listitem>
<paragraph role="paragraph" id="par_idN1077E" xml-lang="en-US">
<emph>Transpose</emph>: swaps the rows and the columns of the cell range to be pasted.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_idN10785" xml-lang="en-US">
<emph>Link</emph>: pastes the cell range as a link. If the source file changes, the pasted cells change also.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_idN1078C" xml-lang="en-US">The other options are explained in the help, when you call the <link href="text/shared/01/02070000.xhp">Paste Special</link> dialog from within %PRODUCTNAME Calc.<comment>UFI: the text is switched to "Calc" there.</comment></paragraph>
</listitem>
</list>
<section id="relatedtopics">
<paragraph role="paragraph" id="par_idN107BA" xml-lang="en-US"><link href="text/shared/01/02070000.xhp">Paste Special</link></paragraph>
</section>
</body>
</helpdocument>