diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-12-15 16:19:28 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-12-15 16:19:28 +0000 |
| commit | 70201e92aa1e700d49279871f2b84082750b8ed8 (patch) | |
| tree | 1886fcdf8ad20d73b92bf4f4bfd3ab1406ba4c66 /src/sp-animation.cpp | |
| parent | Fix mask luminance calculation, so the coeffs add up to 1 (diff) | |
| parent | Win32 post-GSoC fixups. (diff) | |
| download | inkscape-70201e92aa1e700d49279871f2b84082750b8ed8.tar.gz inkscape-70201e92aa1e700d49279871f2b84082750b8ed8.zip | |
Merge from trunk (again)
(bzr r9508.1.72)
Diffstat (limited to 'src/sp-animation.cpp')
| -rw-r--r-- | src/sp-animation.cpp | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/src/sp-animation.cpp b/src/sp-animation.cpp index 132d0aa0f..f0796b7c6 100644 --- a/src/sp-animation.cpp +++ b/src/sp-animation.cpp @@ -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 * @@ -89,18 +88,18 @@ sp_animation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node * 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 @@ -176,15 +175,15 @@ sp_ianimation_build(SPObject *object, SPDocument *document, Inkscape::XML::Node 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 |
