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