diff options
| author | Michael G. Sloan <mgsloan@gmail.com> | 2006-08-26 01:31:22 +0000 |
|---|---|---|
| committer | mgsloan <mgsloan@users.sourceforge.net> | 2006-08-26 01:31:22 +0000 |
| commit | 36a1242bc96b3afee539421ec2c38d9934dd5095 (patch) | |
| tree | 0148b856984f87a8229675a65753d5ca451d1565 /src/xml | |
| parent | Fixed a crash in modifying filter parameters in XML editor. (diff) | |
| download | inkscape-36a1242bc96b3afee539421ec2c38d9934dd5095.tar.gz inkscape-36a1242bc96b3afee539421ec2c38d9934dd5095.zip | |
gboolean -> bool conversion commit 1. Modifies code to do with getting the undo system to ignore actions, as well as
SVG/XML save/load. Shouldn't cause problems though.
(bzr r1639)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr-io.cpp | 16 | ||||
| -rw-r--r-- | src/xml/repr.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index 10f6101b6..d4eea0835 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -36,9 +36,9 @@ using Inkscape::XML::AttributeRecord; static Document *sp_repr_do_read (xmlDocPtr doc, const gchar *default_ns); static Node *sp_repr_svg_read_node (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, gboolean add_whitespace, gchar const *default_ns); -static void sp_repr_write_stream (Node *repr, Writer &out, gint indent_level, gboolean add_whitespace, Glib::QueryQuark elide_prefix); -static void sp_repr_write_stream_element (Node *repr, Writer &out, gint indent_level, gboolean add_whitespace, Glib::QueryQuark elide_prefix, List<AttributeRecord const> attributes); +static void sp_repr_write_stream_root_element (Node *repr, Writer &out, bool add_whitespace, gchar const *default_ns); +static void sp_repr_write_stream (Node *repr, Writer &out, gint indent_level, bool add_whitespace, Glib::QueryQuark elide_prefix); +static void sp_repr_write_stream_element (Node *repr, Writer &out, gint indent_level, bool add_whitespace, Glib::QueryQuark elide_prefix, List<AttributeRecord const> attributes); #ifdef HAVE_LIBWMF static xmlDocPtr sp_wmf_convert (const char * file_name); @@ -539,7 +539,7 @@ sp_repr_save_stream (Document *doc, FILE *fp, gchar const *default_ns, bool comp /* Returns TRUE if file successfully saved; FALSE if not */ -gboolean +bool sp_repr_save_file (Document *doc, const gchar *filename, gchar const *default_ns) { @@ -667,7 +667,7 @@ void populate_ns_map(NSMap &ns_map, Node &repr) { } void -sp_repr_write_stream_root_element (Node *repr, Writer &out, gboolean add_whitespace, gchar const *default_ns) +sp_repr_write_stream_root_element (Node *repr, Writer &out, bool add_whitespace, gchar const *default_ns) { using Inkscape::Util::ptr_shared; g_assert(repr != NULL); @@ -710,7 +710,7 @@ sp_repr_write_stream_root_element (Node *repr, Writer &out, gboolean add_whitesp void sp_repr_write_stream (Node *repr, Writer &out, gint indent_level, - gboolean add_whitespace, Glib::QueryQuark elide_prefix) + bool add_whitespace, Glib::QueryQuark elide_prefix) { if (repr->type() == Inkscape::XML::TEXT_NODE) { repr_quote_write (out, repr->content()); @@ -725,12 +725,12 @@ sp_repr_write_stream (Node *repr, Writer &out, gint indent_level, void sp_repr_write_stream_element (Node * repr, Writer & out, gint indent_level, - gboolean add_whitespace, + bool add_whitespace, Glib::QueryQuark elide_prefix, List<AttributeRecord const> attributes) { Node *child; - gboolean loose; + bool loose; gint i; g_return_if_fail (repr != NULL); diff --git a/src/xml/repr.h b/src/xml/repr.h index 7d2f7d474..c30dcf66a 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -180,7 +180,7 @@ 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_save_stream(Inkscape::XML::Document *doc, FILE *to_file, gchar const *default_ns=NULL, bool compress = false); -gboolean sp_repr_save_file(Inkscape::XML::Document *doc, gchar const *filename, gchar const *default_ns=NULL); +bool sp_repr_save_file(Inkscape::XML::Document *doc, gchar const *filename, gchar const *default_ns=NULL); void sp_repr_print(Inkscape::XML::Node *repr); |
