summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-05 17:42:32 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-05 17:42:32 +0000
commit19d00efa85cfc42ccae9bd17ef575602f0d22c50 (patch)
treecab58b197a09a98c23b0a22ba9492207e7c14071 /src/sp-tspan.h
parentMerged Group and subclasses. (diff)
downloadinkscape-19d00efa85cfc42ccae9bd17ef575602f0d22c50.tar.gz
inkscape-19d00efa85cfc42ccae9bd17ef575602f0d22c50.zip
Merged more classes.
(bzr r11608.1.78)
Diffstat (limited to 'src/sp-tspan.h')
-rw-r--r--src/sp-tspan.h28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/sp-tspan.h b/src/sp-tspan.h
index 69a950e2d..1f399f6cf 100644
--- a/src/sp-tspan.h
+++ b/src/sp-tspan.h
@@ -9,11 +9,8 @@
#include "sp-item.h"
#include "text-tag-attributes.h"
-G_BEGIN_DECLS
-
-#define SP_TYPE_TSPAN (sp_tspan_get_type())
#define SP_TSPAN(obj) ((SPTSpan*)obj)
-#define SP_IS_TSPAN(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPTSpan)))
+#define SP_IS_TSPAN(obj) (dynamic_cast<const SPTSpan*>((SPObject*)obj))
enum {
SP_TSPAN_ROLE_UNSPECIFIED,
@@ -21,27 +18,13 @@ enum {
SP_TSPAN_ROLE_LINE
};
-class CTSpan;
-
-class SPTSpan : public SPItem {
+class SPTSpan : public SPItem, public CItem {
public:
SPTSpan();
- CTSpan* ctspan;
+ virtual ~SPTSpan();
guint role : 2;
TextTagAttributes attributes;
-};
-
-struct SPTSpanClass {
- SPItemClass parent_class;
-};
-
-GType sp_tspan_get_type() G_GNUC_CONST;
-
-class CTSpan : public CItem {
-public:
- CTSpan(SPTSpan* span);
- virtual ~CTSpan();
virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
virtual void release();
@@ -52,13 +35,8 @@ public:
virtual Geom::OptRect bbox(Geom::Affine const &transform, SPItem::BBoxType type);
virtual gchar* description();
-
-protected:
- SPTSpan* sptspan;
};
-G_END_DECLS
-
#endif /* !INKSCAPE_SP_TSPAN_H */
/*