From 5fa6a285c0970cd37834309d8f2d4a14f24fac86 Mon Sep 17 00:00:00 2001 From: ishmal Date: Fri, 7 Mar 2008 01:18:06 +0000 Subject: [PATCH] export sp_repr_write_stream() --- src/xml/repr-io.cpp | 1 - src/xml/repr.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index 8f149a130..28e7c4f21 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -42,7 +42,6 @@ Document *sp_repr_do_read (xmlDocPtr doc, const gchar *default_ns); static Node *sp_repr_svg_read_node (Document *xml_doc, xmlNodePtr node, const gchar *default_ns, GHashTable *prefix_map); static gint sp_repr_qualified_name (gchar *p, gint len, xmlNsPtr ns, const xmlChar *name, const gchar *default_ns, GHashTable *prefix_map); static void sp_repr_write_stream_root_element (Node *repr, Writer &out, bool add_whitespace, gchar const *default_ns, int inlineattrs, int indent); -static void sp_repr_write_stream (Node *repr, Writer &out, gint indent_level, bool add_whitespace, Glib::QueryQuark elide_prefix, int inlineattrs, int indent); static void sp_repr_write_stream_element (Node *repr, Writer &out, gint indent_level, bool add_whitespace, Glib::QueryQuark elide_prefix, List attributes, int inlineattrs, int indent); #ifdef HAVE_LIBWMF diff --git a/src/xml/repr.h b/src/xml/repr.h index aab96a617..56b37ebe2 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -20,6 +20,7 @@ #include "xml/node.h" #include "xml/document.h" #include "xml/sp-css-attr.h" +#include "io/inkscapestream.h" #include <2geom/point.h> @@ -177,6 +178,9 @@ inline Inkscape::XML::Node *sp_repr_next(Inkscape::XML::Node *repr) { Inkscape::XML::Document *sp_repr_read_file(gchar const *filename, gchar const *default_ns); Inkscape::XML::Document *sp_repr_read_mem(gchar const *buffer, int length, gchar const *default_ns); +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); 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); -- 2.30.2