diff options
| author | Markus Engel <markus.engel@tum.de> | 2012-10-06 21:56:27 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2012-10-06 21:56:27 +0000 |
| commit | 99cb30e28d4ee193f39e23464abbd7630cac8a2d (patch) | |
| tree | 493559e086a9e6cf1e252e79765053be55277825 /src/sp-flowtext.h | |
| parent | Removed old calls to set_shape and update_patheffect. (diff) | |
| download | inkscape-99cb30e28d4ee193f39e23464abbd7630cac8a2d.tar.gz inkscape-99cb30e28d4ee193f39e23464abbd7630cac8a2d.zip | |
Added virtual pad to SPFlowtext; removed old calls to virtual SPItem methods.
(bzr r11608.1.46)
Diffstat (limited to 'src/sp-flowtext.h')
| -rw-r--r-- | src/sp-flowtext.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/src/sp-flowtext.h b/src/sp-flowtext.h index 944503a1e..9f1681636 100644 --- a/src/sp-flowtext.h +++ b/src/sp-flowtext.h @@ -22,8 +22,12 @@ class DrawingGroup; } // namespace Inkscape +class CFlowtext; + +class SPFlowtext : public SPItem { +public: + CFlowtext* cflowtext; -struct SPFlowtext : public SPItem { /** Completely recalculates the layout. */ void rebuildLayout(); @@ -57,6 +61,34 @@ struct SPFlowtextClass { SPItemClass parent_class; }; +class CFlowtext : public CItem { +public: + CFlowtext(SPFlowtext* flowtext); + virtual ~CFlowtext(); + + virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr); + + virtual void onChildAdded(Inkscape::XML::Node* child, Inkscape::XML::Node* ref); + virtual void onRemoveChild(Inkscape::XML::Node* child); + + virtual void onSet(unsigned int key, const gchar* value); + + virtual void onUpdate(SPCtx* ctx, unsigned int flags); + virtual void onModified(unsigned int flags); + + virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags); + + virtual Geom::OptRect onBbox(Geom::Affine const &transform, SPItem::BBoxType type); + virtual void onPrint(SPPrintContext *ctx); + virtual gchar* onDescription(); + virtual Inkscape::DrawingItem* onShow(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags); + virtual void onHide(unsigned int key); + virtual void onSnappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs); +protected: + SPFlowtext* spflowtext; +}; + + GType sp_flowtext_get_type (void); SPItem *create_flowtext_with_internal_frame (SPDesktop *desktop, Geom::Point p1, Geom::Point p2); |
