sp-switch.cpp revision 113c1da23be452320f54194502cbfe284547058d
/*
* SVG <switch> implementation
*
* Authors:
* Andrius R. <knutux@gmail.com>
* MenTaLguY <mental@rydia.net>
* Jon A. Cruz <jon@joncruz.org>
* Abhishek Sharma
*
* 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/drawing-group.h"
#include "conditions.h"
#include "sp-factory.h"
namespace {
SPObject* createSwitch() {
return new SPSwitch();
}
}
this->cobject = this;
this->_cached_item = 0;
}
}
}
}
return first;
}
}
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",
}
this->_reevaluate(true);
}
this->_reevaluate();
}
{
this->_reevaluate();
}
return;
}
{
if ( !SP_IS_ITEM (o) ) {
continue;
}
}
_release_connection = evaluated_child->connectRelease(sigc::bind(sigc::ptr_fun(&SPSwitch::_releaseItem), this));
}
{
}
{
return;
this->_release_connection.disconnect();
this->_cached_item = NULL;
}
void SPSwitch::_showChildren (Inkscape::Drawing &drawing, Inkscape::DrawingItem *ai, unsigned int key, unsigned int flags) {
while (l) {
if (SP_IS_ITEM (o)) {
if (ac) {
}
}
l = g_slist_remove (l, o);
}
}
/*
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 :