diff --git a/src/sp-image.h b/src/sp-image.h
index 75194174ef11f8bba8ce67ab3ab8d6819f0f7293..172cd711885de1a1df04a4413d1c7bda8e33f4b1 100644 (file)
--- a/src/sp-image.h
+++ b/src/sp-image.h
/* SPImage */
#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <glibmm/ustring.h>
#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