AllLangHelp_swriter.mk | 1 source/text/shared/guide/dragdrop.xhp | 27 +-- source/text/swriter/guide/dragdrop_navigator.xhp | 173 +++++++++++++++++++++++ source/text/swriter/guide/hyperlinks.xhp | 21 +- 4 files changed, 195 insertions(+), 27 deletions(-)
New commits: commit 854d7355d6a984d36485713e5f7cefea5c5b41bc Author: Olivier Hallot <[email protected]> AuthorDate: Wed Mar 4 17:59:43 2026 -0300 Commit: Olivier Hallot <[email protected]> CommitDate: Wed Mar 4 22:01:21 2026 +0100 tdf#171085 Drag&Drop from navigator update Added page to detail drag & drop features for item in text documents. Change-Id: I47710ef13e9f216dc890e9401b66b3a9b3ac8020 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/200987 Tested-by: Jenkins Reviewed-by: Olivier Hallot <[email protected]> diff --git a/AllLangHelp_swriter.mk b/AllLangHelp_swriter.mk index 1415095527..ff9d80f6b8 100644 --- a/AllLangHelp_swriter.mk +++ b/AllLangHelp_swriter.mk @@ -299,6 +299,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,swriter,\ helpcontent2/source/text/swriter/guide/contentcontrols \ helpcontent2/source/text/swriter/guide/delete_from_dict \ helpcontent2/source/text/swriter/guide/dragdroptext \ + helpcontent2/source/text/swriter/guide/dragdrop_navigator \ helpcontent2/source/text/swriter/guide/even_odd_sdw \ helpcontent2/source/text/swriter/guide/field_convert \ helpcontent2/source/text/swriter/guide/fields \ diff --git a/source/text/shared/guide/dragdrop.xhp b/source/text/shared/guide/dragdrop.xhp index 401323b6f7..e393a56d6a 100644 --- a/source/text/shared/guide/dragdrop.xhp +++ b/source/text/shared/guide/dragdrop.xhp @@ -47,7 +47,7 @@ </tablerow> <tablerow> <tablecell> -<paragraph role="tablecontent" id="par_id3159177"><image id="img_id3147573" src="media/helpimg/movedata.png" width="8.47mm" height="8.47mm"><alt id="alt_id3147573">Mouse pointer moving data</alt></image></paragraph> +<paragraph role="tablecontent" id="par_id3159177"><image id="img_id3147573" src="media/helpimg/movedata.png" width="1cm" height="1cm"><alt id="alt_id3147573">Mouse pointer moving data</alt></image></paragraph> </tablecell> <tablecell> <paragraph role="tablecontent" id="par_id3154898">Moving</paragraph> @@ -55,7 +55,7 @@ </tablerow> <tablerow> <tablecell> -<paragraph role="tablecontent" id="par_id3154306"><image id="img_id3149233" src="media/helpimg/copydata.png" width="8.47mm" height="8.47mm"><alt id="alt_id3149233">Mouse pointer copying data</alt> </image></paragraph> +<paragraph role="tablecontent" id="par_id3154306"><image id="img_id3149233" src="media/helpimg/copydata.png" width="1cm" height="1cm"><alt id="alt_id3149233">Mouse pointer copying data</alt> </image></paragraph> </tablecell> <tablecell> <paragraph role="tablecontent" id="par_id3153627">Copying</paragraph> @@ -63,7 +63,7 @@ </tablerow> <tablerow> <tablecell> -<paragraph role="tablecontent" id="par_id3153896"><image id="img_id3159413" src="media/helpimg/linkdata.png" width="8.47mm" height="8.47mm"><alt id="alt_id3159413">Mouse pointer inserting link</alt></image></paragraph> +<paragraph role="tablecontent" id="par_id3153896"><image id="img_id3159413" src="media/helpimg/linkdata.png" width="1cm" height="1cm"><alt id="alt_id3159413">Mouse pointer inserting link</alt></image></paragraph> </tablecell> <tablecell> <paragraph role="tablecontent" id="par_id3154938">Creating a link</paragraph> @@ -72,16 +72,8 @@ </table> <paragraph role="paragraph" id="par_id3154366">If you press <switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> or Shift+<switchinline select="sys"><caseinline select="MAC">Command</caseinline><defaultinline>Ctrl</defaultinline></switchinline> while releasing the mouse button, you can control whether the object is copied, moved, or a link is created.</paragraph> -<table id="tbl_id3150768"> -<tablerow> -<tablecell> -<paragraph role="paragraph" id="par_id3148672"><image id="img_id3158407" src="sw/res/sc20238.png" width="1cm" height="1cm"><alt id="alt_id3158407">Icon Drag Mode</alt></image></paragraph> -</tablecell> -<tablecell> -<paragraph role="paragraph" id="par_id3156422">If you drag objects out of the <link href="text/shared/guide/navigator.xhp"><emph>Navigator</emph></link>, you can specify in the submenu of the Navigator's <emph>Drag Mode</emph> icon whether to copy the object, insert it as a link or insert it as a hyperlink.</paragraph> -</tablecell> -</tablerow> -</table> + +<note id="par_id3156422">If you drag objects out of the <link href="text/shared/guide/navigator.xhp"><emph>Navigator</emph></link>, you can specify in the submenu whether to copy the object, insert it as a link or insert it as a hyperlink.</note> <tip id="par_id3153144">You can cancel a drag-and-drop operation in $[officename] at any time by pressing the Esc key before releasing the mouse button.</tip> @@ -91,11 +83,12 @@ <embed href="text/shared/guide/gallery_insert.xhp#gallery_insert"/> <embed href="text/shared/guide/dragdrop_gallery.xhp#dragdrop_gallery"/> <switch select="appl"> -<case select="WRITER"><embed href="text/swriter/guide/dragdroptext.xhp#dragdroptext"/> +<case select="WRITER"> + <embed href="text/swriter/guide/dragdroptext.xhp#dragdroptext"/> + <embed href="text/swriter/guide/dragdrop_navigator.xhp#h1"/> </case> -</switch> -<switch select="appl"> -<case select="CALC"><embed href="text/scalc/guide/cellreference_dragdrop.xhp#cellreference_dragdrop"/> +<case select="CALC"> + <embed href="text/scalc/guide/cellreference_dragdrop.xhp#cellreference_dragdrop"/> </case> </switch> </section> diff --git a/source/text/swriter/guide/dragdrop_navigator.xhp b/source/text/swriter/guide/dragdrop_navigator.xhp new file mode 100644 index 0000000000..30d3668554 --- /dev/null +++ b/source/text/swriter/guide/dragdrop_navigator.xhp @@ -0,0 +1,173 @@ +<?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="textswriterguidedragdrop_navigator.xhp" indexer="include" status="PUBLISH"> + <title id="tit">Drag and Drop with Navigator</title> + <filename>/text/swriter/guide/dragdrop_navigator.xhp</filename> + </topic> +</meta> +<body> +<bookmark branch="index" id="bm_id571772657114363"> + <bookmark_value>navigator;drag and drop in text documents</bookmark_value> + <bookmark_value>drag and drop in text documents;navigator</bookmark_value> +</bookmark> +<section id="DnDNav"> + <h1 id="hd_id41772645573324"><variable id="h1"><link href="text/swriter/guide/dragdrop_navigator.xhp">Drag and Drop with the Navigator</link></variable></h1> + <description id="par_id521772645573324">The <emph>Navigator</emph> is a powerful tool for document editing and content management, making text editing effortless with its drag-and-drop features.</description> +</section> +<paragraph role="paragraph" id="par_id411772645918192">You can drag items from the Navigator to quickly insert cross-references in your text, create hyperlinks between elements within or outside the document, or copy items and its contents. Using the Navigator helps you save time by reducing the number of mouse clicks and avoiding unnecessary dialogs.</paragraph> +<h2 id="hd_id701772645899600">Drag and Drop of Headings</h2> +<paragraph role="paragraph" id="par_id371772646091092">To drag a heading from navigator, click on the heading and drag it to the document. The following actions are possible, but it depends on the item dragged and the context.</paragraph> +<table id="tab_id851772646100124"> + <tablerow> + <tablecell> + <paragraph id="par_id501772646100124" role="tablehead">Action</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id731772646100124" role="tablehead">Description and results</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id571772646100124" role="tablecontent">Hyperlink</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id191772646100124" role="tablecontent">Inserts an hyperlink to the heading. The contents displayed is the heading text.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id611772646171341" role="tablecontent">Section Link</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id291772646171341" role="tablecontent">Inserts the heading and all its contents as a linked section. The section is write-protected.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id391772646497718" role="tablecontent">Section Copy</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id701772646497718" role="tablecontent">Copies the heading and all itts contents and paste in an unprotected section. No link exist between the source and target.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id501772646712249" role="tablecontent">Page Number (unstyled)</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id101772646712249" role="tablecontent">Inserts the page number of the heading as a field. No character style applied.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id541772647393486" role="tablecontent">Chapter</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id341772647393486" role="tablecontent">Same as <menuitem>Insert - Fields - More Fields - Cross-references</menuitem>, select <menuitem>Headings</menuitem> in <emph>Types</emph> and choose <menuitem>Chapter</menuitem> in <emph>Refer Using</emph>.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id381772647627953" role="tablecontent">Referenced Text</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id761772647627953" role="tablecontent">Inserts a cross-reference field to the heading and displays the heading contents. Same as <menuitem>Insert - Fields - More Fields - Cross-references</menuitem>, select <menuitem>Headings</menuitem> in <emph>Types</emph> and choose <menuitem>Chapter</menuitem> in <emph>Refer Using</emph>.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id541772647746614" role="tablecontent">Above / Below</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id961772647746614" role="tablecontent">Same as <menuitem>Insert - Fields - More Fields - Cross-references</menuitem>, select <menuitem>Headings</menuitem> in <emph>Types</emph> and choose <menuitem>Above / below</menuitem> in <emph>Refer Using</emph>.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id391772648687242" role="tablecontent">Page number (styled)</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id1001772648687242" role="tablecontent">Inserts the page number of the heading as a field. Character style applied.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id311772648839255" role="tablecontent">Number / Number (no context) / Number (full context)</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id721772648839255" role="tablecontent">The outline number. Same as <menuitem>Insert - Fields - More Fields - Cross-references</menuitem>, select <menuitem>Headings</menuitem> in <emph>Types</emph> and choose <menuitem>Number / Number (no context) / Number (full context)</menuitem> in <emph>Refer Using</emph>.</paragraph> + </tablecell> + </tablerow> +</table> + +<h2 id="hd_id741772652944170">Drag and drop of Images, Frames, Objects, Sections</h2> +<paragraph role="paragraph" id="par_id811772654799358">When inserted from the Navigator, these items are displayed by their <emph>Name</emph> property.</paragraph> +<table id="tab_id631772652952737"> + <tablerow> + <tablecell> + <paragraph id="par_id231772652952737" role="tablehead">Action</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id451772652952737" role="tablehead">Description and results</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id401772652952737" role="tablecontent">Hyperlink</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id411772652952738" role="tablecontent">Inserts an hyperlink to the image, frame, object, section respectively. The item name is displayed in the document.</paragraph> + </tablecell> + </tablerow> +</table> +<h2 id="hd_id381772653258716">Drag and drop of Tables</h2> +<paragraph role="paragraph" id="par_id661772656701725">Tables can be inserted as hyperlink, section links or copied.</paragraph> +<table id="tab_id541772653271243"> + <tablerow> + <tablecell> + <paragraph id="par_id441772653271243" role="tablehead">Action</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id261772653271243" role="tablehead">Description and results</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id191772653271243" role="tablecontent">Hyperlink</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id451772653271243" role="tablecontent">Inserts an hyperlink to the table. The table name is displayed in the document.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id161772653439688" role="tablecontent">Section Link</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id581772653439688" role="tablecontent">Inserts the table wrapped in a write-protected section. The table is displayed in full. The contents of the linked table changes when the source table contents changes.</paragraph> + </tablecell> + </tablerow> + <tablerow> + <tablecell> + <paragraph id="par_id161772653735715" role="tablecontent">Section Copy</paragraph> + </tablecell> + <tablecell> + <paragraph id="par_id81772653735715" role="tablecontent">Inserts a copy of the table wrapped in a section. The table is copied in full. The contents of the copied table is independent of the source table contents changes.</paragraph> + </tablecell> + </tablerow> +</table> +<section id="relatedtopics"> +<embed href="text/shared/guide/navigator.xhp#navigator"/> +<embed href="text/shared/guide/dragdrop.xhp#dragdrop"/> +</section> +</body> +</helpdocument> diff --git a/source/text/swriter/guide/hyperlinks.xhp b/source/text/swriter/guide/hyperlinks.xhp index 135ba60faa..03f2e8fdc6 100644 --- a/source/text/swriter/guide/hyperlinks.xhp +++ b/source/text/swriter/guide/hyperlinks.xhp @@ -20,14 +20,14 @@ <meta> <topic id="textswriterguidehyperlinksxml" indexer="include" status="PUBLISH"> - <title id="tit" xml-lang="en-US">Inserting Hyperlinks With the Navigator</title> + <title id="tit">Inserting Hyperlinks With the Navigator</title> <filename>/text/swriter/guide/hyperlinks.xhp</filename> </topic> </meta> <body> -<bookmark xml-lang="en-US" branch="index" id="bm_id3155845"> +<bookmark branch="index" id="bm_id3155845"> <bookmark_value>hyperlinks; inserting from Navigator</bookmark_value> <bookmark_value>inserting; hyperlinks from Navigator</bookmark_value> <bookmark_value>cross-references; inserting with Navigator</bookmark_value> @@ -36,29 +36,30 @@ <comment>mw deleted "adding;"</comment> <h1 id="hd_id3155845"><variable id="hyperlinks"><link href="text/swriter/guide/hyperlinks.xhp">Inserting Hyperlinks With the Navigator</link></variable></h1> -<paragraph id="par_id3155858" role="paragraph" xml-lang="en-US">You can insert a cross-reference as a hyperlink in your document using the Navigator. You can even cross-reference items from other <item type="productname">%PRODUCTNAME</item> documents. If you click the hyperlink when the document is opened in <item type="productname">%PRODUCTNAME</item>, you are taken to the cross-referenced item.</paragraph> +<paragraph id="par_id3155858" role="paragraph">You can insert a cross-reference as a hyperlink in your document using the Navigator. You can even cross-reference items from other <item type="productname">%PRODUCTNAME</item> documents. If you click the hyperlink when the document is opened in <item type="productname">%PRODUCTNAME</item>, you are taken to the cross-referenced item.</paragraph> <list type="ordered"> <listitem> - <paragraph id="par_id3149833" role="listitem" xml-lang="en-US">Open the document(s) containing the items you want to cross-reference.</paragraph> + <paragraph id="par_id3149833" role="listitem">Open the document(s) containing the items you want to cross-reference. For example, Document A will receive a hyperlink to Document B.</paragraph> </listitem> <listitem> - <paragraph id="par_id3148846" role="listitem" xml-lang="en-US">On the Standard bar, click the <emph>Navigator</emph> icon.</paragraph> + <paragraph id="par_id3148846" role="listitem">Open the <emph>Navigator</emph> from the View menu, Standard bar or Sidebar, or press <keycode>F5</keycode>.</paragraph> </listitem> <listitem> - <paragraph id="par_id3156108" role="listitem" xml-lang="en-US">Click the arrow next to the <item type="menuitem">Drag Mode</item> icon, and ensure that <item type="menuitem">Insert as Hyperlink</item> is selected.</paragraph> + <paragraph id="par_id3153396" role="listitem">In the list at the bottom of the Navigator, select the document containing the item that you want to cross-reference. The navigator displays the objects of the cross-referenced document.</paragraph> </listitem> <listitem> - <paragraph id="par_id3153396" role="listitem" xml-lang="en-US">In the list at the bottom of the Navigator, select the document containing the item that you want to cross-reference.</paragraph> + <paragraph id="par_id3153416" role="listitem">In the Navigator list, click the plus sign next to the item that you want to insert as a hyperlink.</paragraph> </listitem> <listitem> - <paragraph id="par_id3153416" role="listitem" xml-lang="en-US">In the Navigator list, click the plus sign next to the item that you want to insert as a hyperlink.</paragraph> + <paragraph id="par_id3153133" role="listitem">Drag the item to where you want to insert the hyperlink in the document.</paragraph> </listitem> <listitem> - <paragraph id="par_id3153133" role="listitem" xml-lang="en-US">Drag the item to where you want to insert the hyperlink in the document.</paragraph> + <paragraph id="par_id931772635827989" role="listitem">When you drop the object at the desired position, a context menu appears, allowing you to choose an action for the dragged navigator object. If available, select <emph>Hyperlink</emph>.</paragraph> </listitem> </list> -<paragraph id="par_id3149635" role="paragraph" xml-lang="en-US">The name of the item is inserted in the document as an underlined hyperlink.</paragraph> + +<paragraph id="par_id3149635" role="paragraph">The name of the item is inserted in the document as an underlined hyperlink. When the item is a heading, the heading text is inserted as an hyperlink.</paragraph> <section id="relatedtopics"> <embed href="text/shared/guide/navigator.xhp#navigator"/>
