summaryrefslogtreecommitdiffstats
path: root/src/sp-textpath.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-textpath.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-textpath.h')
-rw-r--r--src/sp-textpath.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/src/sp-textpath.h b/src/sp-textpath.h
index e45122d13..f4f0aa5bf 100644
--- a/src/sp-textpath.h
+++ b/src/sp-textpath.h
@@ -9,16 +9,13 @@ class SPUsePath;
class Path;
-#define SP_TYPE_TEXTPATH (sp_textpath_get_type())
#define SP_TEXTPATH(obj) ((SPTextPath*)obj)
-#define SP_IS_TEXTPATH(obj) (obj != NULL && static_cast<const SPObject*>(obj)->typeHierarchy.count(typeid(SPTextPath)))
+#define SP_IS_TEXTPATH(obj) (dynamic_cast<const SPTextPath*>((SPObject*)obj))
-class CTextPath;
-
-class SPTextPath : public SPItem {
+class SPTextPath : public SPItem, public CItem {
public:
SPTextPath();
- CTextPath* ctextpath;
+ virtual ~SPTextPath();
TextTagAttributes attributes;
SVGLength startOffset;
@@ -26,17 +23,6 @@ public:
Path *originalPath;
bool isUpdating;
SPUsePath *sourcePath;
-};
-
-struct SPTextPathClass {
- SPItemClass parent_class;
-};
-
-
-class CTextPath : public CItem {
-public:
- CTextPath(SPTextPath* textpath);
- virtual ~CTextPath();
virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
virtual void release();
@@ -44,14 +30,8 @@ public:
virtual void update(SPCtx* ctx, unsigned int flags);
virtual void modified(unsigned int flags);
virtual Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags);
-
-protected:
- SPTextPath* sptextpath;
};
-
-GType sp_textpath_get_type();
-
#define SP_IS_TEXT_TEXTPATH(obj) (SP_IS_TEXT(obj) && obj->firstChild() && SP_IS_TEXTPATH(obj->firstChild()))
SPItem *sp_textpath_get_path_item(SPTextPath *tp);