Logo Search packages:      
Sourcecode: inkscape version File versions

repr-util.cpp File Reference

Detailed Description

Miscellaneous helpers for reprs.

Definition in file repr-util.cpp.

#include "config.h"
#include <math.h>
#include <glib.h>
#include <2geom/point.h>
#include "svg/stringstream.h"
#include "svg/css-ostringstream.h"
#include "xml/repr.h"
#include "xml/repr-sorting.h"

Go to the source code of this file.


struct  SPXMLNs


#define __SP_REPR_UTIL_C__
#define FALSE   0
#define MAX(a, b)   (((a) < (b)) ? (b) : (a))
#define OSB_NS_URI   "http://www.openswatchbook.org/uri/2009/osb"
#define TRUE   (!FALSE)


int sp_repr_compare_position (Inkscape::XML::Node *first, Inkscape::XML::Node *second)
unsigned int sp_repr_get_boolean (Inkscape::XML::Node *repr, gchar const *key, unsigned int *val)
unsigned int sp_repr_get_double (Inkscape::XML::Node *repr, gchar const *key, double *val)
double sp_repr_get_double_attribute (Inkscape::XML::Node *repr, char const *key, double def)
unsigned int 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, char const *key, long long int def)
unsigned int sp_repr_get_point (Inkscape::XML::Node *repr, gchar const *key, Geom::Point *val)
bool sp_repr_is_meta_element (const Inkscape::XML::Node *node)
Inkscape::XML::Nodesp_repr_lookup_child (Inkscape::XML::Node *repr, gchar const *key, gchar const *value)
 Find an element node using an unique attribute.
Inkscape::XML::Nodesp_repr_lookup_name (Inkscape::XML::Node *repr, gchar const *name, gint maxdepth)
 Find an element node with the given name.
unsigned int sp_repr_set_boolean (Inkscape::XML::Node *repr, gchar const *key, unsigned int val)
unsigned int sp_repr_set_css_double (Inkscape::XML::Node *repr, gchar const *key, double val)
unsigned int sp_repr_set_int (Inkscape::XML::Node *repr, gchar const *key, int val)
unsigned sp_repr_set_point (Inkscape::XML::Node *repr, gchar const *key, Geom::Point const &val)
unsigned int sp_repr_set_svg_double (Inkscape::XML::Node *repr, gchar const *key, double val)
unsigned int sp_xml_dtoa (gchar *buf, double val, unsigned int tprec, unsigned int fprec, unsigned int padf)
static char * sp_xml_ns_auto_prefix (char const *uri)
gchar const * sp_xml_ns_prefix_uri (gchar const *prefix)
static void sp_xml_ns_register_defaults ()
gchar const * sp_xml_ns_uri_prefix (gchar const *uri, gchar const *suggested)


static SPXMLNs * namespaces = NULL

Generated by  Doxygen 1.6.0   Back to index