summaryrefslogtreecommitdiffstats
path: root/src/sp-string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-string.h')
-rw-r--r--src/sp-string.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/sp-string.h b/src/sp-string.h
index 7242589c6..eabf76353 100644
--- a/src/sp-string.h
+++ b/src/sp-string.h
@@ -10,21 +10,22 @@
#include "sp-object.h"
-#define SP_TYPE_STRING (sp_string_get_type ())
-#define SP_STRING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_STRING, SPString))
-#define SP_STRING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_STRING, SPStringClass))
-#define SP_IS_STRING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_STRING))
-#define SP_IS_STRING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_STRING))
+#define SP_STRING(obj) (dynamic_cast<SPString*>((SPObject*)obj))
+#define SP_IS_STRING(obj) (dynamic_cast<const SPString*>((SPObject*)obj) != NULL)
+class SPString : public SPObject {
+public:
+ SPString();
+ virtual ~SPString();
-struct SPString : public SPObject {
Glib::ustring string;
-};
-struct SPStringClass {
- SPObjectClass parent_class;
-};
+ virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
+ virtual void release();
-GType sp_string_get_type ();
+ virtual void read_content();
+
+ virtual void update(SPCtx* ctx, unsigned int flags);
+};
#endif