Difference between revisions of "Clipboard"

From Inkscape Wiki
Jump to navigation Jump to search
(Created page with "== What can I copy? == When copying, different scenari could appear (cf. [http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/files/head%3A/src/ui/clipboard.cpp void Cli...")
 
Line 14: Line 14:
When pasting, the clipboard items will be scaned at a predefined order (cf. [http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/files/head%3A/src/ui/clipboard.cpp ClipboardManagerImpl::ClipboardManagerImpl()]) but the idea is to search data in the clipboard following this order:
When pasting, the clipboard items will be scaned at a predefined order (cf. [http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/files/head%3A/src/ui/clipboard.cpp ClipboardManagerImpl::ClipboardManagerImpl()]) but the idea is to search data in the clipboard following this order:


* SVG ressource (from various targets)
* Inkscape SVG ressource
** image/x-inkscape-svg
* SVG ressource
** image/svg+xml
** image/svg+xml-compressed
* Others vector formats:
* Others vector formats:
** PDF ressource
** PDF ressource

Revision as of 21:36, 28 March 2012

What can I copy?

When copying, different scenari could appear (cf. void ClipboardManagerImpl::copy(SPDesktop *desktop)):

  • If Inkscape is in Gradient mode and a gradient is selected, the selected gradient is copied
  • If Inkscape is in Color picker mode, the color under the cursor is copied
  • If Inkscape is in Text mode and if a text is selected, the selected text is copied
  • In all other cases, the objects selected are copied

What can I paste?

Default behaviour

When pasting, the clipboard items will be scaned at a predefined order (cf. ClipboardManagerImpl::ClipboardManagerImpl()) but the idea is to search data in the clipboard following this order:

  • Inkscape SVG ressource
    • image/x-inkscape-svg
  • SVG ressource
    • image/svg+xml
    • image/svg+xml-compressed
  • Others vector formats:
    • PDF ressource
    • Adobe Illustrator ressource

If no ressource is found, other formats are searched (cf. bool ClipboardManagerImpl::paste(SPDesktop *desktop, bool in_place)):

  • Windows users only: EMF ressource
  • Image ressource
  • Text string

Special behaviour

Those behaviours are accessible via keyboard shortcuts and/or menus:

Source files