summaryrefslogtreecommitdiffstats
path: root/src/sp-tref.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-tref.h')
-rw-r--r--src/sp-tref.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/sp-tref.h b/src/sp-tref.h
index cc80e48a8..448cb5e6e 100644
--- a/src/sp-tref.h
+++ b/src/sp-tref.h
@@ -29,9 +29,12 @@
#define SP_IS_TREF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_TREF))
class SPTRef;
-class SPTRef;
+class CTRef;
+
+class SPTRef : public SPItem {
+public:
+ CTRef* ctref;
-struct SPTRef : public SPItem {
// Attributes that are used in the same way they would be in a tspan
TextTagAttributes attributes;
@@ -57,6 +60,27 @@ struct SPTRefClass {
SPItemClass parent_class;
};
+
+class CTRef : public CItem {
+public:
+ CTRef(SPTRef* tref);
+ virtual ~CTRef();
+
+ virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr);
+ virtual void onRelease();
+ 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 gchar* onDescription();
+
+protected:
+ SPTRef* sptref;
+};
+
+
GType sp_tref_get_type();
void sp_tref_update_text(SPTRef *tref);