diff options
| author | Abhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom> | 2010-08-11 14:49:55 +0000 |
|---|---|---|
| committer | Abhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom> | 2010-08-11 14:49:55 +0000 |
| commit | e5dec7d5f087114818646072164234aa999e6d72 (patch) | |
| tree | 6c3df48472fa2fbf0782d4d2238cad8366668c5f /src/sp-object.cpp | |
| parent | Yet mor in c++ification (diff) | |
| download | inkscape-e5dec7d5f087114818646072164234aa999e6d72.tar.gz inkscape-e5dec7d5f087114818646072164234aa999e6d72.zip | |
XML Privatisation Stuff after a long time
(bzr r9546.1.12)
Diffstat (limited to 'src/sp-object.cpp')
| -rw-r--r-- | src/sp-object.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 80f39db4a..88d24bffd 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -503,6 +503,18 @@ SPObject::appendChildRepr(Inkscape::XML::Node *repr) { } } +void SPObject::setCSS(SPCSSAttr *css, gchar const *attr) +{ + g_assert(this->getRepr() != NULL); + sp_repr_css_set(this->getRepr(), css, attr); +} + +void SPObject::changeCSS(SPCSSAttr *css, gchar const *attr) +{ + g_assert(this->getRepr() != NULL); + sp_repr_css_change(this->getRepr(), css, attr); +} + /** * Retrieves the children as a GSList object, optionally ref'ing the children * in the process, if add_ref is specified. @@ -1524,6 +1536,12 @@ SPObject::removeAttribute(gchar const *key, SPException *ex) getRepr()->setAttribute(key, NULL, false); } +bool SPObject::storeAsDouble( gchar const *key, double *val ) const +{ + g_assert(this->getRepr()!= NULL); + return sp_repr_get_double(((Inkscape::XML::Node *)(this->getRepr())),key,val); +} + /* Helper */ gchar * |
