index 55513ccb83a9ab8b160212608d55b349c0065514..c9eebcb18868dfa371ac17bf4645cd5822908894 100644 (file)
-#define __SP_FEPOINTLIGHT_CPP__
-
/** \file
* SVG <fepointlight> implementation.
*/
* Hugo Rodrigues <haa.rodrigues@gmail.com>
* Niko Kiirala <niko@kiirala.com>
* Jean-Rene Reinhard <jr@komite.net>
+ * Abhishek Sharma
*
* Copyright (C) 2006,2007 Authors
*
@@ -104,12 +103,12 @@ sp_fepointlight_build(SPObject *object, SPDocument *document, Inkscape::XML::Nod
}
//Read values of key attributes from XML nodes into object.
- object->readAttr( "x");
- object->readAttr( "y");
- object->readAttr( "z");
+ object->readAttr( "x" );
+ object->readAttr( "y" );
+ object->readAttr( "z" );
//is this necessary?
- document->add_resource("fepointlight", object);
+ document->addResource("fepointlight", object);
}
/**
if (SP_OBJECT_DOCUMENT(object)) {
/* Unregister ourselves */
- SP_OBJECT_DOCUMENT(object)->remove_resource("fepointlight", SP_OBJECT(object));
+ SP_OBJECT_DOCUMENT(object)->removeResource("fepointlight", SP_OBJECT(object));
}
//TODO: release resources here
if (flags & SP_OBJECT_MODIFIED_FLAG) {
/* do something to trigger redisplay, updates? */
- object->readAttr( "x");
- object->readAttr( "y");
- object->readAttr( "z");
+ object->readAttr( "x" );
+ object->readAttr( "y" );
+ object->readAttr( "z" );
}
if (((SPObjectClass *) fePointLight_parent_class)->update) {
@@ -256,4 +255,4 @@ sp_fepointlight_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::
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 :