sp-defs.cpp revision 5c85d657aed31c86ec1d89f03f56960bdb4d6df6
#define __SP_DEFS_C__
/*
* SVG <defs> implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2000-2002 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
/*
* fixme: We should really check childrens validity - currently everything
* flips in
*/
#include "sp-defs.h"
static Inkscape::XML::Node *sp_defs_write(SPObject *object, Inkscape::XML::Node *repr, guint flags);
static SPObjectClass *parent_class;
GType sp_defs_get_type(void)
{
if (!defs_type) {
sizeof(SPDefsClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof(SPDefs),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return defs_type;
}
{
}
{
}
{
}
}
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
while (l) {
l = g_slist_remove(l, child);
}
}
}
{
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
for ( SPObject *child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
l = g_slist_prepend(l, child);
}
l = g_slist_reverse(l);
while (l) {
l = g_slist_remove(l, child);
}
}
}
{
if (flags & SP_OBJECT_WRITE_BUILD) {
if (!repr) {
}
for ( SPObject *child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
}
while (l) {
l = g_slist_remove(l, l->data);
}
} else {
for ( SPObject *child = sp_object_first_child(object) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
}
}
}
return repr;
}
/*
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 :