diff options
| author | Richard Hughes <cyreve@gmail.com> | 2007-07-11 21:44:47 +0000 |
|---|---|---|
| committer | cyreve <cyreve@users.sourceforge.net> | 2007-07-11 21:44:47 +0000 |
| commit | 0a0ca7dcf7791fe236ea233c0622ccc40ee0c175 (patch) | |
| tree | 3ab83295f558b8c66e6a8c6c4f1ca79a9dde4efa /src/sp-text.cpp | |
| parent | Move 3D axis manipulation functions to separate file (diff) | |
| download | inkscape-0a0ca7dcf7791fe236ea233c0622ccc40ee0c175.tar.gz inkscape-0a0ca7dcf7791fe236ea233c0622ccc40ee0c175.zip | |
bug 1243190: add tref element support; limited editing support thus far (patch by gbanaszk)
(bzr r3227)
Diffstat (limited to 'src/sp-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 5c2c5412c..d1105ac20 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -46,6 +46,7 @@ #include "mod360.h" #include "sp-textpath.h" +#include "sp-tref.h" #include "sp-tspan.h" #include "text-editing.h" @@ -516,6 +517,9 @@ unsigned SPText::_buildLayoutInput(SPObject *root, Inkscape::Text::Layout::Optio bool use_xy = !in_textpath && (tspan->role == SP_TSPAN_ROLE_UNSPECIFIED || !tspan->attributes.singleXYCoordinates()); tspan->attributes.mergeInto(&optional_attrs, parent_optional_attrs, parent_attrs_offset, use_xy, true); } + else if (SP_IS_TREF(root)) { + SP_TREF(root)->attributes.mergeInto(&optional_attrs, parent_optional_attrs, parent_attrs_offset, true, true); + } else if (SP_IS_TEXTPATH(root)) { in_textpath = true; SP_TEXTPATH(root)->attributes.mergeInto(&optional_attrs, parent_optional_attrs, parent_attrs_offset, false, true); @@ -619,6 +623,9 @@ void SPText::_adjustCoordsRecursive(SPItem *item, NR::Matrix const &m, double ex SP_TEXT(item)->attributes.transform(m, ex, ex, is_root); else if (SP_IS_TEXTPATH(item)) SP_TEXTPATH(item)->attributes.transform(m, ex, ex, is_root); + else if (SP_IS_TREF(item)) { + SP_TREF(item)->attributes.transform(m, ex, ex, is_root); + } for (SPObject *o = item->children; o != NULL; o = o->next) { if (SP_IS_ITEM(o)) |
