diff --git a/src/sp-object.h b/src/sp-object.h
index 767f8b978abb400dc837f675f8eb47fadb55e459..4879e5bea0fe3e7d71c4db7e2ff40f737dd7b79e 100644 (file)
--- a/src/sp-object.h
+++ b/src/sp-object.h
}
}
+ /** @brief Check if object is referenced by any other object.
+ */
+ bool isReferenced() { return ( _total_hrefcount > 0 ); }
+
/** @brief Deletes an object.
*
* Detaches the object's repr, and optionally sends notification that the object has been
return _delete_signal.connect(slot);
}
+ sigc::connection connectPositionChanged(sigc::slot<void, SPObject *> slot) {
+ return _position_changed_signal.connect(slot);
+ }
+
/** @brief Returns the object which supercedes this one (if any).
*
* This is mainly useful for ensuring we can correctly perform a series of moves or deletes,
void _requireSVGVersion(Inkscape::Version version);
sigc::signal<void, SPObject *> _delete_signal;
+ sigc::signal<void, SPObject *> _position_changed_signal;
SPObject *_successor;
CollectionPolicy _collection_policy;
gchar *_label;