Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::XML::Node * SPObject::updateRepr ( unsigned int  flags = SP_OBJECT_WRITE_EXT  )  [inherited]

Updates the object's repr based on the object's state.

This method updates the the repr attached to the object to reflect the object's current state; see the two-argument version for details.

Parameters:
flags object write flags that apply to this update
Returns:
the updated repr
Update this object's XML node with flags value.

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

Referenced by SPItem::setExplicitlyHidden().

                                       {
    if (!SP_OBJECT_IS_CLONED(this)) {
        Inkscape::XML::Node *repr=SP_OBJECT_REPR(this);
        if (repr) {
            return updateRepr(repr, flags);
        } else {
            g_critical("Attempt to update non-existent repr");
            return NULL;
        }
    } else {
        /* cloned objects have no repr */
        return NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index