30 return URIReference::_acceptObject(obj);
57 if ( to ==
nullptr ) {
70 g_warning(
"%s", e.what());
87 if ( to ==
nullptr ) {
116 offset->start_listening(refobj);
135 if (!(m.is_translation())) {
145 advertized_move.set_identity();
147 clone_move = clone_move.
inverse() * m;
150 g_assert_not_reached();
178 offset->owner->deleteObject();
185 offset->sourceDirty =
true;
186 offset->owner->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
196 if ( refobj ==
nullptr )
return;
198 if (
auto shape = cast<SPShape>(refobj)) {
199 if (shape->curve()) {
204 }
else if (
auto text = cast<SPText>(refobj)) {
TODO: insert short description here.
TODO: insert short description here.
3x3 matrix representing an affine transformation.
Affine inverse() const
Compute the inverse matrix.
Preference storage class.
static Preferences * get()
Access the singleton Preferences object.
int getInt(Glib::ustring const &pref_path, int def=0)
Retrieve an integer.
void detach()
Detaches from the currently attached URI target, if any; the current referrent is signaled as NULL.
sigc::signal< void(SPObject *, SPObject *)> changedSignal()
Accessor for the referrent change notification signal; this signal is emitted whenever the URIReferen...
void attach(URI const &uri)
Attaches to a URI, relative to the specified document.
Represents an URI as per RFC 2396.
Base class for visual SVG elements.
sigc::connection connectTransformed(sigc::slot< void(Geom::Affine const *, SPItem *)> slot)
SPObject is an abstract base class of all of the document nodes at the SVG document level.
sigc::connection connectDelete(sigc::slot< void(SPObject *)> slot)
Connects a slot to be called when an object is deleted.
Inkscape::XML::Node * getRepr()
Returns the XML representation of tree.
sigc::connection connectModified(sigc::slot< void(SPObject *, unsigned int)> slot)
Connects to the modification notification signal.
void requestDisplayUpdate(unsigned int flags)
Queues an deferred update of this object's display.
SPUsePath(SPObject *i_owner)
void(* user_unlink)(SPObject *user)
Inkscape::XML::Node * sourceRepr
sigc::connection _changed_connection
sigc::connection _transformed_connection
sigc::connection _modified_connection
void start_listening(SPItem *to)
sigc::connection _delete_connection
std::optional< SPCurve > originalPath
bool _acceptObject(SPObject *const obj) const override
@ SP_CLONE_ORPHANS_UNLINK
@ SP_CLONE_ORPHANS_DELETE
@ SP_CLONE_COMPENSATION_UNMOVED
@ SP_CLONE_COMPENSATION_PARALLEL
@ SP_CLONE_COMPENSATION_NONE
Singleton class to access the preferences file in a convenient way.
static void sp_usepath_href_changed(SPObject *old_ref, SPObject *ref, SPTagUsePath *offset)
static void sp_usepath_delete_self(SPObject *deleted, SPTagUsePath *offset)
static void sp_usepath_source_modified(SPObject *iSource, guint flags, SPUsePath *offset)
static void sp_usepath_delete_self(SPObject *deleted, SPUsePath *offset)
static void sp_usepath_move_compensate(Geom::Affine const *mp, SPItem *original, SPUsePath *self)
static void sp_usepath_href_changed(SPObject *old_ref, SPObject *ref, SPUsePath *offset)