/** @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 <vector>
#include "xml/document.h"
} // 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 */
//c++-style comparison : returns (bool)(a<b)
bool sp_repr_compare_position_bool(Inkscape::XML::Node const *first, Inkscape::XML::Node const *second);
// 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 *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 :