Code

SPObject c++ification finalized along with the beginning of XML Privatisation tweaks
[inkscape.git] / src / box3d-side.cpp
index 69bae53d93b696fb1f362d85b7ac2bee9650a1f3..be6d47db736e205109651a2f317c977fbb5bdd4d 100644 (file)
@@ -99,7 +99,7 @@ box3d_side_build (SPObject * object, SPDocument * document, Inkscape::XML::Node
     if (((SPObjectClass *) parent_class)->build)
         ((SPObjectClass *) parent_class)->build (object, document, repr);
 
-    sp_object_read_attr(object, "inkscape:box3dsidetype");
+    object->readAttr( "inkscape:box3dsidetype");
 }
 
 static Inkscape::XML::Node *
@@ -185,6 +185,14 @@ box3d_side_update (SPObject *object, SPCtx *ctx, guint flags)
     if (((SPObjectClass *) parent_class)->update)
         ((SPObjectClass *) parent_class)->update (object, ctx, flags);
 }
+/*
+ * Function which return the type attribute for Box3D. 
+ * Acts as a replacement for directly accessing the XML Tree directly.
+ */
+long long int Box3DSide::getFaceId()
+{
+           return this->getIntAttribute("inkscape:box3dsidetype", -1);
+}
 
 void
 box3d_side_position_set (Box3DSide *side) {