diff options
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); |
