Code

fix lpe-PathPAram when deleting the path that it links to
[inkscape.git] / src / live_effects / parameter / path-reference.h
1 #ifndef SEEN_LPE_PATH_REFERENCE_H\r
2 #define SEEN_LPE_PATH_REFERENCE_H\r
3 \r
4 /*\r
5  * The reference corresponding to href of LPE PathParam.\r
6  *\r
7  * Copyright (C) 2008 Johan Engelen\r
8  *\r
9  * Released under GNU GPL, read the file 'COPYING' for more information.\r
10  */\r
11 \r
12 #include <forward.h>\r
13 #include <uri-references.h>\r
14 #include <sigc++/sigc++.h>\r
15 \r
16 class Path;\r
17 \r
18 namespace Inkscape {\r
19 \r
20 namespace XML {\r
21     struct Node;\r
22 }\r
23 \r
24 namespace LivePathEffect {\r
25 \r
26 \r
27 class PathReference : public Inkscape::URIReference {\r
28 public:\r
29     PathReference(SPObject *owner) : URIReference(owner) {}\r
30 \r
31     SPItem *getObject() const {\r
32         return (SPItem *)URIReference::getObject();\r
33     }\r
34 \r
35 protected:\r
36     virtual bool _acceptObject(SPObject * const obj) const;\r
37 \r
38 private:\r
39     PathReference(const PathReference&);\r
40     PathReference& operator=(const PathReference&);\r
41 };\r
42 \r
43 } // namespace LivePathEffect\r
44 \r
45 } // namespace Inkscape\r
46 \r
47 \r
48 \r
49 #endif /* !SEEN_LPE_PATH_REFERENCE_H */\r
50 \r
51 /*\r
52   Local Variables:\r
53   mode:c++\r
54   c-file-style:"stroustrup"\r
55   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
56   indent-tabs-mode:nil\r
57   fill-column:99\r
58   End:\r
59 */\r
60 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :\r