sp-animation.cpp revision 883c5b2d5104c153708fdc513209d5694b489900
/** \file
* SVG <animate> implementation.
*
* N.B. This file is currently just a stub file with no meaningful implementation.
*/
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Abhishek Sharma
*
* Copyright (C) 2002 Lauris Kaplinski
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-animation.h"
#if 0
/* Feel free to remove this function and its calls. */
static void log_set_attr(char const *const classname, unsigned int const key, char const *const value)
{
if (value) {
} else {
}
}
#else
#endif
/* Animation base class */
//static void sp_animation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
static SPObjectClass *animation_parent_class;
GType sp_animation_get_type(void)
{
static GType animation_type = 0;
if (!animation_type) {
sizeof(SPAnimationClass),
sizeof(SPAnimation),
16,
NULL, /* value_table */
};
animation_type = g_type_register_static(SP_TYPE_OBJECT, "SPAnimation", &animation_info, (GTypeFlags)0);
}
return animation_type;
}
{
//GObjectClass *gobject_class = (GObjectClass *) klass;
//sp_object_class->build = sp_animation_build;
// sp_object_class->release = sp_animation_release;
// sp_object_class->set = sp_animation_set;
}
this->spanimation = animation;
}
CAnimation::~CAnimation() {
}
{
}
//static void sp_animation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
//{
// if (((SPObjectClass *) animation_parent_class)->build)
// ((SPObjectClass *) animation_parent_class)->build(object, document, repr);
//
// object->readAttr( "xlink:href" );
// object->readAttr( "attributeName" );
// object->readAttr( "attributeType" );
// object->readAttr( "begin" );
// object->readAttr( "dur" );
// object->readAttr( "end" );
// object->readAttr( "min" );
// object->readAttr( "max" );
// object->readAttr( "restart" );
// object->readAttr( "repeatCount" );
// object->readAttr( "repeatDur" );
// object->readAttr( "fill" );
//}
}
{
}
void CAnimation::onRelease() {
}
{
//SPAnimation *animation = SP_ANIMATION(object);
//
// log_set_attr("SPAnimation", key, value);
//
// if (((SPObjectClass *) animation_parent_class)->set)
// ((SPObjectClass *) animation_parent_class)->set(object, key, value);
}
}
/* Interpolated animation base class */
//static void sp_ianimation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
static SPObjectClass *ianimation_parent_class;
GType sp_ianimation_get_type(void)
{
if (!type) {
sizeof(SPIAnimationClass),
sizeof(SPIAnimation),
16,
NULL, /* value_table */
};
}
return type;
}
{
//GObjectClass *gobject_class = (GObjectClass *) klass;
//sp_object_class->build = sp_ianimation_build;
// sp_object_class->release = sp_ianimation_release;
// sp_object_class->set = sp_ianimation_set;
}
this->spianimation = animation;
}
{
}
//static void sp_ianimation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
//{
// if (((SPObjectClass *) ianimation_parent_class)->build)
// ((SPObjectClass *) ianimation_parent_class)->build(object, document, repr);
//
// object->readAttr( "calcMode" );
// object->readAttr( "values" );
// object->readAttr( "keyTimes" );
// object->readAttr( "keySplines" );
// object->readAttr( "from" );
// object->readAttr( "to" );
// object->readAttr( "by" );
// object->readAttr( "additive" );
// object->readAttr( "accumulate" );
//}
}
{
}
void CIAnimation::onRelease() {
}
{
//SPIAnimation *ianimation = SP_IANIMATION(object);
// log_set_attr("SPIAnimation", key, value);
//
// if (((SPObjectClass *) ianimation_parent_class)->set)
// ((SPObjectClass *) ianimation_parent_class)->set(object, key, value);
}
}
/* SVG <animate> */
//static void sp_animate_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
static SPIAnimationClass *animate_parent_class;
GType sp_animate_get_type(void)
{
if (!type) {
sizeof(SPAnimateClass),
sizeof(SPAnimate),
16,
NULL, /* value_table */
};
}
return type;
}
{
//GObjectClass *gobject_class = (GObjectClass *) klass;
//sp_object_class->build = sp_animate_build;
// sp_object_class->release = sp_animate_release;
// sp_object_class->set = sp_animate_set;
}
}
{
}
//static void sp_animate_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
//{
// if (((SPObjectClass *) animate_parent_class)->build)
// ((SPObjectClass *) animate_parent_class)->build(object, document, repr);
//}
}
{
}
}
{
//SPAnimate *animate = SP_ANIMATE(object);
// log_set_attr("SPAnimate", key, value);
//
// if (((SPObjectClass *) animate_parent_class)->set)
// ((SPObjectClass *) animate_parent_class)->set(object, key, value);
}
}
/*
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 :