On Sun, Apr 13, 2008 at 12:50 PM, Alvin Penner <penner@...1856...> wrote:
- paste using absolute coordinates, not relative to mouse.
- transfer only 'path' node info, and within the path node transfer only
the 'd' attribute, and the 'transform' attribute, not the 'style' attribute.
No, for a typical user there's no separate "transform". Any command that treats path data separately from transform will give unexplainably weird results for such a user. It's a very specialized functionality.
- if the path id already exists, then overwrite it, but only 'd' and
'transform', not 'style'.
That is very specialized too. Users don't care and don't know about ids. For them, this command will just act weird and unpredictable.
So, I don't think it's a good idea overall. However, there's another command that needs to be implemented and that will give you, more or less, the functionality you need. It's copy/pasting nodes: in Node tool, pressing ctrl+c with some nodes selected, these nodes must be copied to some special storage; and when you press ctrl+v with some nodes selected, these nodes must be replaced with pasted nodes, correspondingly moved and probably rotated to fit the path in the new place. If you're replacing all nodes of an object, no such move/rotation is necessary. Then, pasting path data from another application would be done like this: select target object, switch to node tool, select all nodes and press ctrl+v.