Bug 155202 - Navigator: Allow Users to Copy Chapters, with Sub-Sections, even when expanded
Summary: Navigator: Allow Users to Copy Chapters, with Sub-Sections, even when expanded
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Navigator
  Show dependency treegraph
 
Reported: 2023-05-08 23:37 UTC by MarjaE
Modified: 2023-05-09 23:18 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test File (10.65 KB, application/vnd.oasis.opendocument.text)
2023-05-08 23:55 UTC, MarjaE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MarjaE 2023-05-08 23:37:09 UTC
Description:
Selecting chapters with the navigator is so much easier than selecting them by trying to drag the mouse. But selecting chapters in the navigator does not necessarily select shorter sections within each chapter.

Steps to Reproduce:
1. Open the attached file.
2. Select "Chapter 1" in the navigator.
3. Copy "Chapter 1" from there.
4. Add a line after Section 4.
5. Paste.

Actual Results:
The top level of Chapter 1 appears, but not Sections 1 or 2 within it.

Expected Results:
The whole of Chapter 1 should appear, including Sections 1 and 2 within it.


Reproducible: Always


User Profile Reset: No

Additional Info:
There's a similar issue with Delete Chapter. But the risks of data loss from not copying what you thought you'd copied are worse than the risks of not deleting what you'd thought you'd deleted.
Comment 1 MarjaE 2023-05-08 23:55:54 UTC
Created attachment 187155 [details]
Test File
Comment 2 Roman Kuznetsov 2023-05-09 11:55:58 UTC
I can't repro it in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 69d0be09ad81935f7da4b6f8d036c3562357d068
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded

Chapter 1 was pasted with its subsections
Comment 3 Roman Kuznetsov 2023-05-09 11:57:32 UTC
and in

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

it works as expected too

MarjaE, what LO version do you use?
Comment 4 MarjaE 2023-05-09 17:29:23 UTC
7.5.0.3.
Comment 5 Stéphane Guillou (stragu) 2023-05-09 23:07:39 UTC
Only the top section is copied when Chapter 1 is expanded in the navigator, everything is copied when it is collapsed.
So the workaround is to first collapse the chapter, then copy it: it will take all subsections along with it.

Jim, in parallel to your recent fix for bug 154211, is there space for some improvement here? A shift + click range selection, useful for when a section is expanded, or for when only a portion of a section needs to be copied?
Comment 6 Stéphane Guillou (stragu) 2023-05-09 23:18:04 UTC
(In reply to Stéphane Guillou (stragu) from comment #5)
> 
> Jim, in parallel to your recent fix for bug 154211, is there space for some
> improvement here? A shift + click range selection, useful for when a section
> is expanded, or for when only a portion of a section needs to be copied?

Ah, I realise you already gave me an answer in bug 129610 comment 15 !

MarjaE, there is the "Content Navigation View", which you can turn on in the Navigator. This will also allow multiselection of headings.
So I think your usecase is covered here, with two options: either copying the collapsed heading, or copying a multiselection in Content Navigation View.

Marking as "resolved - notabug", but still interested to hear from Jim: does this absolutely need to be exclusively available in Content Navigation View? (like the drag-and-drop of headings)