Yes a 2-step process i would use with 2 menus. At the end we can imagine there is a class window thatlet's the user interact with this.
But i was not really thinking a using clipboard but more : - get_style : extract css from actual style attribute of the selected object (I would say only one), create and write the class in svg file - apply_style : could provide a text entry (or best a list of available class) and add it to the selected element
the idea here is a bit different from yours but would avoid some strange behaviour it has for example when selected shapes are different (as many as they are).
I'll do some tests But i may submit a bug too.
pygmee
----- Mail original ----- De: "Martin Owens" <doctormo@...400...> À: "radar map35" <radar.map35@...8...> Cc: "Inkscape Developer Mailing List" inkscape-devel@lists.sourceforge.net Envoyé: Mardi 18 Mars 2014 14:15:49 Objet: Re: [Inkscape-devel] Extension: Merge Style
On Tue, 2014-03-18 at 14:11 +0100, radar.map35@...8... wrote:
Personnally i think that doing 2 different actions :
- get_style_from_shape
- apply_style
would help avoid this situation and give more flexibility.
This sounds interesting, but I don't understand it. You advocate for a two step process? Would the user copy the style onto the clipboard after the first step?
Thanks for testing Radar.
Note: There's also a bug I need to fix #167937 which is making this extension much less useful.
Best Regards, Martin Owens