repr.h revision d0d9dc8846169ff203ce93b6fd6bf331e663a7cd
/** @file
* @brief C facade to Inkscape::XML::Node
*/
/* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 1999-2002 authors
* Copyright (C) 2000-2002 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_SP_REPR_H
#define SEEN_SP_REPR_H
#include <stdio.h>
#include <glib.h>
#include "gc-anchored.h"
#include "xml/document.h"
#include "xml/sp-css-attr.h"
#include "io/inkscapestream.h"
#define SP_XLINK_NS_URI "http://www.w3.org/1999/xlink"
#define SP_SVG_NS_URI "http://www.w3.org/2000/svg"
#define SP_CC_NS_URI "http://creativecommons.org/ns#"
#define SP_OLD_CC_NS_URI "http://web.resource.org/cc/"
#define SP_DC_NS_URI "http://purl.org/dc/elements/1.1/"
/* SPXMLNs */
/* IO */
Inkscape::XML::Document *sp_repr_read_mem(gchar const *buffer, int length, gchar const *default_ns);
int inlineattrs, int indent,
// TODO convert to std::string
bool sp_repr_save_file(Inkscape::XML::Document *doc, gchar const *filename, gchar const *default_ns=NULL);
gchar const *default_ns,
/* CSS stuff */
SPCSSAttr *sp_repr_css_attr_new(void);
/* Utility finctions */
/// Remove \a repr from children of its parent node.
if (parent) {
}
}
/* Convenience */
// Searching
/**
* @brief Find an element node with the given name.
*
* This function searches the descendants of the specified node depth-first for
* the first XML node with the specified name.
*
* @param repr The node to start from
* @param name The name of the element node to find
* @param maxdepth Maximum search depth, or -1 for an unlimited depth
* @return A pointer to the matching Inkscape::XML::Node
* @relatesalso Inkscape::XML::Node
*/
}
#endif // SEEN_SP_REPR_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :