sp-switch.cpp revision ab17729e09d54ccfcb65645e6dae62a343e9c6b7
#define __SP_SWITCH_CPP__
/*
* SVG <switch> implementation
*
* Authors:
* Andrius R. <knutux@gmail.com>
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2006 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "sp-switch.h"
#include "display/nr-arena-group.h"
#include "conditions.h"
static SPGroupClass * parent_class;
{
static GType switch_type = 0;
if (!switch_type) {
GTypeInfo switch_info = {
sizeof (SPSwitchClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (SPSwitch),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return switch_type;
}
static void
}
{
}
}
}
return child;
}
return NULL;
}
}
return NULL;
if (add_ref)
}
return g_strdup_printf(
ngettext("<b>Conditional group</b> of <b>%d</b> object",
"<b>Conditional group</b> of <b>%d</b> objects",
}
_reevaluate(true);
}
_reevaluate();
}
{
_reevaluate();
}
return;
}
{
if ( !SP_IS_ITEM (o) ) {
continue;
}
}
_release_connection = evaluated_child->connectRelease(sigc::bind(sigc::ptr_fun(&CSwitch::_releaseItem), this));
}
{
}
{
return;
_cached_item = NULL;
}
void CSwitch::_showChildren (NRArena *arena, NRArenaItem *ai, unsigned int key, unsigned int flags) {
while (l) {
if (SP_IS_ITEM (o)) {
if (ac) {
}
}
l = g_slist_remove (l, o);
}
}