Inkscape
Vector Graphics Editor
|
SVG <tref> implementation, see sp-tref.cpp. More...
Go to the source code of this file.
Classes | |
class | SPTRef |
Functions | |
void | sp_tref_update_text (SPTRef *tref) |
bool | sp_tref_reference_allowed (SPTRef *tref, SPObject *possible_ref) |
Returns true when the given tref is allowed to refer to a particular object. | |
bool | sp_tref_fully_contained (SPObject *start_item, Glib::ustring::iterator &start, SPObject *end_item, Glib::ustring::iterator &end) |
Returns true if a tref is fully contained in the confines of the given iterators and layout (or if there is no tref). | |
SPObject * | sp_tref_convert_to_tspan (SPObject *item) |
This function will create a new tspan element with the same attributes as the tref had and add the same text as a child. | |
SVG <tref> implementation, see sp-tref.cpp.
This file was created based on skeleton.h
Definition in file sp-tref.h.
This function will create a new tspan element with the same attributes as the tref had and add the same text as a child.
The tref is replaced in the tree with the new tspan. The code is based partially on sp_use_unlink
Definition at line 433 of file sp-tref.cpp.
References Inkscape::XML::Node::addChild(), Inkscape::GC::anchor(), Inkscape::XML::Node::attribute(), SPStyle::cascade(), child, SPObject::children, Inkscape::XML::Document::createElement(), Inkscape::XML::Node::duplicate(), SPDocument::getObjectByRepr(), SPDocument::getReprDoc(), SPStyle::merge(), SPObject::parent, Inkscape::XML::Node::parent(), Inkscape::GC::release(), Inkscape::XML::Node::setAttribute(), sp_object_ref(), sp_object_unref(), sp_tref_convert_to_tspan(), SPObject::style, and SPObject::updateRepr().
Referenced by sp_tref_convert_to_tspan(), and Inkscape::ObjectSet::unlink().
bool sp_tref_fully_contained | ( | SPObject * | start_item, |
Glib::ustring::iterator & | start, | ||
SPObject * | end_item, | ||
Glib::ustring::iterator & | end | ||
) |
Returns true if a tref is fully contained in the confines of the given iterators and layout (or if there is no tref).
Definition at line 324 of file sp-tref.cpp.
References end, SPObject::parent, and start.
Referenced by sp_te_apply_style().
Returns true when the given tref is allowed to refer to a particular object.
Definition at line 298 of file sp-tref.cpp.
References SPObject::parent.
Referenced by sp_tref_href_changed().
void sp_tref_update_text | ( | SPTRef * | tref | ) |
Definition at line 371 of file sp-tref.cpp.
References SPObject::attach(), build_string_from_root(), SPFactory::createObject(), Inkscape::XML::Document::createTextNode(), SPObject::detach(), SPObject::document, NodeTraits::get_type_string(), SPTRef::getObjectReferredTo(), SPObject::getRepr(), SPDocument::getReprDoc(), SPObject::lastChild(), Inkscape::GC::release(), sp_object_unref(), and SPTRef::stringChild.
Referenced by SPTRefReference::notifyChildAdded(), SPTRefReference::notifyChildOrderChanged(), SPTRefReference::notifyChildRemoved(), SPTRefReference::notifyContentChanged(), and sp_tref_href_changed().