Bug 156926 - Ability to Delete all images in Writer
Summary: Ability to Delete all images in Writer
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:25.2.0
Keywords:
Depends on:
Blocks: Navigator Writer-Images
  Show dependency treegraph
 
Reported: 2023-08-25 21:10 UTC by Timur
Modified: 2024-08-19 12:13 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2023-08-25 21:10:08 UTC
This is enhancement request for ability to delete all images in Writer.
That request can be seen in forums, and answers are usually to find/select/extension but delete 1by1, or to use macro. That should be done more frienfly. 
While this might be done in very long open ticket for better search and replace with RegEx, that is far fetched. 

Proposed solution is to use Navigator with one of these:
- right click on Images and Delete all (which could be done for some other objects as well, but in separate ticket)
- Shift/Ctrl click on some objects of the same type, so that Delete key can be used.
Comment 1 m_a_riosv 2023-08-25 22:44:24 UTC
+1
Comment 2 Dieter 2023-09-06 17:31:26 UTC
Jim, what do you think?
Comment 3 Heiko Tietze 2023-09-07 07:46:51 UTC
(In reply to Timur from comment #0)
> Navigator... Images and Delete all
> ...
> - Shift/Ctrl click on some objects of the same type, so that Delete key can
> be used.

I'd prefer multi-selection and one function that applies to one or many/all. Besides, what happens to frames and captions on deletion?
Comment 4 Timur 2023-09-16 12:26:59 UTC
Not sure about frames and captions.. Good it is noted.
Maybe not remove what exists in Navigator, as it should be removed separately.
But really, I am interested only in images.
Comment 5 Heiko Tietze 2023-09-18 10:02:08 UTC
I think users expect some generic contextual interaction with the Navigator among which deletion is one. And if an image is deleted the surrounding frame and captions should be removed as well.

We currently allow to delete one item and keep frame and caption. The enhancement should:

* allow multi-selection
* remove frame and caption too

Probably two topics since the first sounds simple while the second could be tricky.
Comment 6 Jim Raykowski 2024-07-15 20:08:03 UTC
(In reply to Dieter from comment #2)
> Jim, what do you think?
With the patch commit made for enhancement bug 160817 all content of a content type/category other than Headings can be deleted using the content type context menu or after selecting the content type by using the delete icon that appears in the selected entry main functions toolbar.
Comment 7 Timur 2024-07-16 18:56:45 UTC
Jim, could you please clarify "all content of a content type/category other than Headings can be deleted" because I do not see 1. but see 2. with a build from 5 days ago:
1. using the content type context menu - while single images have "Delete image", Images category does not for me, 
2. after selecting the content type by using the delete icon that appears in the selected entry main functions toolbar - this works and apart from 1. that would be good to clarify, resolves this issue.
Comment 8 Jim Raykowski 2024-07-17 06:27:37 UTC
(In reply to Timur from comment #7)
> Jim, could you please clarify "all content of a content type/category other
> than Headings can be deleted" because I do not see 1. but see 2. with a
> build from 5 days ago:
> 1. using the content type context menu - while single images have "Delete
> image", Images category does not for me,
You are right. All category entry context menus do not include a "Delete all" item. I think I decided to separate that from the toolbar patch and it got stashed somewhere and never uploaded. I'll try to find it or just redo it.
> 2. after selecting the content type by using the delete icon that appears in
> the selected entry main functions toolbar - this works and apart from 1.
> that would be good to clarify, resolves this issue.
Thanks for confirming this works.
Comment 9 Commit Notification 2024-08-17 23:39:47 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d5143c058bfdc0f5674c3e0a88fae2f9cbe28a0a

tdf#156926 related: Ability to Delete all images in Writer

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 BogdanB 2024-08-19 06:37:13 UTC
I build LO, and tested. First time it didn't work, maybe an old user profile. But second time, it worked well.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 83d1f9c2dd85d2793028c7afaa3459d1f76898b6
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded