diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-03-02 06:10:16 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-03-02 06:10:16 +0000 |
| commit | fd703018ee505f643f866aa4e0cc3f1bebf7aa7d (patch) | |
| tree | 6719a17bafdb9a4f36419999859b934e39d805d6 /src/sp-object.h | |
| parent | Starting a (useful) derivation of http://colivre.coop.br/Aurium/InkscapeAreaC... (diff) | |
| download | inkscape-fd703018ee505f643f866aa4e0cc3f1bebf7aa7d.tar.gz inkscape-fd703018ee505f643f866aa4e0cc3f1bebf7aa7d.zip | |
Cleanup on id access.
(bzr r9127)
Diffstat (limited to 'src/sp-object.h')
| -rw-r--r-- | src/sp-object.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sp-object.h b/src/sp-object.h index bbb8ecbd0..22a15a0a4 100644 --- a/src/sp-object.h +++ b/src/sp-object.h @@ -155,7 +155,15 @@ struct SPObject : public GObject { SPObject *_last_child; /* Remembered last child */ SPObject *next; /* Next object in linked list */ Inkscape::XML::Node *repr; /* Our xml representation */ + +private: gchar *id; /* Our very own unique id */ +public: + + /** + * Returns the objects current ID string. + */ + gchar const* getId() const; /** @brief cleans up an SPObject, releasing its references and * requesting that references to it be released @@ -495,6 +503,8 @@ private: gchar * getTitleOrDesc(gchar const *svg_tagname) const; SPObject * findFirstChild(gchar const *tagname) const; GString * textualContent() const; + + friend class SPObjectImpl; }; /// The SPObject vtable. |
