summaryrefslogtreecommitdiffstats
path: root/src/xml/repr.h
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2008-03-13 21:02:36 +0000
committerishmal <ishmal@users.sourceforge.net>2008-03-13 21:02:36 +0000
commit5c70e99f50efbb030a700201c710499afef90a45 (patch)
tree339b9fbd22b48525ef072ca3302562093df33580 /src/xml/repr.h
parentfix compile (diff)
downloadinkscape-5c70e99f50efbb030a700201c710499afef90a45.tar.gz
inkscape-5c70e99f50efbb030a700201c710499afef90a45.zip
Add convenience functions to read from/write to Glib::ustrings.
(bzr r5086)
Diffstat (limited to 'src/xml/repr.h')
-rw-r--r--src/xml/repr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xml/repr.h b/src/xml/repr.h
index 56b37ebe2..69fe2adce 100644
--- a/src/xml/repr.h
+++ b/src/xml/repr.h
@@ -181,6 +181,10 @@ Inkscape::XML::Document *sp_repr_read_mem(gchar const *buffer, int length, gchar
void sp_repr_write_stream (Inkscape::XML::Node *repr, Inkscape::IO::Writer &out,
gint indent_level, bool add_whitespace, Glib::QueryQuark elide_prefix,
int inlineattrs, int indent);
+Inkscape::XML::Document *sp_repr_read_buf (const Glib::ustring &buf, const gchar *default_ns);
+Glib::ustring sp_repr_write_buf(Inkscape::XML::Node *repr, gint indent_level,
+ bool add_whitespace, Glib::QueryQuark elide_prefix,
+ int inlineattrs, int indent);
void sp_repr_save_stream(Inkscape::XML::Document *doc, FILE *to_file, gchar const *default_ns=NULL, bool compress = false);
bool sp_repr_save_file(Inkscape::XML::Document *doc, gchar const *filename, gchar const *default_ns=NULL);