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 "sp-shape.h"
12 #include "sp-text.h"
14 namespace Inkscape {
15 namespace LivePathEffect {
17 bool PathReference::_acceptObject(SPObject * const obj) const
18 {
19 if (SP_IS_SHAPE(obj) || SP_IS_TEXT(obj)) {
20 /* Refuse references to lpeobject */
21 if (obj == getOwner()) {
22 return false;
23 }
24 // TODO: check whether the referred path has this LPE applied, if so: deny deny deny!
25 return true;
26 } else {
27 return false;
28 }
29 }
31 } // namespace LivePathEffect
32 } // namespace Inkscape
34 /*
35 Local Variables:
36 mode:c++
37 c-file-style:"stroustrup"
38 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
39 indent-tabs-mode:nil
40 fill-column:99
41 End:
42 */
43 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :