summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09090a4)
raw | patch | inline | side by side (parent: 09090a4)
author | mental <mental@users.sourceforge.net> | |
Thu, 25 Jan 2007 04:09:08 +0000 (04:09 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Thu, 25 Jan 2007 04:09:08 +0000 (04:09 +0000) |
src/xml/repr.cpp | patch | blob | history | |
src/xml/repr.h | patch | blob | history |
diff --git a/src/xml/repr.cpp b/src/xml/repr.cpp
index c6943a2525291f6d059ccf8f5f8d6e822e90a8d0..be226a35752825926c56a020d65290218bbb7988 100644 (file)
--- a/src/xml/repr.cpp
+++ b/src/xml/repr.cpp
using Inkscape::Util::share_string;
-/// Returns new node.
-Inkscape::XML::Node *
-sp_repr_new(gchar const *name)
-{
- g_return_val_if_fail(name != NULL, NULL);
- g_return_val_if_fail(*name != '\0', NULL);
-
- return new Inkscape::XML::ElementNode(g_quark_from_string(name));
-}
-
-/// Returns new textnode with content. See Inkscape::XML::TextNode.
-Inkscape::XML::Node *
-sp_repr_new_text(gchar const *content)
-{
- g_return_val_if_fail(content != NULL, NULL);
- return new Inkscape::XML::TextNode(share_string(content));
-}
-
-/// Returns new commentnode with comment. See Inkscape::XML::CommentNode.
-Inkscape::XML::Node *
-sp_repr_new_comment(gchar const *comment)
-{
- g_return_val_if_fail(comment != NULL, NULL);
- return new Inkscape::XML::CommentNode(share_string(comment));
-}
-
/// Returns new document having as first child a node named rootname.
Inkscape::XML::Document *
sp_repr_document_new(char const *rootname)
diff --git a/src/xml/repr.h b/src/xml/repr.h
index 416c979f90d675df04ff933830dd4aadbba8cf32..1b2cad756fe4554a84f6f086ab29fb6c089ca109 100644 (file)
--- a/src/xml/repr.h
+++ b/src/xml/repr.h
char const *sp_xml_ns_prefix_uri(gchar const *prefix);
-/* replaced by create* methods on Inkscape::XML::Document */
-Inkscape::XML::Node *sp_repr_new(gchar const *name) __attribute__ ((deprecated));
-Inkscape::XML::Node *sp_repr_new_text(gchar const *content) __attribute__ ((deprecated));
-Inkscape::XML::Node *sp_repr_new_comment(gchar const *comment) __attribute__ ((deprecated));
-
/*inline Inkscape::XML::Node *sp_repr_duplicate(Inkscape::XML::Node const *repr) {
return repr->duplicate();
}*/