summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-07 20:23:57 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-07 20:23:57 +0000
commit755f2f762f364c864fa5fb2410a800d48dc23485 (patch)
treea259a95e5e6d3f4ab79fe9e8dc001f97dd183f8c
parentcleanup unused methods in spcurve (diff)
downloadinkscape-755f2f762f364c864fa5fb2410a800d48dc23485.tar.gz
inkscape-755f2f762f364c864fa5fb2410a800d48dc23485.zip
replace separate forward declarations by proper forward.h inclusion
(bzr r6214)
-rw-r--r--src/event-context.h5
-rw-r--r--src/gradient-drag.h4
-rw-r--r--src/knot-holder-entity.h4
-rw-r--r--src/libnr/nr-point.h3
-rw-r--r--src/libnr/nr-types.h9
-rw-r--r--src/live_effects/effect.h5
-rw-r--r--src/satisfied-guide-cns.h2
-rw-r--r--src/shape-editor.h2
-rw-r--r--src/sp-item-transform.h6
-rw-r--r--src/svg/stringstream.h5
-rw-r--r--src/text-editing.h4
-rw-r--r--src/ui/view/view.h6
-rw-r--r--src/xml/repr-util.cpp4
-rw-r--r--src/xml/repr.h8
14 files changed, 19 insertions, 48 deletions
diff --git a/src/event-context.h b/src/event-context.h
index 3a745a6a2..9cff3a62f 100644
--- a/src/event-context.h
+++ b/src/event-context.h
@@ -21,13 +21,12 @@
#include <gdk/gdktypes.h>
#include <gdk/gdkevents.h>
+#include <libnr/nr-forward.h>
+
struct GrDrag;
struct SPDesktop;
struct SPItem;
class KnotHolder;
-namespace NR {
- class Point;
-}
namespace Inkscape {
class MessageContext;
diff --git a/src/gradient-drag.h b/src/gradient-drag.h
index 81713e0ee..ed0887e98 100644
--- a/src/gradient-drag.h
+++ b/src/gradient-drag.h
@@ -19,13 +19,11 @@
#include <vector>
#include <forward.h>
+#include <libnr/nr-forward.h>
#include <knot-enums.h>
struct SPItem;
struct SPKnot;
-namespace NR {
-class Point;
-}
/**
This class represents a single draggable point of a gradient. It remembers the item
diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h
index ea90c4254..e4564cd01 100644
--- a/src/knot-holder-entity.h
+++ b/src/knot-holder-entity.h
@@ -19,12 +19,10 @@
#include <glib/gtypes.h>
#include "knot.h"
+#include <libnr/nr-forward.h>
struct SPItem;
struct SPKnot;
-namespace NR {
-class Point;
-}
class SPDesktop;
class KnotHolder;
diff --git a/src/libnr/nr-point.h b/src/libnr/nr-point.h
index c1ec3adc9..c0810bda1 100644
--- a/src/libnr/nr-point.h
+++ b/src/libnr/nr-point.h
@@ -12,6 +12,7 @@
#include <libnr/nr-coord.h>
#include <libnr/nr-dim2.h>
+#include <libnr/nr-forward.h>
//#include "round.h"
#include "decimal-round.h"
@@ -20,8 +21,6 @@
namespace NR {
-class Matrix;
-
/// Cartesian point.
class Point {
public:
diff --git a/src/libnr/nr-types.h b/src/libnr/nr-types.h
index 4802f5e0c..bf499e7ff 100644
--- a/src/libnr/nr-types.h
+++ b/src/libnr/nr-types.h
@@ -24,14 +24,7 @@
#include <libnr/nr-point-ops.h>
#include <libnr/nr-rect.h>
#include <libnr/nr-rect-l.h>
-
-namespace NR {
-
-class Rect;
-class Matrix;
-
-} /* namespace NR */
-
+#include <libnr/nr-forward.h>
#endif /* !__NR_TYPES_H__ */
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h
index 07b58c87c..38c9ccdaa 100644
--- a/src/live_effects/effect.h
+++ b/src/live_effects/effect.h
@@ -14,6 +14,7 @@
#include <map>
#include <glibmm/ustring.h>
#include <2geom/path.h>
+#include <2geom/forward.h>
#include "ui/widget/registry.h"
#include "util/enums.h"
#include "sp-lpe-item.h"
@@ -37,10 +38,6 @@ namespace Gtk {
class Tooltips;
}
-namespace Geom {
- class Matrix;
-}
-
namespace Inkscape {
namespace XML {
diff --git a/src/satisfied-guide-cns.h b/src/satisfied-guide-cns.h
index 93097e021..eeadf48cd 100644
--- a/src/satisfied-guide-cns.h
+++ b/src/satisfied-guide-cns.h
@@ -2,7 +2,7 @@
#define __SATISFIED_GUIDE_CNS_H__
#include <forward.h>
-namespace NR { class Point; }
+#include <libnr/nr-forward.h>
#include <vector>
class SPGuideConstraint;
diff --git a/src/shape-editor.h b/src/shape-editor.h
index 7ce0732a4..48d008b1f 100644
--- a/src/shape-editor.h
+++ b/src/shape-editor.h
@@ -13,9 +13,9 @@
*/
#include <forward.h>
+#include <libnr/nr-forward.h>
namespace Inkscape { namespace NodePath { class Path; } }
-namespace NR { class Rect; }
#include "libnr/nr-path-code.h"
#include "libnr/nr-point.h"
diff --git a/src/sp-item-transform.h b/src/sp-item-transform.h
index df87da84c..8f6cdc24d 100644
--- a/src/sp-item-transform.h
+++ b/src/sp-item-transform.h
@@ -2,11 +2,7 @@
#define SP_ITEM_TRANSFORM_H
#include "forward.h"
-namespace NR {
-class translate;
-class rotate;
-class Rect;
-}
+#include <libnr/nr-forward.h>
void sp_item_rotate_rel(SPItem *item, NR::rotate const &rotation);
void sp_item_scale_rel (SPItem *item, NR::scale const &scale);
diff --git a/src/svg/stringstream.h b/src/svg/stringstream.h
index 4e19125b4..5fbf1976c 100644
--- a/src/svg/stringstream.h
+++ b/src/svg/stringstream.h
@@ -5,9 +5,8 @@
#include <sstream>
#include <string>
-namespace Geom {
- class Point;
-}
+#include <2geom/forward.h>
+
namespace Inkscape {
typedef std::ios_base &(*std_oct_type)(std::ios_base &);
diff --git a/src/text-editing.h b/src/text-editing.h
index 8cf948b60..d0bbc3051 100644
--- a/src/text-editing.h
+++ b/src/text-editing.h
@@ -16,12 +16,12 @@
#include <glib/gtypes.h>
#include <utility> // std::pair
#include "libnrtype/Layout-TNG.h"
+#include <libnr/nr-forward.h>
+
class SPCSSAttr;
struct SPItem;
struct SPObject;
struct SPStyle;
-namespace NR { class Matrix; }
-namespace NR { class Point; }
typedef std::pair<Inkscape::Text::Layout::iterator, Inkscape::Text::Layout::iterator> iterator_pair;
diff --git a/src/ui/view/view.h b/src/ui/view/view.h
index e1d4e491f..63a138f67 100644
--- a/src/ui/view/view.h
+++ b/src/ui/view/view.h
@@ -20,7 +20,7 @@
#include "gc-managed.h"
#include "gc-finalized.h"
#include "gc-anchored.h"
-
+#include <libnr/nr-forward.h>
/**
* Iterates until true or returns false.
@@ -52,10 +52,6 @@ struct StopOnNonZero {
}
};
-
-namespace NR {
- class Point;
-}
class SPDocument;
namespace Inkscape {
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 193c1125c..59563a7fc 100644
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
@@ -29,7 +29,7 @@
#include <glib.h>
-
+#include <2geom/point.h>
#include "svg/stringstream.h"
#include "svg/css-ostringstream.h"
@@ -592,7 +592,7 @@ sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, double val)
return true;
}
-unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point val)
+unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val)
{
g_return_val_if_fail(repr != NULL, FALSE);
g_return_val_if_fail(key != NULL, FALSE);
diff --git a/src/xml/repr.h b/src/xml/repr.h
index f0a1dbeb6..a16a3c4f4 100644
--- a/src/xml/repr.h
+++ b/src/xml/repr.h
@@ -22,7 +22,7 @@
#include "xml/sp-css-attr.h"
#include "io/inkscapestream.h"
-#include <2geom/point.h>
+#include <2geom/forward.h>
#define SP_SODIPODI_NS_URI "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
#define SP_BROKEN_SODIPODI_NS_URI "http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
@@ -130,10 +130,6 @@
* Kees Cook 2004-07-01, updated MenTaLguY 2005-01-25
*/
-namespace Geom {
-class Point;
-}
-
/* SPXMLNs */
char const *sp_xml_ns_uri_prefix(gchar const *uri, gchar const *suggested);
char const *sp_xml_ns_prefix_uri(gchar const *prefix);
@@ -221,7 +217,7 @@ unsigned sp_repr_set_boolean(Inkscape::XML::Node *repr, gchar const *key, unsign
unsigned sp_repr_set_int(Inkscape::XML::Node *repr, gchar const *key, int val);
unsigned sp_repr_set_css_double(Inkscape::XML::Node *repr, gchar const *key, double val);
unsigned sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, double val);
-unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point val);
+unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val);
unsigned sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point *val);
/// \deprecated !