Code

Split SPCanvasItem and SPCanvasGroup to individual .h files. Removed forward header.
authorJon A. Cruz <jon@joncruz.org>
Thu, 23 Dec 2010 08:10:28 +0000 (00:10 -0800)
committerJon A. Cruz <jon@joncruz.org>
Thu, 23 Dec 2010 08:10:28 +0000 (00:10 -0800)
87 files changed:
src/common-context.h
src/connector-context.cpp
src/connector-context.h
src/desktop-handles.cpp
src/desktop-handles.h
src/desktop.cpp
src/display/Makefile_insert
src/display/canvas-arena.cpp
src/display/canvas-arena.h
src/display/canvas-axonomgrid.cpp
src/display/canvas-bpath.cpp
src/display/canvas-bpath.h
src/display/canvas-grid.cpp
src/display/canvas-grid.h
src/display/canvas-temporary-item-list.h
src/display/canvas-temporary-item.h
src/display/canvas-text.cpp
src/display/canvas-text.h
src/display/display-forward.h [deleted file]
src/display/gnome-canvas-acetate.cpp
src/display/gnome-canvas-acetate.h
src/display/guideline.cpp
src/display/guideline.h
src/display/nr-arena-glyphs.h
src/display/nr-arena-shape.cpp
src/display/nr-arena-shape.h
src/display/snap-indicator.h
src/display/sodipodi-ctrl.cpp
src/display/sodipodi-ctrl.h
src/display/sodipodi-ctrlrect.cpp
src/display/sodipodi-ctrlrect.h
src/display/sp-canvas-group.h [new file with mode: 0644]
src/display/sp-canvas-item.h [new file with mode: 0644]
src/display/sp-canvas-util.cpp
src/display/sp-canvas.cpp
src/display/sp-canvas.h
src/display/sp-ctrlline.cpp
src/display/sp-ctrlline.h
src/display/sp-ctrlpoint.cpp
src/display/sp-ctrlpoint.h
src/display/sp-ctrlquadr.cpp
src/draw-context.h
src/dropper-context.h
src/dyna-draw-context.cpp
src/eraser-context.cpp
src/gradient-drag.cpp
src/inkview.cpp
src/interface.cpp
src/knot.h
src/live_effects/effect.h
src/pen-context.cpp
src/pencil-context.cpp
src/rubberband.cpp
src/rubberband.h
src/select-context.cpp
src/seltrans-handles.cpp
src/seltrans-handles.h
src/sp-conn-end-pair.h
src/sp-guide.cpp
src/sp-guide.h
src/sp-image.h
src/sp-lpe-item.h
src/sp-path.h
src/sp-shape.h
src/spray-context.cpp
src/spray-context.h
src/svg-view-widget.cpp
src/svg-view-widget.h
src/svg-view.cpp
src/text-context.h
src/tweak-context.cpp
src/tweak-context.h
src/ui/dialog/aboutbox.cpp
src/ui/tool/control-point-selection.h
src/ui/tool/control-point.cpp
src/ui/tool/control-point.h
src/ui/tool/multi-path-manipulator.h
src/ui/tool/node-tool.cpp
src/ui/tool/node-tool.h
src/ui/tool/path-manipulator.h
src/ui/tool/selector.h
src/ui/tool/transform-handle-set.h
src/ui/widget/ruler.cpp
src/ui/widget/svg-canvas.cpp
src/widgets/desktop-widget.cpp
src/widgets/desktop-widget.h
src/zoom-context.cpp

index 416307d58e6331154c7edf8acd757b98600a3413..74b6bbaef61bd7e3d7e8f3b008a4a18de6003589 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "event-context.h"
 #include "display/curve.h"
-#include "display/display-forward.h"
 #include <2geom/point.h>
 
 #define SP_TYPE_COMMON_CONTEXT (sp_common_context_get_type())
index b1061c1247a47452fb5b6d2aa5d30d4504ed5808..f4b202451156cc5e83133d55d3fe5dfda76075b1 100644 (file)
@@ -1,12 +1,14 @@
-/*
+/**
  * Connector creation tool
  *
  * Authors:
  *   Michael Wybrow <mjwybrow@users.sourceforge.net>
  *   Abhishek Sharma
+ *   Jon A. Cruz <jon@joncruz.org>
  *
  * Copyright (C) 2005-2008  Michael Wybrow
  * Copyright (C) 2009  Monash University
+ * Copyright (C) 2010  authors
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  *
 #include "inkscape.h"
 #include "preferences.h"
 #include "sp-path.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-bpath.h"
 #include "display/sodipodi-ctrl.h"
 #include <glibmm/i18n.h>
index 036981f6ffc7df624c14e53cbe026b8abcbe8bdc..b03d0fcf0935358b307b9b738983c356ac839b0f 100644 (file)
@@ -16,7 +16,6 @@
 #include <sigc++/connection.h>
 #include "event-context.h"
 #include <forward.h>
-#include <display/display-forward.h>
 #include <2geom/point.h>
 #include "libavoid/connector.h"
 #include "connection-points.h"
@@ -29,6 +28,8 @@
 #define SP_IS_CONNECTOR_CONTEXT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), SP_TYPE_CONNECTOR_CONTEXT))
 
 struct SPKnot;
+struct SPCurve;
+
 namespace Inkscape
 {
   class Selection;
index 481bf35ea56ab3cabfbd8b0f30b6b35c6fb9b2be..d35df645495bc9023ed9c2090d18d323976ed692 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_DESKTOP_HANDLES_C__
-
 /*
  * Frontends
  *
@@ -13,6 +11,7 @@
  */
 
 #include "display/sp-canvas.h"
+#include "display/sp-canvas-item.h"
 #include "desktop.h"
 
 SPEventContext *
index 61ea43d1e5cd206b2c6cf371962b39eca6673155..74001d8907764ebb817aba0f07bf032ed0fd6387 100644 (file)
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display/display-forward.h"
 #include "forward.h"
 
+struct SPCanvas;
+struct SPCanvasItem;
+struct SPCanvasGroup;
+
 namespace Inkscape { 
     class MessageStack;
     class Selection; 
index 0b17fb385aead21accff281c1d3cc646cdf92955..bfde0ee9239314b859659f94579c7ab655dae924 100644 (file)
@@ -80,6 +80,7 @@
 #include "display/sp-canvas-util.h"
 #include "display/canvas-temporary-item-list.h"
 #include "display/snap-indicator.h"
+#include "display/sp-canvas-group.h"
 #include "ui/dialog/dialog-manager.h"
 #include "xml/repr.h"
 #include "message-context.h"
index 58e667402fb2f51e1fb1c4621dcd65c84fe00dc3..b50a71033a269cf34c337e20480c03a6859b4b33 100644 (file)
@@ -35,7 +35,6 @@ ink_common_sources += \
        display/canvas-text.cpp \
        display/curve.cpp       \
        display/curve.h \
-       display/display-forward.h       \
        display/gnome-canvas-acetate.cpp        \
        display/gnome-canvas-acetate.h  \
        display/guideline.cpp   \
@@ -53,6 +52,8 @@ ink_common_sources += \
        display/sodipodi-ctrl.h \
        display/sodipodi-ctrlrect.cpp   \
        display/sodipodi-ctrlrect.h     \
+       display/sp-canvas-group.h       \
+       display/sp-canvas-item.h        \
        display/sp-canvas-util.cpp      \
        display/sp-canvas-util.h        \
        display/sp-canvas.cpp   \
index af9a38281916624b3a6f33d8720ed744af4bcae5..fb7ca9d78d482a070dfaa2995907afd8ff2fdf49 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_CANVAS_ARENA_C__
-
 /*
  * RGBA display list system for inkscape
  *
@@ -15,7 +13,6 @@
 #include <libnr/nr-blit.h>
 #include <gtk/gtksignal.h>
 
-#include <display/display-forward.h>
 #include <display/sp-canvas-util.h>
 #include "helper/sp-marshal.h"
 #include <display/nr-arena.h>
index 34bc1994625ee901ba4bd95452edd237e2dee378..7267583f018f0a2e46409ef334794712187cace8 100644 (file)
@@ -13,7 +13,7 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "../display/sp-canvas.h"
+#include "sp-canvas-item.h"
 #include "nr-arena-item.h"
 
 G_BEGIN_DECLS
index 9dfde969dc1f362ee1ba9b24a1fba849de8a6457..550fd35593fd97bf782f338c286cf054087392de 100644 (file)
@@ -1,5 +1,3 @@
-#define CANVAS_AXONOMGRID_C
-
 /*
  * Copyright (C) 2006-2008 Johan Engelen <johan@shouraizou.nl>
  */
@@ -21,7 +19,6 @@
 #include "canvas-axonomgrid.h"
 #include "util/mathfns.h"
 #include "2geom/line.h"
-#include "display-forward.h"
 #include <libnr/nr-pixops.h>
 
 #include "canvas-grid.h"
index 063bdab66322e4dcb9d5bd37cc23400bcecb47b5..f8a8ef22c64352f46d0e378584b6f658bb5314b1 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_CANVAS_BPATH_C__
-
 /*
  * Simple bezier bpath CanvasItem for inkscape
  *
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
+#include <sstream>
+#include <string.h>
+#include <desktop.h>
+
 #include "color.h"
 #include "sp-canvas-util.h"
 #include "inkscape-cairo.h"
 #include "canvas-bpath.h"
-#include "display/display-forward.h"
+#include "display/sp-canvas-group.h"
 #include "display/curve.h"
 #include "display/inkscape-cairo.h"
-#include <libnr/nr-pixops.h>
+#include "libnr/nr-pixops.h"
 #include "helper/geom.h"
 
-#include <sstream>
-#include <string.h>
-#include <desktop.h>
-
-/**
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-#include <color.h>
-
-#include <libnr/nr-pixops.h>
-**/
 
 void nr_pixblock_render_bpath_rgba (Shape* theS,uint32_t color,NRRectL &area,char* destBuf,int stride);
 
index 65ad4aa0053e54876ab8b61382d068457d12b5d2..0760baef661c3d23ba9a54d62d5b63e5540bd9dd 100644 (file)
@@ -1,13 +1,15 @@
-#ifndef __SP_CANVAS_BPATH_H__
-#define __SP_CANVAS_BPATH_H__
+#ifndef SEEN_SP_CANVAS_BPATH_H
+#define SEEN_SP_CANVAS_BPATH_H
 
 /*
  * Simple bezier bpath CanvasItem for inkscape
  *
  * Authors:
  *   Lauris Kaplinski <lauris@ximian.com>
+ *   Jon A. Cruz <jon@joncruz.org>
  *
  * Copyright (C) 2001 Lauris Kaplinski and Ximian, Inc.
+ * Copyright (C) 2010 authors
  *
  * Released under GNU GPL
  *
 
 #include <glib/gtypes.h>
 
-#include <display/sp-canvas.h>
+#include "sp-canvas-item.h"
 
 struct SPCanvasBPath;
 struct SPCanvasBPathClass;
+struct SPCanvasGroup;
 struct SPCurve;
 
 #define SP_TYPE_CANVAS_BPATH (sp_canvas_bpath_get_type ())
index df73eb78e0496470ec00255661e57c5d0ca4ff14..5892e1dc736dfb11b89fdba115c308ec7ce867ed 100644 (file)
  * Don't be shy to correct things.
  */
 
+#include "sp-canvas-group.h"
 #include "sp-canvas-util.h"
 #include "util/mathfns.h"
-#include "display-forward.h"
-#include <libnr/nr-pixops.h>
+#include "libnr/nr-pixops.h"
 #include "desktop-handles.h"
 #include "helper/units.h"
 #include "svg/svg-color.h"
index a11d77d1dc86d9eb5372c10e6dc50ddfad6c7426..b8f313948e222fc3931c69f79cc3f01eeb69063d 100644 (file)
@@ -14,7 +14,7 @@
 #include <gtkmm/box.h>
 #include <gtkmm.h>
 
-#include "display/sp-canvas.h"
+#include "sp-canvas-item.h"
 #include "xml/repr.h"
 #include "ui/widget/color-picker.h"
 #include "ui/widget/scalar-unit.h"
@@ -26,6 +26,7 @@
 
 struct SPDesktop;
 struct SPNamedView;
+struct SPCanvasBuf;
 class SPDocument;
 
 namespace Inkscape {
index 4d712e2163bc94d176e63c02096db8a16efae2fb..47556b9f177e00a3d43c2118833023ce248c4e6b 100644 (file)
  */
 
 #include "forward.h"
-#include "display/display-forward.h"
 #include <list>
 
+struct SPCanvasItem;
+
 namespace Inkscape {
 namespace Display {
 
index 5077fb55ba7125fae6adc159da22a14cbf399610..692f9d85b23fcfe1b97dbf3ba897567fa4183972 100644 (file)
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display/display-forward.h"
 
 #include <sigc++/sigc++.h>
+#include <glib/gtypes.h>
+
+struct SPCanvasItem;
 
 namespace Inkscape {
 namespace Display {
index 94312bacb6880e4983df6d20e2125cf224300892..e2bc096793967eb9247481e379efbb330083130e 100644 (file)
@@ -13,7 +13,6 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display-forward.h"
 #include "sp-canvas-util.h"
 #include "canvas-text.h"
 #include "display/inkscape-cairo.h"
index e5d634985dcb8a3977b586c027a2f697d889f702..cc194ccc42c743947404669249fae33916978117 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __SP_CANVASTEXT_H__
-#define __SP_CANVASTEXT_H__
+#ifndef SEEN_SP_CANVASTEXT_H
+#define SEEN_SP_CANVASTEXT_H
 
 /*
  * Canvas text.
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-/*
- * FIXME: The following code should actually be in a separate file called display/canvas-text.h. It
- * temporarily had to be moved here because of linker errors.
- */
+#include "sp-canvas-item.h"
 
 struct SPItem;
 struct SPDesktop;
@@ -26,7 +23,7 @@ struct SPDesktop;
 #define SP_CANVASTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CANVASTEXT, SPCanvasText))
 #define SP_IS_CANVASTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CANVASTEXT))
 
-struct SPCanvasText : public SPCanvasItem{
+struct SPCanvasText : public SPCanvasItem {
     SPItem *item;  // the item to which this line belongs in some sense; may be NULL for some users
     guint32 rgba;
     guint32 rgba_stroke;
@@ -53,7 +50,7 @@ void sp_canvastext_set_number_as_text (SPCanvasText *ct, int num);
 void sp_canvastext_set_fontsize (SPCanvasText *ct, double size);
 void sp_canvastext_set_anchor (SPCanvasText *ct, double anchor_x, double anchor_y);
 
-#endif
+#endif // SEEN_SP_CANVASTEXT_H
 
 
 /*
diff --git a/src/display/display-forward.h b/src/display/display-forward.h
deleted file mode 100644 (file)
index 25c4a6e..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef SEEN_DISPLAY_DISPLAY_FORWARD_H
-#define SEEN_DISPLAY_DISPLAY_FORWARD_H
-
-#include <glib-object.h>
-
-struct SPCanvas;
-struct SPCanvasClass;
-struct SPCanvasItem;
-typedef struct _SPCanvasItemClass SPCanvasItemClass;
-struct SPCanvasGroup;
-struct SPCanvasGroupClass;
-class SPCurve;
-
-namespace Inkscape {
-namespace Display {
-    class TemporaryItem;
-    class TemporaryItemList;
-}
-}
-
-#define SP_TYPE_CANVAS_ITEM (sp_canvas_item_get_type())
-#define SP_CANVAS_ITEM(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CANVAS_ITEM, SPCanvasItem))
-#define SP_IS_CANVAS_ITEM(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_CANVAS_ITEM))
-#define SP_CANVAS_ITEM_GET_CLASS(o) (GTK_CHECK_GET_CLASS((o), SP_TYPE_CANVAS_ITEM, SPCanvasItemClass))
-
-GType sp_canvas_item_get_type();
-
-#define SP_TYPE_CANVAS_GROUP (sp_canvas_group_get_type())
-#define SP_CANVAS_GROUP(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CANVAS_GROUP, SPCanvasGroup))
-#define SP_IS_CANVAS_GROUP(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_CANVAS_GROUP))
-
-GType sp_canvas_group_get_type();
-
-#define SP_TYPE_CANVAS (sp_canvas_get_type())
-#define SP_CANVAS(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CANVAS, SPCanvas))
-#define SP_IS_CANVAS(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_CANVAS))
-
-GType sp_canvas_get_type();
-
-
-#endif /* !SEEN_DISPLAY_DISPLAY_FORWARD_H */
-
-/*
-  Local Variables:
-  mode:c++
-  c-file-style:"stroustrup"
-  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
-  indent-tabs-mode:nil
-  fill-column:99
-  End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
index fdb137e2722dd0e7fa744769b9d8d30b74e7ebf7..c257f1f9286dadc67072b386e5f37fe93239af14 100644 (file)
@@ -14,7 +14,6 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display-forward.h"
 #include "gnome-canvas-acetate.h"
 
 static void sp_canvas_acetate_class_init (SPCanvasAcetateClass *klass);
index 40574e1bfde49b5bca45303fde9f852b1d4f0560..8c284291c80e874add584d669e16eacf0b70bfa7 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __SP_CANVAS_ACETATE_H__
-#define __SP_CANVAS_ACETATE_H__
+#ifndef SEEN_SP_CANVAS_ACETATE_H
+#define SEEN_SP_CANVAS_ACETATE_H
 
 /*
  * Infinite invisible canvas item
@@ -16,7 +16,7 @@
  */
 
 #include <glib/gtypes.h>
-#include "display/sp-canvas.h"
+#include "display/sp-canvas-item.h"
 
 
 #define GNOME_TYPE_CANVAS_ACETATE (sp_canvas_acetate_get_type ())
@@ -38,4 +38,15 @@ GtkType sp_canvas_acetate_get_type (void);
 
 
 
-#endif
+#endif // SEEN_SP_CANVAS_ACETATE_H
+
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
index 0141692f284946529e5fa2f1a69cfbbd013c7d75..ce1289faf30adf6a0d73ed97ac6338f937da14b9 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_GUIDELINE_C__
-
 /*
  * Horizontal/vertical but can also be angled line
  *
@@ -18,7 +16,6 @@
 
 #include <libnr/nr-pixops.h>
 #include <2geom/transforms.h>
-#include "display-forward.h"
 #include "sp-canvas-util.h"
 #include "sp-ctrlpoint.h"
 #include "guideline.h"
index a6ce57113815dc0a2020aaa7440ccd263aa24de0..9654d04a14bff628d3716d3cc1cb6a219ba9cdab 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __SP_GUIDELINE_H__
-#define __SP_GUIDELINE_H__
+#ifndef SEEN_SP_GUIDELINE_H
+#define SEEN_SP_GUIDELINE_H
 
 /*
  * The visual representation of SPGuide.
@@ -14,8 +14,8 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "sp-canvas.h"
 #include <2geom/point.h>
+#include "sp-canvas-item.h"
 
 #define SP_TYPE_GUIDELINE (sp_guideline_get_type())
 #define SP_GUIDELINE(o) (GTK_CHECK_CAST((o), SP_TYPE_GUIDELINE, SPGuideLine))
@@ -53,7 +53,7 @@ void sp_guideline_set_color(SPGuideLine *gl, unsigned int rgba);
 void sp_guideline_set_sensitive(SPGuideLine *gl, int sensitive);
 void sp_guideline_delete(SPGuideLine *gl);
 
-#endif
+#endif // SEEN_SP_GUIDELINE_H
 
 /*
   Local Variables:
index 5bf94f3fc02919c27ab387bc964245d765ebb055..1d15fef8139d08fef8106701860be6acd2d2511e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __NR_ARENA_GLYPHS_H__
-#define __NR_ARENA_GLYPHS_H__
+#ifndef SEEN_NR_ARENA_GLYPHS_H
+#define SEEN_NR_ARENA_GLYPHS_H
 
 /*
  * RGBA display list system for inkscape
 #define NR_ARENA_GLYPHS(obj) (NR_CHECK_INSTANCE_CAST ((obj), NR_TYPE_ARENA_GLYPHS, NRArenaGlyphs))
 #define NR_IS_ARENA_GLYPHS(obj) (NR_CHECK_INSTANCE_TYPE ((obj), NR_TYPE_ARENA_GLYPHS))
 
-#include <libnrtype/nrtype-forward.h>
+#include "libnrtype/nrtype-forward.h"
 
-#include <display/display-forward.h>
-#include <forward.h>
-#include <sp-paint-server.h>
-#include <display/nr-arena-item.h>
+#include "forward.h"
+#include "sp-paint-server.h"
+#include "display/nr-arena-item.h"
 
 #define test_glyph_liv
 
+struct SPCurve;
 class Shape;
 
 NRType nr_arena_glyphs_get_type (void);
@@ -106,4 +106,15 @@ void nr_arena_glyphs_group_set_style (NRArenaGlyphsGroup *group, SPStyle *style)
 
 void nr_arena_glyphs_group_set_paintbox (NRArenaGlyphsGroup *group, const NRRect *pbox);
 
-#endif
+#endif // SEEN_NR_ARENA_GLYPHS_H
+
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
index 6aaf395b3288c5e705524d2995e3768632c6c993..6f38fd97d8d018d57a57af5bae793749235b0246 100644 (file)
@@ -1,5 +1,3 @@
-#define __NR_ARENA_SHAPE_C__
-
 /*
  * RGBA display list system for inkscape
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
+#include <glib.h>
+#include <fenv.h>
+#include <typeinfo>
+#include <cairo.h>
+
 #include <2geom/svg-path.h>
 #include <2geom/svg-path-parser.h>
-#include <display/canvas-arena.h>
-#include <display/nr-arena.h>
-#include <display/nr-arena-shape.h>
-#include "display/curve.h"
-#include <libnr/nr-pixops.h>
-#include <libnr/nr-blit.h>
-#include <libnr/nr-convert2geom.h>
 #include <2geom/pathvector.h>
 #include <2geom/curves.h>
-#include <livarot/Path.h>
-#include <livarot/float-line.h>
-#include <livarot/int-line.h>
-#include <style.h>
+#include "display/sp-canvas.h"
+#include "display/canvas-arena.h"
+#include "display/nr-arena.h"
+#include "display/nr-arena-shape.h"
+#include "display/curve.h"
+#include "libnr/nr-pixops.h"
+#include "libnr/nr-blit.h"
+#include "libnr/nr-convert2geom.h"
+#include "livarot/Path.h"
+#include "livarot/float-line.h"
+#include "livarot/int-line.h"
+#include "style.h"
 #include "inkscape-cairo.h"
 #include "helper/geom.h"
 #include "helper/geom-curves.h"
 #include "sp-filter.h"
 #include "sp-filter-reference.h"
 #include "display/nr-filter.h"
-#include <typeinfo>
-#include <cairo.h>
 #include "preferences.h"
 
-#include <glib.h>
 #include "svg/svg.h"
-#include <fenv.h>
 
 //int  showRuns=0;
 void nr_pixblock_render_shape_mask_or(NRPixBlock &m,Shape* theS);
index 03505cfc2af0a97a5914274d35e74941fd67d986..d484615a92236f50877aed85cece72c28bb9ce53 100644 (file)
@@ -17,7 +17,6 @@
 #define NR_ARENA_SHAPE(obj) (NR_CHECK_INSTANCE_CAST ((obj), NR_TYPE_ARENA_SHAPE, NRArenaShape))
 #define NR_IS_ARENA_SHAPE(obj) (NR_CHECK_INSTANCE_TYPE ((obj), NR_TYPE_ARENA_SHAPE))
 
-#include "display/display-forward.h"
 #include "display/canvas-bpath.h"
 #include "forward.h"
 #include "sp-paint-server.h"
index 5475f9f60e30a3bdddfae43622905fe64550a652..d60ff1481099cea395bdee389f5dfa772407c6f7 100644 (file)
  */
 
 #include "forward.h"
-#include "display/display-forward.h"
 #include "snapped-point.h"
 
 namespace Inkscape {
 namespace Display {
 
+class TemporaryItem;
+
 class SnapIndicator  {
 public:
     SnapIndicator(SPDesktop *desktop);
index 6084ff898c174e8f04dd7db2353700f96105e6a1..a63f570cf12457876b17eb66226d788a6bc62b72 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <2geom/transforms.h>
 #include "sp-canvas-util.h"
-#include "display-forward.h"
 #include "sodipodi-ctrl.h"
 #include "libnr/nr-pixops.h"
 
index 945d94807f5da0538696294c54b3079f30ed7bb8..a708ad41b5874e2e694c076ea1ae2b7b98527ffa 100644 (file)
@@ -8,10 +8,9 @@
  */
 
 #include <gtk/gtkenums.h>
-#include "sp-canvas.h"
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include <libnr/nr-rect-l.h>
-
+#include "sp-canvas-item.h"
 
 
 #define SP_TYPE_CTRL            (sp_ctrl_get_type ())
@@ -35,7 +34,7 @@ typedef enum {
     SP_CTRL_MODE_XOR
 } SPCtrlModeType;
 
-struct SPCtrl : public SPCanvasItem{
+struct SPCtrl : public SPCanvasItem {
     SPCtrlShapeType shape;
     SPCtrlModeType mode;
     GtkAnchorType anchor;
index 46d83c208a4ca082b93353d86177a401a3705f4d..6d9c4085817fdf6ff028970486d79a82f817c859 100644 (file)
@@ -15,7 +15,6 @@
  *
  */
 
-#include "display-forward.h"
 #include "sp-canvas-util.h"
 #include "sodipodi-ctrlrect.h"
 #include "libnr/nr-pixops.h"
index 70dcf1f3025ca4560b214f7b934709181f9e3439..9ecba47c80a3e69a150dfe2f074c66cb2d850f1e 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __INKSCAPE_CTRLRECT_H__
-#define __INKSCAPE_CTRLRECT_H__
+#ifndef SEEN_INKSCAPE_CTRLRECT_H
+#define SEEN_INKSCAPE_CTRLRECT_H
 
 /**
  * \file sodipodi-ctrlrect.h
  */
 
 #include <glib/gtypes.h>
-#include "sp-canvas.h"
+#include "sp-canvas-item.h"
+#include "libnr/nr-rect-l.h"
+
+struct SPCanvasBuf;
 
 #define SP_TYPE_CTRLRECT (sp_ctrlrect_get_type ())
 #define SP_CTRLRECT(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CTRLRECT, CtrlRect))
@@ -56,7 +59,7 @@ struct SPCtrlRectClass : public SPCanvasItemClass {};
 
 GtkType sp_ctrlrect_get_type();
 
-#endif
+#endif // SEEN_RUBBERBAND_H
 
 /*
   Local Variables:
diff --git a/src/display/sp-canvas-group.h b/src/display/sp-canvas-group.h
new file mode 100644 (file)
index 0000000..10bf0fa
--- /dev/null
@@ -0,0 +1,45 @@
+#ifndef SEEN_SP_CANVAS_GROUP_H
+#define SEEN_SP_CANVAS_GROUP_H
+
+/** \file
+ * SPCanvasGroup
+ *
+ * Authors:
+ *   Federico Mena <federico@nuclecu.unam.mx>
+ *   Raph Levien <raph@gimp.org>
+ *   Lauris Kaplinski <lauris@kaplinski.com>
+ *   Jon A. Cruz <jon@joncruz.org>
+ *
+ * Copyright (C) 1998 The Free Software Foundation
+ * Copyright (C) 2002 Lauris Kaplinski
+ * Copyright (C) 2010 authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <glib-object.h>
+
+#define SP_TYPE_CANVAS_GROUP (sp_canvas_group_get_type())
+#define SP_CANVAS_GROUP(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CANVAS_GROUP, SPCanvasGroup))
+#define SP_IS_CANVAS_GROUP(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_CANVAS_GROUP))
+
+GType sp_canvas_group_get_type();
+
+
+
+#endif // SEEN_SP_CANVAS_GROUP_H
+
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
diff --git a/src/display/sp-canvas-item.h b/src/display/sp-canvas-item.h
new file mode 100644 (file)
index 0000000..1ae2ff2
--- /dev/null
@@ -0,0 +1,110 @@
+#ifndef SEEN_SP_CANVAS_ITEM_H
+#define SEEN_SP_CANVAS_ITEM_H
+
+/** \file
+ * SPCanvasItem.
+ *
+ * Authors:
+ *   Federico Mena <federico@nuclecu.unam.mx>
+ *   Raph Levien <raph@gimp.org>
+ *   Lauris Kaplinski <lauris@kaplinski.com>
+ *   Jon A. Cruz <jon@joncruz.org>
+ *
+ * Copyright (C) 1998 The Free Software Foundation
+ * Copyright (C) 2002 Lauris Kaplinski
+ * Copyright (C) 2010 authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <glib-object.h>
+#include <gtk/gtkobject.h>
+#include <gdk/gdkevents.h>
+
+#include "2geom/rect.h"
+
+G_BEGIN_DECLS
+
+struct SPCanvas;
+struct SPCanvasBuf;
+struct SPCanvasGroup;
+
+typedef struct _SPCanvasItemClass SPCanvasItemClass;
+
+#define SP_TYPE_CANVAS_ITEM (sp_canvas_item_get_type())
+#define SP_CANVAS_ITEM(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CANVAS_ITEM, SPCanvasItem))
+#define SP_IS_CANVAS_ITEM(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_CANVAS_ITEM))
+#define SP_CANVAS_ITEM_GET_CLASS(o) (GTK_CHECK_GET_CLASS((o), SP_TYPE_CANVAS_ITEM, SPCanvasItemClass))
+
+GType sp_canvas_item_get_type();
+
+/**
+ * An SPCanvasItem refers to a SPCanvas and to its parent item; it has
+ * four coordinates, a bounding rectangle, and a transformation matrix.
+ */
+struct SPCanvasItem : public GtkObject {
+    SPCanvas *canvas;
+    SPCanvasItem *parent;
+
+    double x1, y1, x2, y2;
+    Geom::Rect bounds;
+    Geom::Matrix xform;
+};
+
+/**
+ * The vtable of an SPCanvasItem.
+ */
+struct _SPCanvasItemClass : public GtkObjectClass {
+    void (* update) (SPCanvasItem *item, Geom::Matrix const &affine, unsigned int flags);
+
+    void (* render) (SPCanvasItem *item, SPCanvasBuf *buf);
+    double (* point) (SPCanvasItem *item, Geom::Point p, SPCanvasItem **actual_item);
+
+    int (* event) (SPCanvasItem *item, GdkEvent *event);
+};
+
+SPCanvasItem *sp_canvas_item_new(SPCanvasGroup *parent, GtkType type, const gchar *first_arg_name, ...);
+
+G_END_DECLS
+
+
+#define sp_canvas_item_set gtk_object_set
+
+void sp_canvas_item_affine_absolute(SPCanvasItem *item, Geom::Matrix const &aff);
+
+void sp_canvas_item_raise(SPCanvasItem *item, int positions);
+void sp_canvas_item_lower(SPCanvasItem *item, int positions);
+bool sp_canvas_item_is_visible(SPCanvasItem *item);
+void sp_canvas_item_show(SPCanvasItem *item);
+void sp_canvas_item_hide(SPCanvasItem *item);
+int sp_canvas_item_grab(SPCanvasItem *item, unsigned int event_mask, GdkCursor *cursor, guint32 etime);
+void sp_canvas_item_ungrab(SPCanvasItem *item, guint32 etime);
+
+Geom::Matrix sp_canvas_item_i2w_affine(SPCanvasItem const *item);
+
+void sp_canvas_item_grab_focus(SPCanvasItem *item);
+
+void sp_canvas_item_request_update(SPCanvasItem *item);
+
+/* get item z-order in parent group */
+
+gint sp_canvas_item_order(SPCanvasItem * item);
+
+
+
+#endif // SEEN_SP_CANVAS_ITEM_H
+
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
index a06d930740e505846bba863d83e40e02c4834e70..af80eed44bc34af453533856bf59b2c93fb3c598 100644 (file)
  */
 
 
+#include <string.h>  // for memset
 #include <2geom/matrix.h>
 #include "libnr/nr-pixops.h"
+#include "sp-canvas-item.h"
 #include "sp-canvas-util.h"
-#include <string.h>  /* for memset */
 
 
 void
index 2319f82f60480da027342d969e3f200db9a9aac4..fc68bcfc00a3c6ac304033832b183ab925738eab 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_CANVAS_C__
-
 /** \file
  * Port of GnomeCanvas for Inkscape needs
  *
 
 #include "helper/sp-marshal.h"
 #include <helper/recthull.h>
-#include <display/sp-canvas.h>
-#include "display-forward.h"
+#include "display/sp-canvas.h"
+#include "display/sp-canvas-group.h"
 #include <2geom/matrix.h>
-#include <libnr/nr-convex-hull.h>
+#include "libnr/nr-convex-hull.h"
 #include "preferences.h"
 #include "inkscape.h"
 #include "sodipodi-ctrlrect.h"
index 5cd2016180dd6be2edfe22a572dc50b6524c3457..9c8b199823db70799ded17afa50920ea4b94bc56 100644 (file)
@@ -2,7 +2,7 @@
 #define SEEN_SP_CANVAS_H
 
 /** \file
- * SPCanvas, SPCanvasBuf, and SPCanvasItem.
+ * SPCanvas, SPCanvasBuf.
  *
  * Authors:
  *   Federico Mena <federico@nuclecu.unam.mx>
 
 G_BEGIN_DECLS
 
+#define SP_TYPE_CANVAS sp_canvas_get_type()
+#define SP_CANVAS(obj) (GTK_CHECK_CAST((obj), SP_TYPE_CANVAS, SPCanvas))
+#define SP_IS_CANVAS(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_CANVAS))
+
+GType sp_canvas_get_type();
+
 struct SPCanvas;
+struct SPCanvasItem;
 struct SPCanvasGroup;
-typedef struct _SPCanvasItemClass SPCanvasItemClass;
 
 enum {
     SP_CANVAS_UPDATE_REQUESTED  = 1 << 0,
@@ -66,58 +72,8 @@ struct SPCanvasBuf{
     cairo_t *ct;
 };
 
-/**
- * An SPCanvasItem refers to a SPCanvas and to its parent item; it has
- * four coordinates, a bounding rectangle, and a transformation matrix.
- */
-struct SPCanvasItem : public GtkObject {
-    SPCanvas *canvas;
-    SPCanvasItem *parent;
-
-    double x1, y1, x2, y2;
-    Geom::Rect bounds;
-    Geom::Matrix xform;
-};
-
-/**
- * The vtable of an SPCanvasItem.
- */
-struct _SPCanvasItemClass : public GtkObjectClass {
-    void (* update) (SPCanvasItem *item, Geom::Matrix const &affine, unsigned int flags);
-
-    void (* render) (SPCanvasItem *item, SPCanvasBuf *buf);
-    double (* point) (SPCanvasItem *item, Geom::Point p, SPCanvasItem **actual_item);
-
-    int (* event) (SPCanvasItem *item, GdkEvent *event);
-};
-
-SPCanvasItem *sp_canvas_item_new(SPCanvasGroup *parent, GtkType type, const gchar *first_arg_name, ...);
-
 G_END_DECLS
 
-#define sp_canvas_item_set gtk_object_set
-
-void sp_canvas_item_affine_absolute(SPCanvasItem *item, Geom::Matrix const &aff);
-
-void sp_canvas_item_raise(SPCanvasItem *item, int positions);
-void sp_canvas_item_lower(SPCanvasItem *item, int positions);
-bool sp_canvas_item_is_visible(SPCanvasItem *item);
-void sp_canvas_item_show(SPCanvasItem *item);
-void sp_canvas_item_hide(SPCanvasItem *item);
-int sp_canvas_item_grab(SPCanvasItem *item, unsigned int event_mask, GdkCursor *cursor, guint32 etime);
-void sp_canvas_item_ungrab(SPCanvasItem *item, guint32 etime);
-
-Geom::Matrix sp_canvas_item_i2w_affine(SPCanvasItem const *item);
-
-void sp_canvas_item_grab_focus(SPCanvasItem *item);
-
-void sp_canvas_item_request_update(SPCanvasItem *item);
-
-/* get item z-order in parent group */
-
-gint sp_canvas_item_order(SPCanvasItem * item);
-
-
 // SPCanvas -------------------------------------------------
 /**
  * Port of GnomeCanvas for inkscape needs.
index d8a622d908ca7e67a08c762ea3ebdc9eef1dcb77..0ef23812e0b828b858d168c7a9a7e2f4f3f6941a 100644 (file)
@@ -19,7 +19,6 @@
  *
  */
 
-#include "display-forward.h"
 #include "sp-canvas-util.h"
 #include "sp-ctrlline.h"
 
index 64497c4641d3f796945507a123186989db6b18da..a13907a7061e0aed36cfd9bdac10b77193500ac1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __INKSCAPE_CTRLLINE_H__
-#define __INKSCAPE_CTRLLINE_H__
+#ifndef SEEN_INKSCAPE_CTRLLINE_H
+#define SEEN_INKSCAPE_CTRLLINE_H
 
 /*
  * Simple straight line
@@ -14,7 +14,7 @@
  * Released under GNU GPL
  */
 
-#include "sp-canvas.h"
+#include "sp-canvas-item.h"
 
 struct SPItem;
 
@@ -38,7 +38,7 @@ void sp_ctrlline_set_coords (SPCtrlLine *cl, const Geom::Point start, const Geom
 
 
 
-#endif
+#endif // SEEN_INKSCAPE_CTRLLINE_H
 
 /*
   Local Variables:
index 1f8c145a85d1a61a20b0a204c07e05efb38bb112..ba40192a98940c4c6b36d0c41d9843029f2a1fea 100644 (file)
@@ -11,7 +11,6 @@
  * Released under GNU GPL
  */
 
-#include "display-forward.h"
 #include "sp-canvas-util.h"
 #include "sp-ctrlpoint.h"
 
index d0e72f5181f39a947306f5675f96891b8073474d..1b7b7ba1e87b49f6f7a77b7adf125a91b2f96faa 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __INKSCAPE_CTRLPOINT_H__
-#define __INKSCAPE_CTRLPOINT_H__
+#ifndef SEEN_INKSCAPE_CTRLPOINT_H
+#define SEEN_INKSCAPE_CTRLPOINT_H
 
 /*
  * A simple point
@@ -12,7 +12,7 @@
  * Released under GNU GPL
  */
 
-#include "sp-canvas.h"
+#include "sp-canvas-item.h"
 
 struct SPItem;
 
@@ -20,7 +20,7 @@ struct SPItem;
 #define SP_CTRLPOINT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLPOINT, SPCtrlPoint))
 #define SP_IS_CTRLPOINT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLPOINT))
 
-struct SPCtrlPoint : public SPCanvasItem{
+struct SPCtrlPoint : public SPCanvasItem {
     SPItem *item;  // the item to which this line belongs in some sense; may be NULL for some users
     guint32 rgba;
     Geom::Point pt;
@@ -38,7 +38,7 @@ void sp_ctrlpoint_set_radius (SPCtrlPoint *cp, const double r);
 
 
 
-#endif
+#endif // SEEN_INKSCAPE_CTRLPOINT_H
 
 /*
   Local Variables:
index 54b9bc3e18c1de9bd48e8bf726866708e0492d98..c29aecb96d2ebb6f162980c2c8580bb3112b8bad 100644 (file)
@@ -1,5 +1,3 @@
-#define __INKSCAPE_CTRLQUADR_C__
-
 /*
  * Quadrilateral
  *
  * Released under GNU GPL
  */
 
-#include "display-forward.h"
-#include "sp-canvas-util.h"
-#include "sp-ctrlquadr.h"
-
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
+#include "sp-canvas-util.h"
+#include "sp-canvas-item.h"
+#include "sp-ctrlquadr.h"
 #include "display/inkscape-cairo.h"
 #include "color.h"
 
index 1364b5dadb407ed0af9debd92ef762cd9be9c8df..2827714cbcb85edaa50dd3a5f5bcf9909ac875d1 100644 (file)
@@ -17,7 +17,6 @@
 #include <sigc++/sigc++.h>
 #include "event-context.h"
 #include <forward.h>
-#include <display/display-forward.h>
 #include <libnr/nr-point.h>
 #include "live_effects/effect.h"
 
index 6f8b60b3469451572452792ab3825e687d635698..f2d18a5078f5d36a2b44cad51c4c14ca59bceac2 100644 (file)
@@ -12,7 +12,6 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display/display-forward.h"
 #include "event-context.h"
 
 #define SP_TYPE_DROPPER_CONTEXT (sp_dropper_context_get_type ())
index 93d4262cd172512dbfe53d9fe6befc064f398009..7d0c7ee91ff178c849007f6a34c43c83a5b9e2dc 100644 (file)
@@ -58,6 +58,7 @@
 #include "sp-shape.h"
 #include "sp-path.h"
 #include "sp-text.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-bpath.h"
 #include "display/canvas-arena.h"
 #include "livarot/Shape.h"
index 68c0989bc945b1a80c8ad3e5b6764ad2df468ecf..8ac765b9e6a87c9f87d344e687effc0a64f9fb13 100644 (file)
@@ -34,6 +34,7 @@
 #include <numeric>
 
 #include "svg/svg.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-bpath.h"
 #include <2geom/bezier-utils.h>
 
index 2e9a21acf2ccceb0786e36ae253a8c716c073e9d..fe8297286c2489562352fa06cd128a7c384a910a 100644 (file)
@@ -25,6 +25,7 @@
 #include "selection.h"
 #include "desktop.h"
 #include "desktop-style.h"
+#include "desktop-handles.h"
 #include "document.h"
 #include "display/sp-ctrlline.h"
 #include "display/sp-canvas-util.h"
index 09adb8c2d3c684c763004bfa175fe272e4821a3b..448aa77f180e0be7c1679ff398cf90deadc8f758 100644 (file)
@@ -325,8 +325,7 @@ main (int argc, const char **argv)
     (ss.doc)->ensureUpToDate();
     ss.view = sp_svg_view_widget_new (ss.doc);
     (ss.doc)->doUnref ();
-    sp_svg_view_widget_set_resize (SP_SVG_VIEW_WIDGET (ss.view), FALSE,
-                                   (ss.doc)->getWidth (), (ss.doc)->getHeight ());
+    SP_SVG_VIEW_WIDGET(ss.view)->setResize( false, ss.doc->getWidth(), ss.doc->getHeight() );
     gtk_widget_show (ss.view);
     gtk_container_add (GTK_CONTAINER (w), ss.view);
 
index 0fd2b65ead4617801f81823cb04f3e033729d4b9..551e2bf9147dc8a6acaeb36cfbe33769c831142d 100644 (file)
@@ -8,6 +8,7 @@
  *   Jon A. Cruz <jon@joncruz.org>
  *   Abhishek Sharma
  *
+ * Copyright (C) 2010 authors
  * Copyright (C) 1999-2005 authors
  * Copyright (C) 2001-2002 Ximian, Inc.
  * Copyright (C) 2004 David Turner
@@ -272,7 +273,9 @@ sp_create_window(SPViewWidget *vw, gboolean editable)
     win->show();
 
     // needed because the first ACTIVATE_DESKTOP was sent when there was no window yet
-    inkscape_reactivate_desktop(SP_DESKTOP_WIDGET(vw)->desktop);
+    if ( SP_IS_DESKTOP_WIDGET(vw) ) {
+        inkscape_reactivate_desktop(SP_DESKTOP_WIDGET(vw)->desktop);
+    }
 }
 
 void
@@ -294,20 +297,16 @@ sp_ui_new_view()
 
 /* TODO: not yet working */
 /* To be re-enabled (by adding to menu) once it works. */
-void
-sp_ui_new_view_preview()
+void sp_ui_new_view_preview()
 {
-    SPDocument *document;
-    SPViewWidget *dtw;
-
-    document = SP_ACTIVE_DOCUMENT;
-    if (!document) return;
+    SPDocument *document = SP_ACTIVE_DOCUMENT;
+    if ( document ) {
+        SPViewWidget *dtw = reinterpret_cast<SPViewWidget *>(sp_svg_view_widget_new(document));
+        g_return_if_fail(dtw != NULL);
+        SP_SVG_VIEW_WIDGET(dtw)->setResize(true, 400.0, 400.0);
 
-    dtw = (SPViewWidget *) sp_svg_view_widget_new(document);
-    g_return_if_fail(dtw != NULL);
-    sp_svg_view_widget_set_resize(SP_SVG_VIEW_WIDGET(dtw), TRUE, 400.0, 400.0);
-
-    sp_create_window(dtw, FALSE);
+        sp_create_window(dtw, FALSE);
+    }
 }
 
 /**
index 32035d603990624c7d06a82a042989c5847fe094..24a86282e63b9f6e3a43513fdcbdb409d75f8518 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <gdk/gdk.h>
 #include <gtk/gtkenums.h>
-#include "display/display-forward.h"
 #include "forward.h"
 #include <2geom/point.h>
 #include "knot-enums.h"
@@ -24,6 +23,7 @@
 
 class SPKnot;
 class SPKnotClass;
+struct SPCanvasItem;
 
 #define SP_TYPE_KNOT            (sp_knot_get_type())
 #define SP_KNOT(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_KNOT, SPKnot))
index 681bae3870348724d69924a233b88b6887d4897c..6acba000ce5f9376dc7802190dfcaf37f68a1959 100644 (file)
@@ -10,7 +10,6 @@
  */
 
 
-#include "display/display-forward.h"
 #include <map>
 #include <glibmm/ustring.h>
 #include <2geom/forward.h>
@@ -29,6 +28,7 @@ class SPLPEItem;
 class KnotHolder;
 class KnotHolderEntity;
 class SPPath;
+struct SPCurve;
 
 namespace Gtk {
     class Widget;
index 6778d4bcc90b95cbcdd387f978dc40d52163205d..607bdaedc2fc9df9279e87d201b3f5c1d077ca78 100644 (file)
@@ -31,6 +31,7 @@
 #include "message-context.h"
 #include "preferences.h"
 #include "sp-path.h"
+#include "display/sp-canvas.h"
 #include "display/curve.h"
 #include "pixmaps/cursor-pen.xpm"
 #include "display/canvas-bpath.h"
index 0717724de29f72a437bdda984d76f7f2ef550c14..a873eb6fcb9a84e383c68e006e1ee2040b13a7e9 100644 (file)
@@ -41,6 +41,7 @@
 #include "document.h"
 #include "desktop-style.h"
 #include "macros.h"
+#include "display/sp-canvas.h"
 #include "display/curve.h"
 #include "livarot/Path.h"
 
index 17e7102f8b0a8b22f2fe6b816de76fdb804c25f7..398f01d3e38e971acf40339432b8796c9326268f 100644 (file)
@@ -1,5 +1,3 @@
-#define __RUBBERBAND_C__
-
 /**
  * \file src/rubberband.cpp
  * \brief Rubberbanding selector
@@ -16,6 +14,8 @@
 #include "desktop.h"
 #include "desktop-handles.h"
 #include "rubberband.h"
+#include "display/sp-canvas.h"
+#include "display/sp-canvas-item.h"
 #include "display/canvas-bpath.h"
 #include "display/curve.h"
 
index 57e4ea2a394e159b499b0369173a7537452bfcd8..6c857fb63aa701c31294b2c36c90e7246102e307 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __RUBBERBAND_H__
-#define __RUBBERBAND_H__
+#ifndef SEEN_RUBBERBAND_H
+#define SEEN_RUBBERBAND_H
 
 /**
  * \file src/rubberband.h
@@ -74,7 +74,7 @@ private:
 
 }
 
-#endif
+#endif // SEEN_RUBBERBAND_H
 
 /*
   Local Variables:
index 96758a9f13d76f528b352fc533cad02f202fc6cf..4a8b38c3725fb4ae20b541ec91d9d7feb1ca18df 100644 (file)
@@ -5,7 +5,9 @@
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   bulia byak <buliabyak@users.sf.net>
  *   Abhishek Sharma
+ *   Jon A. Cruz <jon@joncruz.org>
  *
+ * Copyright (C) 2010      authors
  * Copyright (C) 2006      Johan Engelen <johan@shouraizou.nl>
  * Copyright (C) 1999-2005 Authors
  *
@@ -40,6 +42,7 @@
 #include "selection-describer.h"
 #include "seltrans.h"
 #include "box3d.h"
+#include "display/sp-canvas.h"
 #include "display/nr-arena-item.h"
 
 using Inkscape::DocumentUndo;
index d3197a062c0d6294af1debc229dafeb3f493978e..10b87aaff6db8ffd363ad63c7985213a7bb79d66 100644 (file)
@@ -1,5 +1,3 @@
-#define SP_SELTRANS_HANDLES_C
-
 #include "seltrans-handles.h"
 
 
index 4a0dd0bf779b015f3e6474b37a0ed9c1217e8b23..f796a1007bb0f35bc2f59393f918ec7a404e60fb 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __SP_SELTRANS_HANDLES_H__
-#define __SP_SELTRANS_HANDLES_H__
+#ifndef SEEN_SP_SELTRANS_HANDLES_H
+#define SEEN_SP_SELTRANS_HANDLES_H
 
 /*
  * Seltrans knots
@@ -14,6 +14,7 @@
 
 #include "display/sodipodi-ctrl.h"
 #include <2geom/forward.h>
+#include <gdk/gdkcursor.h>
 
 namespace Inkscape
 {
@@ -50,9 +51,22 @@ struct SPSelTransHandle {
        gdouble x, y;
 };
 
+// TODO these must be purged:
 extern SPSelTransHandle const handles_scale[8];
 extern SPSelTransHandle const handles_rotate[8];
 extern SPSelTransHandle const handle_center;
 
-#endif
+#endif // SEEN_SP_SELTRANS_HANDLES_H
+
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
+
 
index 3b011ed173a6bb1b99b77be92d8436c5e4c582bb..fa585d618a430bcfce900bc1e48a1fb909b02565 100644 (file)
@@ -22,6 +22,8 @@
 
 
 class SPConnEnd;
+struct SPCurve;
+
 namespace Inkscape {
 namespace XML {
 class Node;
index f92d791162e5267677eb10804185d5c4280771a0..a0186a37d7aa31942ef29054d053cec83a84564a 100644 (file)
@@ -23,6 +23,7 @@
 #include <cstring>
 #include <string>
 #include "desktop-handles.h"
+#include "display/sp-canvas.h"
 #include "display/guideline.h"
 #include "svg/svg.h"
 #include "svg/stringstream.h"
index 4fc4032db44b2b08cff27a78fededf4ffa91553b..f9f67f3010a0f2cb31ecd02fe9d51b7c209cb29e 100644 (file)
 
 #include <vector>
 
-#include "display/display-forward.h"
 #include <2geom/point.h>
 #include "sp-object.h"
 #include "sp-guide-attachment.h"
 
+struct SPCanvas;
+struct SPCanvasGroup;
+
 #define SP_TYPE_GUIDE            (sp_guide_get_type())
 #define SP_GUIDE(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_GUIDE, SPGuide))
 #define SP_GUIDE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_GUIDE, SPGuideClass))
index 172cd711885de1a1df04a4413d1c7bda8e33f4b1..9618c98738d1ffef786953457451d7f79fe42ba1 100644 (file)
@@ -29,7 +29,6 @@ class SPImageClass;
 #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
 
index 1af7f27979bb5aac5b45d52ad651461e5f60251e..d1baa4309a3f2061f3b894985b08fa4f8ef8a6de 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include "sp-item.h"
-#include "display/display-forward.h"
 
 #include <list>
 
 #define SP_IS_LPE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_LPE_ITEM))
 
 struct LivePathEffectObject;
+struct SPCurve;
+
 namespace Inkscape{ 
+namespace Display {
+    class TemporaryItem;
+}
 namespace LivePathEffect{
     class LPEObjectReference;
     class Effect;
-};
-};
+}
+}
 
 typedef std::list<Inkscape::LivePathEffect::LPEObjectReference *> PathEffectList;
 
index bf294c37ceebedf980d5af97eae31be309292e27..5cfa34913e6f9a628b308235e92543279a6a5b78 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __SP_PATH_H__
-#define __SP_PATH_H__
+#ifndef SEEN_SP_PATH_H
+#define SEEN_SP_PATH_H
 
 /*
  * SVG <path> implementation
@@ -16,6 +16,7 @@
 #include "sp-shape.h"
 #include "sp-conn-end-pair.h"
 
+struct SPCurve;
 
 #define SP_TYPE_PATH (sp_path_get_type ())
 #define SP_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_PATH, SPPath))
@@ -39,7 +40,7 @@ SPCurve* sp_path_get_original_curve (SPPath *path);
 SPCurve* sp_path_get_curve_for_edit (SPPath *path);
 const SPCurve* sp_path_get_curve_reference (SPPath *path);
 
-#endif
+#endif // SEEN_SP_PATH_H
 
 /*
   Local Variables:
index 78855c1c7d32606f98b0801045964801d736f3e8..4932687110fdb7c58eb9e79baac2778822749baa 100644 (file)
@@ -16,7 +16,6 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display/display-forward.h"
 #include "sp-lpe-item.h"
 #include "sp-marker-loc.h"
 #include <2geom/forward.h>
index 0cf74f59b97d5e617f8a841dbab2333bc478d278..6d19cbce429f662e0d6dfa55f82c133045340a11 100644 (file)
@@ -27,7 +27,6 @@
 #include <numeric>
 
 #include "svg/svg.h"
-#include "display/canvas-bpath.h"
 
 #include <glib/gmem.h>
 #include "macros.h"
@@ -62,6 +61,7 @@
 #include "gradient-chemistry.h"
 #include "sp-text.h"
 #include "sp-flowtext.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-bpath.h"
 #include "display/canvas-arena.h"
 #include "display/curve.h"
index b559fa5936a451ff020abdde004d2ba4a6f8ef6f..edb872117fcda68d0fe83ee621fd62c1700778c1 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 #include "event-context.h"
-#include <display/display-forward.h>
 #include <libnr/nr-point.h>
 //#include "ui/widget/spray-option.h"
 #include "ui/dialog/dialog.h"
index d2a31966afab6916bffb915ed373459e80094b6e..777c1b496031e7e2911d171a45a12c072584823d 100644 (file)
@@ -5,7 +5,9 @@
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   Ralf Stephan <ralf@ark.in-berlin.de>
  *   Abhishek Sharma
+ *   Jon A. Cruz <jon@joncruz.org>
  *
+ * Copyright (C) 2010 authors
  * Copyright (C) 2001-2002 Lauris Kaplinski
  * Copyright (C) 2001 Ximian, Inc.
  *
@@ -13,6 +15,8 @@
  */
 
 #include <gtk/gtkscrolledwindow.h>
+#include "display/sp-canvas.h"
+#include "display/sp-canvas-group.h"
 #include "display/canvas-arena.h"
 #include "document.h"
 #include "svg-view.h"
@@ -220,22 +224,18 @@ sp_svg_view_widget_new (SPDocument *doc)
 /**
  * Flags the SPSVGSPViewWidget to have its size renegotiated with Gtk.
  */
-void
-sp_svg_view_widget_set_resize (SPSVGSPViewWidget *vw, bool resize, gdouble width, gdouble height)
+void SPSVGSPViewWidget::setResize(bool resize, gdouble width, gdouble height)
 {
-       g_return_if_fail (vw != NULL);
+    g_return_if_fail( !resize || (width > 0.0) );
+    g_return_if_fail( !resize || (height > 0.0) );
 
-       g_return_if_fail (SP_IS_SVG_VIEW_WIDGET (vw));
-       g_return_if_fail (!resize || (width > 0.0));
-       g_return_if_fail (!resize || (height > 0.0));
+    this->resize = resize;
+    this->maxwidth = width;
+    this->maxheight = height;
 
-       vw->resize = resize;
-       vw->maxwidth = width;
-       vw->maxheight = height;
-
-       if (resize) {
-               gtk_widget_queue_resize (GTK_WIDGET (vw));
-       }
+    if ( resize ) {
+        gtk_widget_queue_resize( GTK_WIDGET(this) );
+    }
 }
 
 
index cd609b07ac2432a44a509fba01d23d986594d37f..e732841c7d5ff80b2e871720f9f8f3e82ede9b69 100644 (file)
@@ -1,19 +1,20 @@
-#ifndef __SP_SVG_VIEW_WIDGET_H__
-#define __SP_SVG_VIEW_WIDGET_H__
+#ifndef SEEN_SP_SVG_VIEW_WIDGET_H
+#define SEEN_SP_SVG_VIEW_WIDGET_H
 
 /** \file
  * SPSVGView, SPSVGSPViewWidget: Generic SVG view and widget
  *
  * Authors:
  *   Lauris Kaplinski <lauris@kaplinski.com>
+ *   Jon A. Cruz <jon@joncruz.org>
  *
+ * Copyright (C) 2010 Authors
  * Copyright (C) 2001-2002 Lauris Kaplinski
  * Copyright (C) 2001 Ximian, Inc.
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display/display-forward.h"
 #include "ui/view/view-widget.h"
 
 class SPDocument;
@@ -30,33 +31,39 @@ GtkType sp_svg_view_widget_get_type (void);
 
 GtkWidget *sp_svg_view_widget_new (SPDocument *doc);
 
-void sp_svg_view_widget_set_resize (SPSVGSPViewWidget *vw, bool resize, gdouble width, gdouble height);
-
 /**
  * An SPSVGSPViewWidget is an SVG view together with a canvas.
  */
 struct SPSVGSPViewWidget {
-    public:
-       SPViewWidget widget;
+public:
+    SPViewWidget widget;
 
-       GtkWidget *sw;
-       GtkWidget *canvas;
+    GtkWidget *sw;
+    GtkWidget *canvas;
 
-       /// Whether to resize automatically
-       bool resize;
-       gdouble maxwidth, maxheight;
+    /// Whether to resize automatically
+    bool resize;
+    gdouble maxwidth, maxheight;
 
     // C++ Wrappers
     /// Flags the SPSVGSPViewWidget to have its size changed with Gtk.
-    void setResize(bool resize, gdouble width, gdouble height) {
-       sp_svg_view_widget_set_resize(this, resize, width, height);
-    }
+    void setResize(bool resize, gdouble width, gdouble height);
 };
 
 /// The SPSVGSPViewWidget vtable.
 struct SPSVGSPViewWidgetClass {
-       SPViewWidgetClass parent_class;
+    SPViewWidgetClass parent_class;
 };
 
 
-#endif
+#endif // SEEN_SP_SVG_VIEW_WIDGET_H
+/*
+  Local Variables:
+  mode:c++
+  c-file-style:"stroustrup"
+  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+  indent-tabs-mode:nil
+  fill-column:99
+  End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
index ef87b38efecbf8dd5fac4887b7252091d6c81661..b35375736131a32b6dda884cad0a182558a29551 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #include "display/canvas-arena.h"
-#include "display/display-forward.h"
 #include "document.h"
 #include "sp-item.h"
 #include "svg-view.h"
index a6e2e8db7040652861328f2fdd1cc1aa0a4c6bd8..2cceaebb276db073b4ff7b37f8761ac7f98917ce 100644 (file)
@@ -19,7 +19,6 @@
 #include <gtk/gtkimcontext.h>
 
 #include "event-context.h"
-#include <display/display-forward.h>
 #include <2geom/point.h>
 #include "libnrtype/Layout-TNG.h"
 
index 1d0c004a4a40fc448a9cc87da6f729ab8734701c..3b93c659b664df6455948bd9ab6da916bd32eb6f 100644 (file)
@@ -20,7 +20,6 @@
 #include <numeric>
 
 #include "svg/svg.h"
-#include "display/canvas-bpath.h"
 
 #include <glib/gmem.h>
 #include "macros.h"
@@ -61,6 +60,7 @@
 #include "gradient-chemistry.h"
 #include "sp-text.h"
 #include "sp-flowtext.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-bpath.h"
 #include "display/canvas-arena.h"
 #include "display/curve.h"
index ad688b0256431fd0d40cace694dcfd01c0438190..542254b91bb250e561cdb69f7dfd494e0d6aad8b 100644 (file)
@@ -13,7 +13,6 @@
  */
 
 #include "event-context.h"
-#include <display/display-forward.h>
 #include <libnr/nr-point.h>
 
 #define SP_TYPE_TWEAK_CONTEXT (sp_tweak_context_get_type())
index 8db5e7c0b1bef4e1bf70f7a427ba43df23be5c5e..61851c56cb63fdcee5e68fa599c10a760938e9b3 100644 (file)
@@ -165,7 +165,7 @@ Gtk::Widget *build_splash_widget() {
     
     doc->doUnref();
 
-    sp_svg_view_widget_set_resize(SP_SVG_VIEW_WIDGET(v), FALSE, (int)width, (int)height);
+    SP_SVG_VIEW_WIDGET(v)->setResize(false, static_cast<int>(width), static_cast<int>(height));
 
     Gtk::AspectFrame *frame=new Gtk::AspectFrame();
     frame->unset_label();
index 3aed6ae93bf4a378ec32ed14ffca6128d1991943..6a5b05e853592dbcde34c3f94f6a337c43c552bd 100644 (file)
 #include <2geom/forward.h>
 #include <2geom/point.h>
 #include <2geom/rect.h>
-#include "display/display-forward.h"
 #include "util/accumulators.h"
 #include "util/unordered-containers.h"
 #include "ui/tool/commit-events.h"
 #include "ui/tool/manipulator.h"
 
 class SPDesktop;
+struct SPCanvasGroup;
 
 namespace Inkscape {
 namespace UI {
index d5e5b7dfe8e01091abc876eaf6bcc9a7017786e7..38b421553faf0990491be34225420ea6d2783ade 100644 (file)
@@ -14,6 +14,7 @@
 #include <2geom/point.h>
 #include "desktop.h"
 #include "desktop-handles.h"
+#include "display/sp-canvas.h"
 #include "display/snap-indicator.h"
 #include "event-context.h"
 #include "message-context.h"
index 4de5e58475b667e365d55f5630c8c46b28595992..3f5fe668d1dd322a2a424d2b2ec42181cd0f06e4 100644 (file)
@@ -17,7 +17,6 @@
 #include <gtkmm.h>
 #include <2geom/point.h>
 
-#include "display/display-forward.h"
 #include "forward.h"
 #include "util/accumulators.h"
 #include "display/sodipodi-ctrl.h"
index ddb74c1bc13d0f65422c2d25ff82e73b9d2048e7..aef9c1ac9d0045a829253921aa3722de456f36cb 100644 (file)
@@ -12,7 +12,6 @@
 #define SEEN_UI_TOOL_MULTI_PATH_MANIPULATOR_H
 
 #include <sigc++/connection.h>
-#include "display/display-forward.h"
 #include "forward.h"
 #include "ui/tool/commit-events.h"
 #include "ui/tool/manipulator.h"
index 8661e79465dbf13ef75c43501da10230c1d3eb5c..e75f31370394913fa6b40834e56e31717340992d 100644 (file)
@@ -13,6 +13,7 @@
 #include <glib/gi18n.h>
 #include "desktop.h"
 #include "desktop-handles.h"
+#include "display/sp-canvas-group.h"
 #include "display/canvas-bpath.h"
 #include "display/curve.h"
 #include "display/sp-canvas.h"
index 4d38e69e2dc8739a8e2fdd244f02b0cc6afa09ca..bcf6a8d5e63709dca4f85ddaecbb454a9bf5a9a9 100644 (file)
@@ -17,7 +17,6 @@
 #include <sigc++/sigc++.h>
 #include "event-context.h"
 #include "forward.h"
-#include "display/display-forward.h"
 #include "ui/tool/node-types.h"
 
 #define INK_TYPE_NODE_TOOL               (ink_node_tool_get_type ())
@@ -30,13 +29,17 @@ class InkNodeTool;
 class InkNodeToolClass;
 
 namespace Inkscape {
+
+namespace Display {
+class TemporaryItem;
+} // namespace Display
 namespace UI {
 class MultiPathManipulator;
 class ControlPointSelection;
 class Selector;
 struct PathSharedData;
-}
-}
+} // namespace UI
+} // namespace Inkscape
 
 typedef std::auto_ptr<Inkscape::UI::MultiPathManipulator> MultiPathPtr;
 typedef std::auto_ptr<Inkscape::UI::ControlPointSelection> CSelPtr;
index 8a0167e595111ff38785cce37c9fe1bbc8e859d5..58907ea96e0782bc72f88ffd1e52b5cf7e9e3a2b 100644 (file)
 #include <2geom/matrix.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/weak_ptr.hpp>
-#include "display/display-forward.h"
 #include "forward.h"
 #include "ui/tool/node.h"
 #include "ui/tool/manipulator.h"
 
 struct SPCanvasItem;
+struct SPCurve;
 
 namespace Inkscape {
 namespace XML { class Node; }
index e61668d9ecdef8cda8c8523c5eaf8057c406d07c..05d72c2086933560be056fcadf20833d123c36f8 100644 (file)
@@ -14,7 +14,6 @@
 #include <memory>
 #include <gdk/gdk.h>
 #include <2geom/rect.h>
-#include "display/display-forward.h"
 #include "ui/tool/manipulator.h"
 
 class SPDesktop;
index 2a4df87510948af90bd78b0e500a459c7dd9e761..b18c598ee98b261dae4095fd2cf677b34792971e 100644 (file)
 #include <memory>
 #include <gdk/gdk.h>
 #include <2geom/forward.h>
-#include "display/display-forward.h"
 #include "ui/tool/commit-events.h"
 #include "ui/tool/manipulator.h"
 
 class SPDesktop;
-class CtrlRect; // this is not present in display-forward.h!
+class CtrlRect;
 namespace Inkscape {
 namespace UI {
 
index 107f4e8c6ef248088299a21f9094b280f5b2dee1..1a6455ca0a37492dc36f7bc64721e3fb6c989bfd 100644 (file)
@@ -26,6 +26,7 @@
 #include "ui/widget/ruler.h"
 
 #include "xml/repr.h"
+#include "display/sp-canvas.h"
 #include "display/guideline.h"
 #include "desktop.h"
 #include "desktop-handles.h"
index 64657296ddd427bd207c2e643d1afedc8e011cba..7d37ec355f07ff9e71c84ccb5005c4ecd3f8fd79 100644 (file)
@@ -12,8 +12,8 @@
 #include <gtkmm/widget.h>
 #include "desktop.h"
 #include "desktop-events.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-arena.h"
-#include "display/display-forward.h"
 #include "ui/widget/svg-canvas.h"
 
 namespace Inkscape {
index 3509a1040d20dc1789ccfe86511e8bbbfc4129ad..be2caa5ee0a3723a0e162bd99bd97d38e8467775 100644 (file)
@@ -33,6 +33,7 @@
 #include "desktop-events.h"
 #include "desktop-handles.h"
 #include "desktop-widget.h"
+#include "display/sp-canvas.h"
 #include "display/canvas-arena.h"
 #include "display/nr-arena.h"
 #include "document.h"
index 4edd434afc503bcd73b357af47f93480b0cfa318..1bb10fc51a77cdf6ace982595592e0440460a5df 100644 (file)
@@ -15,7 +15,6 @@
 #include <gtk/gtktooltips.h>
 #include <gtk/gtkwindow.h>
 
-#include "display/display-forward.h"
 #include "libnr/nr-point.h"
 #include "forward.h"
 #include "sp-object.h"
@@ -27,6 +26,7 @@
 
 // forward declaration
 typedef struct _EgeColorProfTracker EgeColorProfTracker;
+struct SPCanvas;
 
 
 #define SP_TYPE_DESKTOP_WIDGET SPDesktopWidget::getType()
index f8212069e11e4398b160ccad45c51c6887307620..45de37652a03caa7a05b2dc8b040923a7d0c74dc 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_ZOOM_CONTEXT_C__
-
 /*
  * Handy zooming tool
  *
@@ -18,6 +16,7 @@
 
 #include "macros.h"
 #include "rubberband.h"
+#include "display/sp-canvas-item.h"
 #include "display/sp-canvas-util.h"
 #include "desktop.h"
 #include "pixmaps/cursor-zoom.xpm"