Code

spcc_flush_white(SPConnectorContext *cc, SPCurve *gc) now uses curve->get_pathvector...
[inkscape.git] / src / sp-shape.h
index 2b265fdaaf6b397c8c4247098dbf3ee7354c9068..d0bfc376a920616883c12d1f29682f578c1c1dc7 100644 (file)
@@ -9,12 +9,13 @@
  *
  * Copyright (C) 1999-2002 Lauris Kaplinski
  * Copyright (C) 2000-2001 Ximian, Inc.
+ * Copyright (C) 2008 Johan Engelen
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
 #include "display/display-forward.h"
-#include "sp-item.h"
+#include "sp-lpe-item.h"
 #include "sp-marker-loc.h"
 
 #include <sigc++/connection.h>
 
 #define SP_SHAPE_WRITE_PATH (1 << 2)
 
-struct SPShape : public SPItem {
-       SPCurve *curve;
+struct SPDesktop;
+
+struct SPShape : public SPLPEItem {
+    SPCurve *curve;
 
       SPObject *marker[SP_MARKER_LOC_QTY];
       sigc::connection release_connect [SP_MARKER_LOC_QTY];
@@ -36,7 +39,7 @@ struct SPShape : public SPItem {
 };
 
 struct SPShapeClass {
-       SPItemClass item_class;
+       SPLPEItemClass item_class;
 
        /* Build bpath from extra shape attributes */
        void (* set_shape) (SPShape *shape);
@@ -60,6 +63,6 @@ void sp_shape_set_marker (SPObject *object, unsigned int key, const gchar *value
 int sp_shape_has_markers (SPShape const *shape);
 int sp_shape_number_of_markers (SPShape* Shape, int type);
 NR::Matrix sp_shape_marker_get_transform(SPShape const *shape, NArtBpath const *bp);
-bool sp_shape_marker_required(SPShape const *shape, int const m, NArtBpath *bp);
+bool sp_shape_marker_required(SPShape const *shape, int const m, NArtBpath const *bp);
 
 #endif