repr.h revision 7f18e8ab01ce21c98cc7b9f58ffe5e771ebbb64e
/** @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 "xml/document.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/"
} // namespace IO
} // namespace Inkscape
}
/* SPXMLNs */
char const *sp_xml_ns_prefix_uri(char const *prefix);
/* IO */
int inlineattrs, int indent,
char const *old_href_base = NULL,
char const *new_href_base = NULL);
// TODO convert to std::string
char const *old_href_base = NULL,
char const *new_href_base = NULL);
bool sp_repr_save_file(Inkscape::XML::Document *doc, char const *filename, char const *default_ns=NULL);
char const *default_ns,
char const *old_base, char const *new_base_filename);
/* CSS stuff */
SPCSSAttr *sp_repr_css_attr_new(void);
/* Utility finctions */
/// Remove \a repr from children of its parent node.
if (repr) {
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
*/
char const *name,
int maxdepth = -1);
char const *name,
int maxdepth = -1);
char const *key,
char const *value);
}
#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 :