X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-image.h;h=9618c98738d1ffef786953457451d7f79fe42ba1;hb=0dc33d4ce43e0bb49c63aa53b826ec4a1ff68e28;hp=75194174ef11f8bba8ce67ab3ab8d6819f0f7293;hpb=f76f0d94b4b87bb6c1ba98e14d120aac94e415d0;p=inkscape.git diff --git a/src/sp-image.h b/src/sp-image.h index 75194174e..9618c9873 100644 --- a/src/sp-image.h +++ b/src/sp-image.h @@ -26,43 +26,46 @@ class SPImageClass; /* SPImage */ #include +#include #include "svg/svg-length.h" #include "sp-item.h" -#include "display/display-forward.h" #define SP_IMAGE_HREF_MODIFIED_FLAG SP_OBJECT_USER_MODIFIED_FLAG_A struct SPImage : public SPItem { - SVGLength x; - SVGLength y; - SVGLength width; - SVGLength height; + SVGLength x; + SVGLength y; + SVGLength width; + SVGLength height; - // Added by EAF - /* preserveAspectRatio */ - unsigned int aspect_align : 4; - unsigned int aspect_clip : 1; - int trimx, trimy, trimwidth, trimheight; - double viewx, viewy, viewwidth, viewheight; - - SPCurve *curve; // This curve is at the image's boundary for snapping + // Added by EAF + /* preserveAspectRatio */ + unsigned int aspect_align : 4; + unsigned int aspect_clip : 1; + int trimx, trimy, trimwidth, trimheight; + double viewx, viewy, viewwidth, viewheight; - gchar *href; + SPCurve *curve; // This curve is at the image's boundary for snapping + + gchar *href; #if ENABLE_LCMS - gchar *color_profile; + gchar *color_profile; #endif // ENABLE_LCMS - GdkPixbuf *pixbuf; + GdkPixbuf *pixbuf; + gchar *pixPath; + time_t lastMod; }; struct SPImageClass { - SPItemClass parent_class; + SPItemClass parent_class; }; GType sp_image_get_type (void); /* Return duplicate of curve or NULL */ SPCurve *sp_image_get_curve (SPImage *image); - +void sp_embed_image(Inkscape::XML::Node *imgnode, GdkPixbuf *pb, Glib::ustring const &mime); +void sp_image_refresh_if_outdated( SPImage* image ); #endif