summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6259f78)
raw | patch | inline | side by side (parent: 6259f78)
| author | johanengelen <johanengelen@users.sourceforge.net> | |
| Mon, 7 Jul 2008 20:23:57 +0000 (20:23 +0000) | ||
| committer | johanengelen <johanengelen@users.sourceforge.net> | |
| Mon, 7 Jul 2008 20:23:57 +0000 (20:23 +0000) |
14 files changed:
diff --git a/src/event-context.h b/src/event-context.h
index 3a745a6a2c4cafb6d8c4f89268a9cc2003e89306..9cff3a62f342ed9cb62d27560f643ecd2f4f09d4 100644 (file)
--- a/src/event-context.h
+++ b/src/event-context.h
#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 81713e0eecbbd139d5a2cb98200e15b9fcad9421..ed0887e9810ab2ab4c8b6272ef5ac0f78c6ddcee 100644 (file)
--- a/src/gradient-drag.h
+++ b/src/gradient-drag.h
#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
index ea90c4254926df649f3648f89890e26f73c77218..e4564cd01e276d3b6360a89ceffafda4a606b7ff 100644 (file)
--- a/src/knot-holder-entity.h
+++ b/src/knot-holder-entity.h
#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 c1ec3adc9230fa534cb73db2dce412c7b5a11187..c0810bda13498c43da8c3320b15d2ad79b6156ea 100644 (file)
--- a/src/libnr/nr-point.h
+++ b/src/libnr/nr-point.h
#include <libnr/nr-coord.h>
#include <libnr/nr-dim2.h>
+#include <libnr/nr-forward.h>
//#include "round.h"
#include "decimal-round.h"
namespace NR {
-class Matrix;
-
/// Cartesian point.
class Point {
public:
diff --git a/src/libnr/nr-types.h b/src/libnr/nr-types.h
index 4802f5e0c919e34e7632db7db5eb33b8224c0a48..bf499e7ffb5c13eb231bc83bd4521fe91648f895 100644 (file)
--- a/src/libnr/nr-types.h
+++ b/src/libnr/nr-types.h
#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__ */
index 07b58c87cdbf7c3e4afb56a92023bc8b047478c7..38c9ccdaaadfe64aef5b4c8d47ff71e55a4eeb16 100644 (file)
#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"
class Tooltips;
}
-namespace Geom {
- class Matrix;
-}
-
namespace Inkscape {
namespace XML {
index 93097e0217a87effa688f6d8ba182f206fb072b3..eeadf48cd11adec979c13477be5fb877645321dc 100644 (file)
#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 7ce0732a43f64690c1565e1eb125254b56bba5ed..48d008b1fe103bdbc7b2ca3156f74f26850757b4 100644 (file)
--- a/src/shape-editor.h
+++ b/src/shape-editor.h
*/
#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"
index df87da84c000f0ddd36d4d6fcf2ec8f3dfab365d..8f6cdc24d930c694f88acb593db742f2cac1f9ff 100644 (file)
--- a/src/sp-item-transform.h
+++ b/src/sp-item-transform.h
#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 4e19125b40f51b1e818e1fd83c40781572158682..5fbf1976c3b70b942f1d0785df247e5f22e13b91 100644 (file)
--- a/src/svg/stringstream.h
+++ b/src/svg/stringstream.h
#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 8cf948b60a2fb07e9d9e8a75a6f017ef67ead197..d0bbc3051e3f09b28fc300973bf98ff9b697eb37 100644 (file)
--- a/src/text-editing.h
+++ b/src/text-editing.h
#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 e1d4e491f601bb38cde645774cf189e6fc92f13c..63a138f6725f029f2ada7cca42b6b55ac050977e 100644 (file)
--- a/src/ui/view/view.h
+++ b/src/ui/view/view.h
#include "gc-managed.h"
#include "gc-finalized.h"
#include "gc-anchored.h"
-
+#include <libnr/nr-forward.h>
/**
* Iterates until true or returns false.
}
};
-
-namespace NR {
- class Point;
-}
class SPDocument;
namespace Inkscape {
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 193c1125c631015dd60069127199405cadece0ad..59563a7fc754f8a6d9c3a55b67a30b1aac283ffa 100644 (file)
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
#include <glib.h>
-
+#include <2geom/point.h>
#include "svg/stringstream.h"
#include "svg/css-ostringstream.h"
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 f0a1dbeb61a8c5fae564f2d5d470683a2482817d..a16a3c4f4e1fb7091c172f322683bc0a5ab72a2f 100644 (file)
--- a/src/xml/repr.h
+++ b/src/xml/repr.h
#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"
* 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 !