Presently in Writer, we only show the paragraph style drop down control (.uno:StyleApply) and it would be useful to have a similar drop down control for character styles. Is there an uno command for this control already available, as i wasnt able to find one searching through the toolbar customizing dialog. MS Office 2003 and below would list both paragraph and character styles in its toolbar styles drop down control, while MS Office 2007 would also show paragraph and character styles in its styles selector control in its ribbon UI.
Hi Jay, Hmm, I'd love to see this :) When implementing, maybe we can find a short cut? Long time ago Mathias Bauer was so kind to link Ctrl-F11 to the style dropdown. Maybe Ctrl+Shft+F11 for the character styles? Ideas to how to position it? Isn't it going to be a cluttering ( ;) ) of drop down boxes there ? [Wasn't able to find something as uno:CharacterStyleApply, but that is of limited value. I think the double click event for the Styles and Formatting window must have some hook to ;) ]
(In reply to Cor Nouws from comment #1) > When implementing, maybe we can find a short cut? Long time ago Mathias > Bauer was so kind to link Ctrl-F11 to the style dropdown. Maybe > Ctrl+Shft+F11 for the character styles? Never new there was a shortcut for the styles dropdown. :D > Ideas to how to position it? Isn't it going to be a cluttering ( ;) ) of > drop down boxes there ? Well the idea would be that users who only use styles would likely disable the font name drop down and replace it with the character style drop down, or simply just enable it next to it if they have a sufficiently wide resolution.
(In reply to Jay Philips from comment #2) > (In reply to Cor Nouws from comment #1) > > When implementing, maybe we can find a short cut? Long time ago Mathias > > Bauer was so kind to link Ctrl-F11 to the style dropdown. Maybe > > Ctrl+Shft+F11 for the character styles? > > Never new there was a shortcut for the styles dropdown. :D Oh dear, so much to learn ;p I now see that Ctrl+Shft+F11 is Update Style... Dangerous one! Shall we asign Ctrl+Alt+F11 to apply character style? Or dump the assigment to Update Style and use Ctrl+Shft+F11? > > > Ideas to how to position it? Isn't it going to be a cluttering ( ;) ) of > > drop down boxes there ? > > Well the idea would be that users who only use styles would likely disable > the font name drop down and replace it with the character style drop down, > or simply just enable it next to it if they have a sufficiently wide > resolution. OK, maybe a preference pops up gradually to add it by default. We'll see. [side note: ever considered a style drop down in Calc?]
(In reply to Cor Nouws from comment #3) > > Never new there was a shortcut for the styles dropdown. :D > > Oh dear, so much to learn ;p Yes dear, i'm not a heavy keyboard user. :D > I now see that Ctrl+Shft+F11 is Update Style... Dangerous one! > Shall we asign Ctrl+Alt+F11 to apply character style? > Or dump the assigment to Update Style and use Ctrl+Shft+F11? Wouldnt really know about this as i'm not a keyboard user. Maybe ask sophie. :D > > Well the idea would be that users who only use styles would likely disable > > the font name drop down and replace it with the character style drop down, > > or simply just enable it next to it if they have a sufficiently wide > > resolution. > > OK, maybe a preference pops up gradually to add it by default. We'll see. I am contemplating how best to include it by default but seem to fall short on it because i see the benefit of having all four drop downs, but think they would take up way to much space. > [side note: ever considered a style drop down in Calc?] I've considered it but we dont have a good set of default styles in calc ( https://redmine.documentfoundation.org/boards/1/topics/493 ) and we dont have any free space in the toolbar for it presently.
The character style drop down would also be useful in the styles content panel of the properties in writer. @Maxim, @Bubli: It would be useful to be able to have one main reusable function that others functions could call to request a particular category of styles to fill the drop down, as a character style drop down would be useful in writer, while a page style drop down would be useful in calc and a presentation style drop down for impress.
Migrating Whiteboard tags to Keywords: (needsDevEval, topicUI) [NinjaEdit]
@Maxim, @Miklos: Is it possible to extend the apply paragraph style drop down toolbar list (.uno:StyleApply) so that it could work with other styles like character, frame, page, list, etc. by referencing it like .uno:StyleApply?FamilyName:string=CharacterStyles
This is already possible, e.g. .uno:StyleApply?Style:string=Quotation&FamilyName:string=CharacterStyles just grep for e.g. StyleApply in sw.
(In reply to Miklos Vajna from comment #8) > This is already possible, e.g. > > .uno:StyleApply?Style:string=Quotation&FamilyName:string=CharacterStyles > > just grep for e.g. StyleApply in sw. Thanks for the reply Miklos, but that wasnt want is wanted here, as we have similar UNO commands already in the Style menubar menu. What is wanted here is to have the toolbar show a drop down control for non paragraph styles.
Ah, I see. I think you need a bit of work to make the existing drop down support non-paragraph styles, it won't work out of the box.
(In reply to Miklos Vajna from comment #10) > Ah, I see. I think you need a bit of work to make the existing drop down > support non-paragraph styles, it won't work out of the box. So in your opinion is it better to create individual uno commands for each non-paragraph style option (there are alot of them across all the modules) or make .uno:StyleApply able to list non-paragraph styles (fix once and work everywhere).
@Maxim, @Miklos: What is the Family argument used for in .uno:StyleApply? http://opengrok.libreoffice.org/xref/core/sfx2/sdi/sfx.sdi#4242
(In reply to Yousuf Philips (jay) from comment #7) > @Maxim, @Miklos: Is it possible to extend the apply paragraph style drop > down toolbar list (.uno:StyleApply) so that it could work with other styles > like character, frame, page, list, etc. Yes, easily. > by referencing it like .uno:StyleApply?FamilyName:string=CharacterStyles It's a bad idea to use such commands, because it will be hard to make them appear in the customization dialog. We really need separate commands. The good news is that there are already separate commands. Right now they do nothing (they used internally only to transport the style status), but I think we can reuse them for the toolbar controls. Take a look at [1] for the mapping of style families to their existing commands. (In reply to Yousuf Philips (jay) from comment #11) > So in your opinion is it better to create individual uno commands for each > non-paragraph style option (there are alot of them across all the modules) > or make .uno:StyleApply able to list non-paragraph styles (fix once and work > everywhere). Note that several commands can be bound to one control, which can change its behavior based on the command it gets. So using individual uno commands *does not* mean more work. [1] https://cgit.freedesktop.org/libreoffice/core/tree/framework/source/uielement/styletoolbarcontroller.cxx?id=b91fb08fd63207e663dca83abe1305d8025b4b48#n22
(In reply to Maxim Monastirsky from comment #13) > It's a bad idea to use such commands, because it will be hard to make them > appear in the customization dialog. We really need separate commands. The > good news is that there are already separate commands. Right now they do > nothing (they used internally only to transport the style status), but I > think we can reuse them for the toolbar controls. Take a look at [1] for the > mapping of style families to their existing commands. Thanks for the link. > Note that several commands can be bound to one control, which can change its > behavior based on the command it gets. So using individual uno commands > *does not* mean more work. Sweet, as that would be the best solution.
*** Bug 130260 has been marked as a duplicate of this bug. ***
*** Bug 135956 has been marked as a duplicate of this bug. ***
*** Bug 139271 has been marked as a duplicate of this bug. ***
*** Bug 141965 has been marked as a duplicate of this bug. ***
*** Bug 142717 has been marked as a duplicate of this bug. ***
*** Bug 141958 has been marked as a duplicate of this bug. ***
Six duplicates and 15 users in cc => I've changed priority to high
(In reply to Dieter from comment #21) > Six duplicates and 15 users in cc > => I've changed priority to high A side note: CC is blown up by QA people and a couple of DEV's
*** Bug 154526 has been marked as a duplicate of this bug. ***
Before having a shortcut we should have the command. I'd appreciate an additional drop down for character styles only besides the drop down for paragraph styles only.