diff options
| author | Markus Engel <markus.engel@tum.de> | 2012-08-18 23:57:40 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2012-08-18 23:57:40 +0000 |
| commit | 1e6fcfc8481cc23d3bddf3d3a7e6dd96ed2724c1 (patch) | |
| tree | 52782fd965ef47cd44233c2dec270f5d31b96246 /src/sp-anchor.h | |
| parent | Added "virtual pad" to SPGroup and SPSwitch. There was some weird try by some... (diff) | |
| download | inkscape-1e6fcfc8481cc23d3bddf3d3a7e6dd96ed2724c1.tar.gz inkscape-1e6fcfc8481cc23d3bddf3d3a7e6dd96ed2724c1.zip | |
Added "virtual pad" to SPAnchor.
(bzr r11608.1.17)
Diffstat (limited to 'src/sp-anchor.h')
| -rw-r--r-- | src/sp-anchor.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/sp-anchor.h b/src/sp-anchor.h index 3c6481d94..48851b720 100644 --- a/src/sp-anchor.h +++ b/src/sp-anchor.h @@ -21,7 +21,12 @@ #define SP_IS_ANCHOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_ANCHOR)) #define SP_IS_ANCHOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_ANCHOR)) -struct SPAnchor : public SPGroup { +class CAnchor; + +class SPAnchor : public SPGroup { +public: + CAnchor* canchor; + gchar *href; }; @@ -29,6 +34,25 @@ struct SPAnchorClass { SPGroupClass parent_class; }; + +class CAnchor : public CGroup { +public: + CAnchor(SPAnchor* anchor); + virtual ~CAnchor(); + + virtual void onBuild(SPDocument *document, Inkscape::XML::Node *repr); + virtual void onRelease(); + virtual void onSet(unsigned int key, gchar const* value); + virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags); + + virtual gchar* onDescription(); + virtual gint onEvent(SPEvent *event); + +protected: + SPAnchor* spanchor; +}; + + GType sp_anchor_get_type (void); #endif |
