Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-tref.cpp File Reference

SVG <tref> implementation - All character data within the referenced element, including character data enclosed within additional markup, will be rendered. More...

Go to the source code of this file.

Functions

static void build_string_from_root (Inkscape::XML::Node *root, Glib::ustring *retString)
 Using depth-first search, build up a string by concatenating all SPStrings found in the tree starting at the root.
 
static void sp_tref_href_changed (SPObject *old_ref, SPObject *ref, SPTRef *tref)
 
static void sp_tref_delete_self (SPObject *, SPTRef *self)
 Delete the tref object.
 
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).
 
void sp_tref_update_text (SPTRef *tref)
 
SPObjectsp_tref_convert_to_tspan (SPObject *obj)
 This function will create a new tspan element with the same attributes as the tref had and add the same text as a child.
 

Detailed Description

SVG <tref> implementation - All character data within the referenced element, including character data enclosed within additional markup, will be rendered.

This file was created based on skeleton.cpp

Definition in file sp-tref.cpp.

Function Documentation

◆ build_string_from_root()

static void build_string_from_root ( Inkscape::XML::Node root,
Glib::ustring *  retString 
)
static

Using depth-first search, build up a string by concatenating all SPStrings found in the tree starting at the root.

Definition at line 405 of file sp-tref.cpp.

References build_string_from_root(), Inkscape::XML::Node::firstChild(), Inkscape::XML::Node::next(), root, and Inkscape::XML::TEXT_NODE.

Referenced by build_string_from_root(), and sp_tref_update_text().

◆ sp_tref_convert_to_tspan()

SPObject * sp_tref_convert_to_tspan ( SPObject obj)

◆ sp_tref_delete_self()

static void sp_tref_delete_self ( SPObject deleted,
SPTRef self 
)
static

Delete the tref object.

Definition at line 273 of file sp-tref.cpp.

References SPObject::deleteObject().

Referenced by sp_tref_href_changed().

◆ sp_tref_fully_contained()

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().

◆ sp_tref_href_changed()

◆ sp_tref_reference_allowed()

bool sp_tref_reference_allowed ( SPTRef tref,
SPObject possible_ref 
)

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().

◆ sp_tref_update_text()