/*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2008 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "desktop.h"
#include "selection.h"
#include "document-private.h"
#include "sp-item.h"
#include "extension/extension.h"
#include "xml/simple-node.h"
#include "xml/attribute-record.h"
#include "filter.h"
namespace Inkscape {
namespace Extension {
namespace Internal {
namespace Filter {
return;
}
return;
}
}
return;
}
{
return true;
}
Inkscape::Extension::Implementation::ImplementationDocumentCache *Filter::newDocCache(Inkscape::Extension::Extension * /*ext*/,
{
return NULL;
}
{
return _filter;
}
}
void
{
// copy attributes
//printf("Attribute List: %s\n", attr);
}
}
}
}
// for each child call recursively
if (from_child == from->firstChild() && !strcmp("filter", from->name()) && srcGraphic != NULL && to_child->attribute("in") == NULL) {
}
}
}
{
return; // could not parse the XML source of the filter; typically parser will stderr a warning
}
//printf("Calling filter effect\n");
// TODO need to properly refcount the items, at least
} else {
// This is not url(#id) -- we can't handle it
continue;
}
filternode = child;
break;
}
}
// no filter
if (filternode == NULL) {
g_warning("no assigned filter found!");
continue;
}
// empty filter, we insert
} else {
// existing filter, we merge
}
}
}
return;
}
#include "extension/internal/clear-n_.h"
void
Filter::filter_init (gchar const * id, gchar const * name, gchar const * submenu, gchar const * tip, gchar const * filter)
{
"<name>%s</name>\n"
"<id>org.inkscape.effect.filter.%s</id>\n"
"<effect>\n"
"<object-type>all</object-type>\n"
"<effects-menu>\n"
"<submenu name=\"%s\"/>\n"
"</effects-menu>\n"
"<menu-tip>%s</menu-tip>\n"
"</effect>\n"
return;
}
}; /* namespace Filter */
}; /* namespace Internal */
}; /* namespace Extension */
}; /* namespace Inkscape */