Logo Search packages:      
Sourcecode: inkscape version File versions

repr.h File Reference


Detailed Description

C facade to Inkscape::XML::Node.

Authors: Lauris Kaplinski <lauris@kaplinski.com>

Copyright (C) 1999-2002 authors Copyright (C) 2000-2002 Ximian, Inc.

Released under GNU GPL, read the file 'COPYING' for more information

Definition in file repr.h.

#include <stdio.h>
#include <glib/gtypes.h>
#include "gc-anchored.h"
#include "xml/node.h"
#include "xml/document.h"
#include "xml/sp-css-attr.h"

Go to the source code of this file.

Defines

#define SP_BROKEN_SODIPODI_NS_URI   "http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
#define SP_CC_NS_URI   "http://web.resource.org/cc/"
#define SP_DC_NS_URI   "http://purl.org/dc/elements/1.1/"
#define SP_INKSCAPE_NS_URI   "http://www.inkscape.org/namespaces/inkscape"
#define SP_RDF_NS_URI   "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
#define SP_SODIPODI_NS_URI   "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
#define SP_SVG_NS_URI   "http://www.w3.org/2000/svg"
#define SP_XLINK_NS_URI   "http://www.w3.org/1999/xlink"

Functions

Inkscape::XML::Nodesp_repr_children (Inkscape::XML::Node *repr)
 Returns first child of node, resets iterator.
int sp_repr_compare_position (Inkscape::XML::Node *first, Inkscape::XML::Node *second)
SPCSSAttr * sp_repr_css_attr (Inkscape::XML::Node *repr, gchar const *attr)
void sp_repr_css_attr_add_from_string (SPCSSAttr *css, const gchar *data)
SPCSSAttr * sp_repr_css_attr_inherited (Inkscape::XML::Node *repr, gchar const *attr)
SPCSSAttr * sp_repr_css_attr_new (void)
void sp_repr_css_attr_unref (SPCSSAttr *css)
void sp_repr_css_change (Inkscape::XML::Node *repr, SPCSSAttr *css, gchar const *key)
void sp_repr_css_change_recursive (Inkscape::XML::Node *repr, SPCSSAttr *css, gchar const *key)
double sp_repr_css_double_property (SPCSSAttr *css, gchar const *name, double defval)
void sp_repr_css_merge (SPCSSAttr *dst, SPCSSAttr *src)
void sp_repr_css_print (SPCSSAttr *css)
gchar const * sp_repr_css_property (SPCSSAttr *css, gchar const *name, gchar const *defval)
bool sp_repr_css_property_is_unset (SPCSSAttr *css, gchar const *name)
void sp_repr_css_set (Inkscape::XML::Node *repr, SPCSSAttr *css, gchar const *key)
void sp_repr_css_set_property (SPCSSAttr *css, gchar const *name, gchar const *value)
void sp_repr_css_unset_property (SPCSSAttr *css, gchar const *name)
gchar * sp_repr_css_write_string (SPCSSAttr *css)
Inkscape::XML::Document * sp_repr_document (Inkscape::XML::Node const *repr)
 Returns the node's document.
Inkscape::XML::Nodesp_repr_document_first_child (Inkscape::XML::Document const *doc)
Inkscape::XML::Document * sp_repr_document_new (gchar const *rootname)
Inkscape::XML::Document * sp_repr_document_new_list (GSList *reprs)
 Returns new document having reprs as first child.
Inkscape::XML::Nodesp_repr_document_root (Inkscape::XML::Document const *doc)
 Returns root node of document.
unsigned sp_repr_get_boolean (Inkscape::XML::Node *repr, gchar const *key, unsigned *val)
unsigned sp_repr_get_double (Inkscape::XML::Node *repr, gchar const *key, double *val)
double sp_repr_get_double_attribute (Inkscape::XML::Node *repr, gchar const *key, double def)
unsigned sp_repr_get_int (Inkscape::XML::Node *repr, gchar const *key, int *val)
long long int sp_repr_get_int_attribute (Inkscape::XML::Node *repr, gchar const *key, long long int def)
Inkscape::XML::Nodesp_repr_lookup_child (Inkscape::XML::Node *repr, gchar const *key, gchar const *value)
Inkscape::XML::Nodesp_repr_lookup_name (Inkscape::XML::Node *repr, gchar const *name, gint maxdepth=-1)
 Recursively find the Inkscape::XML::Node matching the given XML name.
Inkscape::XML::Nodesp_repr_new (gchar const *name)
 Returns new node.
Inkscape::XML::Nodesp_repr_new_comment (gchar const *comment)
 Returns new commentnode with comment. See Inkscape::XML::CommentNode.
Inkscape::XML::Nodesp_repr_new_text (gchar const *content)
 Returns new textnode with content. See Inkscape::XML::TextNode.
Inkscape::XML::Nodesp_repr_next (Inkscape::XML::Node *repr)
 Returns next child of node or NULL.
Inkscape::XML::Nodesp_repr_parent (Inkscape::XML::Node const *repr)
 Returns the node's parent.
void sp_repr_print (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)
bool sp_repr_save_file (Inkscape::XML::Document *doc, gchar const *filename, gchar const *default_ns=NULL)
void sp_repr_save_stream (Inkscape::XML::Document *doc, FILE *to_file, gchar const *default_ns=NULL, bool compress=false)
unsigned sp_repr_set_attr (Inkscape::XML::Node *repr, gchar const *key, gchar const *value, bool is_interactive=false)
 Sets the node's key attribute to value.
unsigned sp_repr_set_boolean (Inkscape::XML::Node *repr, gchar const *key, unsigned val)
unsigned sp_repr_set_css_double (Inkscape::XML::Node *repr, gchar const *key, double val)
unsigned sp_repr_set_int (Inkscape::XML::Node *repr, gchar const *key, int val)
unsigned sp_repr_set_svg_double (Inkscape::XML::Node *repr, gchar const *key, double val)
void sp_repr_unparent (Inkscape::XML::Node *repr)
 Remove repr from children of its parent node.
char const * sp_xml_ns_prefix_uri (gchar const *prefix)
char const * sp_xml_ns_uri_prefix (gchar const *uri, gchar const *suggested)


Generated by  Doxygen 1.6.0   Back to index