diff options
Diffstat (limited to 'src/sp-text.h')
| -rw-r--r-- | src/sp-text.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sp-text.h b/src/sp-text.h index 12f773ded..a7149159a 100644 --- a/src/sp-text.h +++ b/src/sp-text.h @@ -58,6 +58,8 @@ public: /** discards the drawing objects representing this text. */ void _clearFlow(Inkscape::DrawingGroup *in_arena); + bool _optimizeTextpathText; + private: /** Recursively walks the xml tree adding tags and their contents. The non-trivial code does two things: firstly, it manages the positioning @@ -67,6 +69,10 @@ private: unsigned _buildLayoutInput(SPObject *root, Inkscape::Text::Layout::OptionalTextTagAttrs const &parent_optional_attrs, unsigned parent_attrs_offset, bool in_textpath); public: + /** Optimize textpath text on next set_transform. */ + void optimizeTextpathText() + {_optimizeTextpathText = true;} + virtual void build(SPDocument* doc, Inkscape::XML::Node* repr); virtual void release(); virtual void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref); @@ -78,6 +84,7 @@ public: virtual Geom::OptRect bbox(Geom::Affine const &transform, SPItem::BBoxType type); virtual void print(SPPrintContext *ctx); + virtual const char* displayName(); virtual gchar* description(); virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags); virtual void hide(unsigned int key); |
