summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-07-04 01:29:48 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-07-04 01:29:48 +0000
commitecbc10a79f1bbf5e54af0c9eebf096f7690133e4 (patch)
tree8bb270bd2ccc81746f928ca6c7940dd219645a34
parentswitch to using extract_uri (diff)
downloadinkscape-ecbc10a79f1bbf5e54af0c9eebf096f7690133e4.tar.gz
inkscape-ecbc10a79f1bbf5e54af0c9eebf096f7690133e4.zip
add SPPaintServerReference for use in SPStyle
(bzr r3179)
-rw-r--r--src/sp-paint-server.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/sp-paint-server.h b/src/sp-paint-server.h
index 9589b04d3..975ae542f 100644
--- a/src/sp-paint-server.h
+++ b/src/sp-paint-server.h
@@ -15,8 +15,7 @@
#include <libnr/nr-pixblock.h>
#include "sp-object.h"
-
-
+#include "uri-references.h"
class SPPainter;
@@ -61,6 +60,17 @@ SPPainter *sp_paint_server_painter_new (SPPaintServer *ps, NR::Matrix const &ful
SPPainter *sp_painter_free (SPPainter *painter);
-
+class SPPaintServerReference : public Inkscape::URIReference {
+public:
+ SPPaintServerReference (SPObject *obj) : URIReference(obj) {}
+ SPPaintServerReference (SPDocument *doc) : URIReference(doc) {}
+ SPPaintServer *getObject() const {
+ return (SPPaintServer *)URIReference::getObject();
+ }
+protected:
+ virtual bool _acceptObject(SPObject *obj) const {
+ return SP_IS_PAINT_SERVER (obj);
+ }
+};
#endif