diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-03-27 23:02:23 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-03-27 23:02:23 +0000 |
| commit | 1d5965fea00bedb49232c419c22382dbf6581309 (patch) | |
| tree | aff38e478e9a621178ab80bd87ba630e8e11dac1 /src/live_effects/parameter/path-reference.h | |
| parent | comment #define BYPASS_GLIB_SPAWN 1 to fix build on windows (diff) | |
| download | inkscape-1d5965fea00bedb49232c419c22382dbf6581309.tar.gz inkscape-1d5965fea00bedb49232c419c22382dbf6581309.zip | |
add linking to other paths to lpe-PathParam
(bzr r5209)
Diffstat (limited to 'src/live_effects/parameter/path-reference.h')
| -rw-r--r-- | src/live_effects/parameter/path-reference.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/live_effects/parameter/path-reference.h b/src/live_effects/parameter/path-reference.h new file mode 100644 index 000000000..88147d908 --- /dev/null +++ b/src/live_effects/parameter/path-reference.h @@ -0,0 +1,60 @@ +#ifndef SEEN_LPE_PATH_REFERENCE_H
+#define SEEN_LPE_PATH_REFERENCE_H
+
+/*
+ * The reference corresponding to href of LPE PathParam.
+ *
+ * Copyright (C) 2008 Johan Engelen
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information.
+ */
+
+#include <forward.h>
+#include <uri-references.h>
+#include <sigc++/sigc++.h>
+
+class Path;
+
+namespace Inkscape {
+
+namespace XML {
+ struct Node;
+}
+
+namespace LivePathEffect {
+
+
+class PathReference : public Inkscape::URIReference {
+public:
+ PathReference(SPObject *owner) : URIReference(owner) {}
+
+ SPItem *getObject() const {
+ return (SPItem *)URIReference::getObject();
+ }
+
+protected:
+ virtual bool _acceptObject(SPObject * const obj) const;
+
+private:
+ PathReference(const PathReference&);
+ PathReference& operator=(const PathReference&);
+};
+
+} // namespace LivePathEffect
+
+} // namespace Inkscape
+
+
+
+#endif /* !SEEN_LPE_PATH_REFERENCE_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 :
|
