1 /*\r
2 * The reference corresponding to href of LPE Path parameter.\r
3 *\r
4 * Copyright (C) 2008 Johan Engelen\r
5 *\r
6 * Released under GNU GPL, read the file 'COPYING' for more information.\r
7 */\r
8 \r
9 #include "live_effects/parameter/path-reference.h"\r
10 \r
11 #include <cstring>\r
12 #include <string>\r
13 #include <string.h>\r
14 \r
15 #include "enums.h"\r
16 \r
17 #include "display/curve.h"\r
18 #include "livarot/Path.h"\r
19 #include "prefs-utils.h"\r
20 #include "sp-shape.h"\r
21 #include "sp-text.h"\r
22 #include "uri.h"\r
23 \r
24 namespace Inkscape {\r
25 namespace LivePathEffect {\r
26 \r
27 bool PathReference::_acceptObject(SPObject * const obj) const\r
28 {\r
29 if (SP_IS_SHAPE(obj) || SP_IS_TEXT(obj)) {\r
30 /* Refuse references to lpeobject */\r
31 if (obj == getOwner()) {\r
32 return false;\r
33 }\r
34 // TODO: check whether the referred path has this LPE applied, if so: deny deny deny!\r
35 return true;\r
36 } else {\r
37 return false;\r
38 }\r
39 }\r
40 \r
41 } // namespace LivePathEffect\r
42 } // namespace Inkscape\r
43 \r
44 /*\r
45 Local Variables:\r
46 mode:c++\r
47 c-file-style:"stroustrup"\r
48 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
49 indent-tabs-mode:nil\r
50 fill-column:99\r
51 End:\r
52 */\r
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :\r