summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomasz Boczkowski <penginsbacon@gmail.com>2014-05-27 20:21:15 +0000
committerTomasz Boczkowski <penginsbacon@gmail.com>2014-05-27 20:21:15 +0000
commit9f92d7370e6e3f456259f5774d3443ae763160d3 (patch)
treec8ef2e7936c1b13608f1a2432092b6cbe952cf0f /src
parentSPPattern c++-sification: replacing pattern_ functions by methods pt1 (diff)
downloadinkscape-9f92d7370e6e3f456259f5774d3443ae763160d3.tar.gz
inkscape-9f92d7370e6e3f456259f5774d3443ae763160d3.zip
SPPattern c++-sification: removed unused declatations and includes
(bzr r13341.6.20)
Diffstat (limited to 'src')
-rw-r--r--src/sp-pattern.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/sp-pattern.h b/src/sp-pattern.h
index f1dcc7963..f2a1e1c6c 100644
--- a/src/sp-pattern.h
+++ b/src/sp-pattern.h
@@ -1,9 +1,6 @@
-#ifndef SEEN_SP_PATTERN_H
-#define SEEN_SP_PATTERN_H
-
-/*
+/** @file
* SVG <pattern> implementation
- *
+ *//*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
@@ -13,21 +10,21 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#ifndef SEEN_SP_PATTERN_H
+#define SEEN_SP_PATTERN_H
+
#include <list>
-#include <gtk/gtk.h>
#include <stddef.h>
+#include <glibmm/ustring.h>
#include <sigc++/connection.h>
-#include "sp-item.h"
#include "svg/svg-length.h"
#include "sp-paint-server.h"
#include "uri-references.h"
#include "viewbox.h"
-#define SP_PATTERN(obj) (dynamic_cast<SPPattern*>((SPObject*)obj))
-#define SP_IS_PATTERN(obj) (dynamic_cast<const SPPattern*>((SPObject*)obj) != NULL)
-
class SPPatternReference;
+class SPItem;
namespace Inkscape {
namespace XML {
@@ -37,6 +34,8 @@ class Node;
}
}
+#define SP_PATTERN(obj) (dynamic_cast<SPPattern*>((SPObject*)obj))
+#define SP_IS_PATTERN(obj) (dynamic_cast<const SPPattern*>((SPObject*)obj) != NULL)
class SPPattern : public SPPaintServer, public SPViewBox {
public:
@@ -106,7 +105,6 @@ protected:
}
};
-guint pattern_users (SPPattern *pattern);
SPPattern *pattern_chain (SPPattern *pattern);
SPPattern *sp_pattern_clone_if_necessary (SPItem *item, SPPattern *pattern, const gchar *property);
void sp_pattern_transform_multiply (SPPattern *pattern, Geom::Affine postmul, bool set);