Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject * SPObject::appendChildRepr ( Inkscape::XML::Node repr  )  [inherited]

Append repr as child of this object.

Precondition:
this is not a cloned object

Definition at line 447 of file sp-object.cpp.

Referenced by file_import(), and SPObject::setTitleOrDesc().

                                               {
    if (!SP_OBJECT_IS_CLONED(this)) {
        SP_OBJECT_REPR(this)->appendChild(repr);
        return SP_OBJECT_DOCUMENT(this)->getObjectByRepr(repr);
    } else {
        g_critical("Attempt to append repr as child of cloned object");
        return NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index