Code

Use subdirectories with icon sizes.
[inkscape.git] / src / sp-animation.cpp
index b5f0e8605f37ea417dda596a76ee695a7acc4f8a..f0796b7c61209caeb14fc251ed00663a5d40e050 100644 (file)
@@ -1,5 +1,3 @@
-#define __SP_ANIMATION_C__
-
 /** \file
  * SVG <animate> implementation.
  *
@@ -8,6 +6,7 @@
 /*
  * Authors:
  *   Lauris Kaplinski <lauris@kaplinski.com>
+ *   Abhishek Sharma
  *
  * Copyright (C) 2002 Lauris Kaplinski
  *
@@ -37,7 +36,7 @@ log_set_attr(char const *const classname, unsigned int const key, char const *co
 static void sp_animation_class_init(SPAnimationClass *klass);
 static void sp_animation_init(SPAnimation *animation);
 
-static void sp_animation_build(SPObject *object, Document *document, Inkscape::XML::Node *repr);
+static void sp_animation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
 static void sp_animation_release(SPObject *object);
 static void sp_animation_set(SPObject *object, unsigned int key, gchar const *value);
 
@@ -84,23 +83,23 @@ sp_animation_init(SPAnimation */*animation*/)
 
 
 static void
-sp_animation_build(SPObject *object, Document *document, Inkscape::XML::Node *repr)
+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);
 
-    sp_object_read_attr(object, "xlink:href");
-    sp_object_read_attr(object, "attributeName");
-    sp_object_read_attr(object, "attributeType");
-    sp_object_read_attr(object, "begin");
-    sp_object_read_attr(object, "dur");
-    sp_object_read_attr(object, "end");
-    sp_object_read_attr(object, "min");
-    sp_object_read_attr(object, "max");
-    sp_object_read_attr(object, "restart");
-    sp_object_read_attr(object, "repeatCount");
-    sp_object_read_attr(object, "repeatDur");
-    sp_object_read_attr(object, "fill");
+    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" );
 }
 
 static void
@@ -124,7 +123,7 @@ sp_animation_set(SPObject *object, unsigned int key, gchar const *value)
 static void sp_ianimation_class_init(SPIAnimationClass *klass);
 static void sp_ianimation_init(SPIAnimation *animation);
 
-static void sp_ianimation_build(SPObject *object, Document *document, Inkscape::XML::Node *repr);
+static void sp_ianimation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
 static void sp_ianimation_release(SPObject *object);
 static void sp_ianimation_set(SPObject *object, unsigned int key, gchar const *value);
 
@@ -171,20 +170,20 @@ sp_ianimation_init(SPIAnimation */*animation*/)
 
 
 static void
-sp_ianimation_build(SPObject *object, Document *document, Inkscape::XML::Node *repr)
+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);
 
-    sp_object_read_attr(object, "calcMode");
-    sp_object_read_attr(object, "values");
-    sp_object_read_attr(object, "keyTimes");
-    sp_object_read_attr(object, "keySplines");
-    sp_object_read_attr(object, "from");
-    sp_object_read_attr(object, "to");
-    sp_object_read_attr(object, "by");
-    sp_object_read_attr(object, "additive");
-    sp_object_read_attr(object, "accumulate");
+    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" );
 }
 
 static void
@@ -208,7 +207,7 @@ sp_ianimation_set(SPObject *object, unsigned int key, gchar const *value)
 static void sp_animate_class_init(SPAnimateClass *klass);
 static void sp_animate_init(SPAnimate *animate);
 
-static void sp_animate_build(SPObject *object, Document *document, Inkscape::XML::Node *repr);
+static void sp_animate_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
 static void sp_animate_release(SPObject *object);
 static void sp_animate_set(SPObject *object, unsigned int key, gchar const *value);
 
@@ -255,7 +254,7 @@ sp_animate_init(SPAnimate */*animate*/)
 
 
 static void
-sp_animate_build(SPObject *object, Document *document, Inkscape::XML::Node *repr)
+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);
@@ -287,4 +286,4 @@ sp_animate_set(SPObject *object, unsigned int key, gchar const *value)
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :