diff --git a/src/ui/clipboard.h b/src/ui/clipboard.h
index 467888ed70c9e493803fa243f27d19d9221a08de..fb28bfc146ea2bbe0f9b711a04e3b8efe16c8960 100644 (file)
--- a/src/ui/clipboard.h
+++ b/src/ui/clipboard.h
*/
/* Authors:
* Krzysztof KosiĆski <tweenk@o2.pl>
+ * Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2008 authors
+ * Copyright (C) 2010 Jon A. Cruz
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* @brief System-wide clipboard manager
*
* ClipboardManager takes care of manipulating the system clipboard in response
- * to user actions. It holds a complete Document as the contents. This document
+ * to user actions. It holds a complete SPDocument as the contents. This document
* is exported using output extensions when other applications request data.
* Copying to another instance of Inkscape is special-cased, because of the extra
* data required (i.e. style, size, Live Path Effects parameters, etc.)
class ClipboardManager {
public:
- virtual void copy() = 0;
+ virtual void copy(SPDesktop *desktop) = 0;
virtual void copyPathParameter(Inkscape::LivePathEffect::PathParam *) = 0;
- virtual bool paste(bool in_place = false) = 0;
- virtual bool pasteStyle() = 0;
- virtual bool pasteSize(bool separately, bool apply_x, bool apply_y) = 0;
- virtual bool pastePathEffect() = 0;
- virtual Glib::ustring getPathParameter() = 0;
- virtual Glib::ustring getShapeOrTextObjectId() = 0;
+ virtual bool paste(SPDesktop *desktop, bool in_place = false) = 0;
+ virtual bool pasteStyle(SPDesktop *desktop) = 0;
+ virtual bool pasteSize(SPDesktop *desktop, bool separately, bool apply_x, bool apply_y) = 0;
+ virtual bool pastePathEffect(SPDesktop *desktop) = 0;
+ virtual Glib::ustring getPathParameter(SPDesktop* desktop) = 0;
+ virtual Glib::ustring getShapeOrTextObjectId(SPDesktop *desktop) = 0;
virtual const gchar *getFirstObjectID() = 0;
-
+
static ClipboardManager *get();
protected:
ClipboardManager(); // singleton
private:
ClipboardManager(const ClipboardManager &); ///< no copy
ClipboardManager &operator=(const ClipboardManager &); ///< no assign
-
+
static ClipboardManager *_instance;
};
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :