Inkscape
Vector Graphics Editor
|
#include <sp-use-reference.h>
Public Member Functions | |
SPUsePath (SPObject *i_owner) | |
~SPUsePath () override | |
void | link (char *to) |
void | unlink () |
void | start_listening (SPItem *to) |
void | quit_listening () |
void | refresh_source () |
![]() | |
SPUseReference (SPObject *owner) | |
SPItem * | getObject () const |
![]() | |
URIReference (SPObject *owner) | |
Constructor. | |
URIReference (SPDocument *owner_document) | |
void | operator= (URIReference const &ref)=delete |
virtual | ~URIReference () |
Destructor. | |
void | attach (URI const &uri) |
Attaches to a URI, relative to the specified document. | |
bool | try_attach (char const *uri) |
Try to attach to a URI. | |
void | detach () |
Detaches from the currently attached URI target, if any; the current referrent is signaled as NULL. | |
SPObject * | getObject () const |
Returns a pointer to the current referrent of the attached URI, or NULL. | |
SPObject * | getOwner () const |
Returns a pointer to the URIReference's owner. | |
sigc::signal< void(SPObject *, SPObject *)> | changedSignal () |
Accessor for the referrent change notification signal; this signal is emitted whenever the URIReference's referrent changes. | |
URI const * | getURI () const |
Returns a pointer to a URI containing the currently attached URI, or NULL if no URI is currently attached. | |
bool | isAttached () const |
Returns true if there is currently an attached URI. | |
SPDocument * | getOwnerDocument () |
SPObject * | getOwnerObject () |
Public Attributes | |
std::optional< Geom::PathVector > | originalPath |
bool | sourceDirty {false} |
SPObject * | owner |
char * | sourceHref {nullptr} |
Inkscape::XML::Node * | sourceRepr {nullptr} |
SPObject * | sourceObject {nullptr} |
sigc::connection | _modified_connection |
sigc::connection | _delete_connection |
sigc::connection | _changed_connection |
sigc::connection | _transformed_connection |
void(* | user_unlink )(SPObject *user) |
Additional Inherited Members | |
![]() | |
bool | _acceptObject (SPObject *const obj) const override |
Definition at line 42 of file sp-use-reference.h.
SPUsePath::SPUsePath | ( | SPObject * | i_owner | ) |
Definition at line 38 of file sp-use-reference.cpp.
References _changed_connection, Inkscape::URIReference::changedSignal(), sp_usepath_href_changed(), and user_unlink.
|
override |
Definition at line 45 of file sp-use-reference.cpp.
References _changed_connection, quit_listening(), and unlink().
void SPUsePath::link | ( | char * | to | ) |
Definition at line 54 of file sp-use-reference.cpp.
References Inkscape::URIReference::attach(), Inkscape::URIReference::detach(), quit_listening(), sourceHref, and unlink().
Referenced by SPTextPath::set().
void SPUsePath::quit_listening | ( | ) |
Definition at line 97 of file sp-use-reference.cpp.
References _delete_connection, _modified_connection, _transformed_connection, sourceObject, and sourceRepr.
Referenced by link(), and ~SPUsePath().
void SPUsePath::refresh_source | ( | ) |
Definition at line 188 of file sp-use-reference.cpp.
References originalPath, sourceDirty, and sourceObject.
Referenced by refresh_textpath_source().
void SPUsePath::start_listening | ( | SPItem * | to | ) |
Definition at line 84 of file sp-use-reference.cpp.
References _delete_connection, _modified_connection, _transformed_connection, SPObject::connectDelete(), SPObject::connectModified(), SPItem::connectTransformed(), SPObject::getRepr(), sourceObject, sourceRepr, sp_usepath_delete_self(), sp_usepath_move_compensate(), and sp_usepath_source_modified().
void SPUsePath::unlink | ( | ) |
Definition at line 77 of file sp-use-reference.cpp.
References Inkscape::URIReference::detach(), and sourceHref.
Referenced by link(), and ~SPUsePath().
sigc::connection SPUsePath::_changed_connection |
Definition at line 54 of file sp-use-reference.h.
Referenced by SPUsePath(), and ~SPUsePath().
sigc::connection SPUsePath::_delete_connection |
Definition at line 53 of file sp-use-reference.h.
Referenced by quit_listening(), and start_listening().
sigc::connection SPUsePath::_modified_connection |
Definition at line 52 of file sp-use-reference.h.
Referenced by quit_listening(), and start_listening().
sigc::connection SPUsePath::_transformed_connection |
Definition at line 55 of file sp-use-reference.h.
Referenced by quit_listening(), and start_listening().
std::optional<Geom::PathVector> SPUsePath::originalPath |
Definition at line 44 of file sp-use-reference.h.
Referenced by refresh_source(), and refresh_textpath_source().
SPObject* SPUsePath::owner |
Definition at line 47 of file sp-use-reference.h.
Referenced by sp_usepath_move_compensate().
bool SPUsePath::sourceDirty {false} |
Definition at line 45 of file sp-use-reference.h.
Referenced by refresh_source(), refresh_textpath_source(), SPTextPath::set(), sp_usepath_move_compensate(), and SPTextPath::update().
char* SPUsePath::sourceHref {nullptr} |
Definition at line 48 of file sp-use-reference.h.
Referenced by link(), unlink(), and SPTextPath::write().
SPObject* SPUsePath::sourceObject {nullptr} |
Definition at line 50 of file sp-use-reference.h.
Referenced by quit_listening(), refresh_source(), refresh_textpath_source(), and start_listening().
Inkscape::XML::Node* SPUsePath::sourceRepr {nullptr} |
Definition at line 49 of file sp-use-reference.h.
Referenced by quit_listening(), and start_listening().
void(* SPUsePath::user_unlink) (SPObject *user) |
Definition at line 66 of file sp-use-reference.h.
Referenced by SPTextPath::SPTextPath(), and SPUsePath().