sp-switch.cpp revision 0de73848362e95b081e5fa85f910d6481094b2b9
/*
* 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->_cached_item = 0;
}
}
}
}
return first;
}
}
SelContainer x;
return x;
if (add_ref) {
//g_object_ref (G_OBJECT (child));
}
x.push_front(child);
return x;
}
const char *SPSwitch::displayName() const {
return _("Conditional Group");
}
return g_strdup_printf(
}
this->_reevaluate(true);
}
this->_reevaluate();
}
void SPSwitch::order_changed (Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref)
{
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) {
if (SP_IS_ITEM (o)) {
if (ac) {
}
}
}
}
/*
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 :