Bug 85568 - [Stylist] removing many styles at once
Summary: [Stylist] removing many styles at once
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-28 18:04 UTC by Mateusz
Modified: 2014-10-31 22:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample text file (23.52 KB, application/vnd.oasis.opendocument.text)
2014-10-28 18:09 UTC, Mateusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz 2014-10-28 18:04:19 UTC
Hey

Attached document file contain many unnecessary styles which I would like to remove, but I can do only one operation per style. The idea is: applications should let user select many styles and delete it at once.
Comment 1 Mateusz 2014-10-28 18:09:17 UTC
Created attachment 108580 [details]
sample text file
Comment 2 Cor Nouws 2014-10-28 19:28:52 UTC
Hey Mateusz!

For me this simply works via the context menu ..
I know Joren was so kind to implement this.
Just checked in 4.3. and 4.4.x ..
So .. ??
Comment 3 Mateusz 2014-10-28 20:10:11 UTC
Sorry, do we talk about the same thing? About Stylist hidden under F11 button?

I tested it under:

Wersja: 4.3.2.2
Build ID: edfb5295ba211bd31ad47d0bad0118690f76407d

Version: 4.4.0.0.alpha1+
Build ID: fa58d91094895a530648630fa64b8724ea1e4305
TinderBox: Win-x86@39, Branch:master, Time: 2014-10-26_09:30:18

Choose one style, put Shift and try select another styles. It doesn't work.
Comment 4 Cor Nouws 2014-10-28 20:38:15 UTC
(In reply to Mateusz from comment #3)
> Sorry, do we talk about the same thing? About Stylist hidden under F11
> button?

Yep - nice that you still call it the Stylist ;)

> Choose one style, put Shift and try select another styles. It doesn't work.

Works for me...
Maybe that is a problem in the versions you tested?
(I've tested 4.3.3.1 and 4.4.0 alpha0)
Comment 5 Mateusz 2014-10-28 21:14:49 UTC
I will keep an eye out for LO 4.3.3. So far I will use stable and I will test 4.4. Though, it is very strange that 4.3.3 RC1 do something and 4.4 doesn't include this feature.  My alpha build is newer than yours is, so it should just works.
Comment 6 Mateusz 2014-10-30 17:13:48 UTC
Cor, I tried do it in your way with LO 4.3.3.2 (Build ID: 9bb7eadab57b6755b1265afa86e04bf45fbfc644) and still nothing. I can attach video, but it's rather pointless. Do you use Linux? I have Win7 64bit.
Comment 7 Cor Nouws 2014-10-30 17:27:45 UTC
@Mateusz. Indeed Linux. Must be checked by a Windows user then.
I guess you have tried with a fresh user profile too?
Comment 8 m_a_riosv 2014-10-30 17:53:18 UTC
Win7x64Ultimate

Works for me with 4.3.3.2

but multi-selection it's no possible with:
Version: 4.4.0.0.alpha1+
Build ID: 62c125bbb4d27631af6cbcb498e765c0b215b734
TinderBox: Win-x86@39, Branch:master, Time: 2014-10-29_19:16:52
only one at time.
Comment 9 Mateusz 2014-10-30 17:56:20 UTC
Yes, you are right. Fresh profile doesn't change anything.
Comment 10 V Stuart Foote 2014-10-30 18:13:42 UTC
Issue would seem to be with selection of styles (default and custom) present on the Style List for any component. As Cor notes, once they are selected they can be deleted from the context menu.

But presently, one can only select a single style from any of the listings (Paragraph, Character, Frame, Page, List) which is reasonable if it is being applied to a document.  

What is missing is an ability to manage the style list, e.g. to select multiple from the list and delete.  This can be done outside LibreOffice by opening the ODF archive and editing the styles.xml file as needed. But not done "efficiently" within the GUI. Not clear that just adjusting to allow a selection range is the only solution.  Went back and checked only one in 3.5, 3.6 4.0, 4.1, and 4.2 so no regression. Setting as an enhancement.

-=On Windows 7 sp1, 64-bit en-US=-
Version: 4.4.0.0.alpha1+
Build ID: 62c125bbb4d27631af6cbcb498e765c0b215b734
TinderBox: Win-x86@39, Branch:master, Time: 2014-10-29_19:16:52

Version: 4.3.3.2
Build ID: 9bb7eadab57b6755b1265afa86e04bf45fbfc644

and on

-=On Fedora 20, 32-bit LXDE=-
Version: 4.4.0.0.alpha1+
Build ID: 3f5251675eeeeae56ea282fdeb09dbc53ce4aae6
TinderBox: Linux-rpm_deb-x86@45-TDF, Branch:master, Time: 2014-10-26_01:09:19
Comment 11 Cor Nouws 2014-10-31 10:13:55 UTC
Hi Stuart,

(In reply to V Stuart Foote from comment #10)

> What is missing is an ability to manage the style list, e.g. to select
> multiple from the list and delete.  This can be done outside LibreOffice by
> [...]

As written in my comment#4, I am able to do this.

But now thinking: Mateusz, can you please check that the view at the bottom of the Stylist is not set to Hierarchical ?
I think that's the solution ;)

Cheers
Comment 12 Cor Nouws 2014-10-31 10:14:44 UTC
(I think it will be WorksForMe + need for additional Help info maybe)
Comment 13 V Stuart Foote 2014-10-31 13:14:09 UTC
(In reply to Cor Nouws from comment #11)
> As written in my comment#4, I am able to do this.
> 
> But now thinking: Mateusz, can you please check that the view at the bottom
> of the Stylist is not set to Hierarchical ?
> I think that's the solution ;)

Allow me to eat my words :$ Changing the listing from Hierarchial --> All styles does allow selection of multiple styles. And then Delete with context menu for the custom styles recorded with the document's ODF archive.  

All seems correct and WFM.

Sorry for the noise.
Comment 14 Mateusz 2014-10-31 18:07:21 UTC
(In reply to Cor Nouws from comment #11)
> Hi Stuart,
> 
> (In reply to V Stuart Foote from comment #10)
> 
> > What is missing is an ability to manage the style list, e.g. to select
> > multiple from the list and delete.  This can be done outside LibreOffice by
> > [...]
> 
> As written in my comment#4, I am able to do this.
> 
> But now thinking: Mateusz, can you please check that the view at the bottom
> of the Stylist is not set to Hierarchical ?
> I think that's the solution ;)
> 
> Cheers

Yep, you are right! "All styles" mode fix my problem. But why it doesn't work in Hierarchical view?