Code

* remove code duplication from pdf-cairo extension
[inkscape.git] / src / display / nr-filter-image.h
index 9d4057826de38f04f17b8154233017e8300624ef..42e7f089aca77d25fc84117595b969d002f109a7 100644 (file)
@@ -16,6 +16,7 @@
 #include "display/nr-filter-slot.h"
 #include "display/nr-filter-units.h"
 #include <gtkmm.h>
+#include "sp-item.h"
 
 namespace NR {
 
@@ -27,11 +28,18 @@ public:
 
     virtual int render(FilterSlot &slot, FilterUnits const &units);
     virtual FilterTraits get_input_traits();
+    void set_document( SPDocument *document );
+    void set_href(const gchar *href);
     void set_region(SVGLength x, SVGLength y, SVGLength width, SVGLength height);
+    bool from_element;
+    SPItem* SVGElem;
+
 private:
+    SPDocument *document;
+    gchar *feImageHref;
     guint8* image_pixbuf;
     Glib::RefPtr<Gdk::Pixbuf> image;
-    int width, height;
+    int width, height, rowstride;
     float feImageX,feImageY,feImageWidth,feImageHeight;
 };