Lines Matching refs:out
56 static void sp_repr_write_stream_root_element(Node *repr, Writer &out,
62 static void sp_repr_write_stream_element(Node *repr, Writer &out,
231 // Allow NOENT only if we're filtering out SYSTEM and PUBLIC entities
634 static void sp_repr_save_writer(Document *doc, Inkscape::IO::Writer *out,
644 out->writeString( "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n" );
648 out->writeString( str );
656 sp_repr_write_stream_root_element(repr, *out, TRUE, default_ns, inlineattrs, indent,
659 sp_repr_write_stream(repr, *out, 0, TRUE, GQuark(0), inlineattrs, indent,
662 out->writeChar('\n');
690 Inkscape::IO::OutputStreamWriter *out = compress ? new Inkscape::IO::OutputStreamWriter( *gout ) : new Inkscape::IO::OutputStreamWriter( bout );
692 sp_repr_save_writer(doc, out, default_ns, old_href_abs_base, new_href_abs_base);
694 delete out;
763 static void repr_quote_write (Writer &out, const gchar * val)
768 case '"': out.writeString( """ ); break;
769 case '&': out.writeString( "&" ); break;
770 case '<': out.writeString( "<" ); break;
771 case '>': out.writeString( ">" ); break;
772 default: out.writeChar( *val ); break;
778 static void repr_write_comment( Writer &out, const gchar * val, bool addWhitespace, gint indentLevel, int indent )
786 out.writeString(" ");
791 out.writeString("<!--");
792 // WARNING out.printf() and out.writeString() are *NOT* non-ASCII friendly.
795 out.writeChar(*cur);
798 out.writeString(" ");
800 out.writeString("-->");
803 out.writeString("\n");
870 static void sp_repr_write_stream_root_element(Node *repr, Writer &out,
919 return sp_repr_write_stream_element(repr, out, 0, add_whitespace, elide_prefix, attributes,
923 void sp_repr_write_stream( Node *repr, Writer &out, gint indent_level,
933 out.printf( "<![CDATA[%s]]>", repr->content() );
935 repr_quote_write( out, repr->content() );
940 repr_write_comment( out, repr->content(), add_whitespace, indent_level, indent );
944 out.printf( "<?%s %s?>", repr->name(), repr->content() );
948 sp_repr_write_stream_element( repr, out, indent_level,
966 void sp_repr_write_stream_element( Node * repr, Writer & out,
986 out.writeString(" ");
998 out.printf( "<%s", element_name );
1007 // THIS DOESN'T APPEAR TO DO ANYTHING. Can it be commented out or deleted?
1034 out.writeString("\n");
1038 out.writeString(" ");
1043 out.printf(" %s=\"", g_quark_to_string(iter->key));
1044 repr_quote_write(out, iter->value);
1045 out.writeChar('"');
1056 out.writeString( ">" );
1058 out.writeString( "\n" );
1061 sp_repr_write_stream(child, out, ( loose ? indent_level + 1 : 0 ),
1069 out.writeString(" ");
1073 out.printf( "</%s>", element_name );
1075 out.writeString( " />" );
1082 out.writeString( "\n" );