Code

Rearrange to enable code that does not directly rely on lcms.
[inkscape.git] / src / dom / svgtypes.h
index 36bb1fcdf14fb3f6d6fc6f7bd3957e7c9304fc60..9b3d1caf6192c139ddc610ede5863d0154e0726d 100644 (file)
@@ -13,7 +13,7 @@
  * Authors:
  *   Bob Jamison
  *
- * Copyright (C) 2006 Bob Jamison
+ * Copyright (C) 2006-2008 Bob Jamison
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
  *  You should have received a copy of the GNU Lesser General Public
  *  License along with this library; if not, write to the Free Software
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *  
+ * =======================================================================
+ * NOTES
+ * 
+ * This API follows:
+ * http://www.w3.org/TR/SVG11/svgdom.html
+ * 
+ * This file contains the definitions of the non-Node SVG classes.  DOM Nodes
+ * for SVG are defined in svg.h.
+ *          
  */
 
 
@@ -68,7 +78,9 @@ typedef dom::NodeList NodeList;
 
 
 class SVGElement;
+typedef Ptr<SVGElement> SVGElementPtr;
 class SVGUseElement;
+typedef Ptr<SVGUseElement> SVGUseElementPtr;
 class SVGAnimatedPreserveAspectRatio;
 
 
@@ -3094,18 +3106,18 @@ public:
     /**
      *
      */
-    virtual SVGElement *getNearestViewportElement()
+    virtual SVGElementPtr getNearestViewportElement()
         {
-        SVGElement *result = NULL;
+        SVGElementPtr result;
         return result;
         }
 
     /**
      *
      */
-    virtual SVGElement *getFarthestViewportElement()
+    virtual SVGElementPtr getFarthestViewportElement()
         {
-        SVGElement *result = NULL;
+        SVGElementPtr result;
         return result;
         }
 
@@ -3770,7 +3782,7 @@ public:
     /**
      *
      */
-    virtual SVGElement *getViewTarget()
+    virtual SVGElementPtr getViewTarget()
         { return viewTarget; }
 
     /**
@@ -3839,7 +3851,7 @@ public:
 
 protected:
 
-    SVGElement *viewTarget;
+    SVGElementPtr viewTarget;
     SVGTransformList transform;
 };
 
@@ -6697,13 +6709,13 @@ public:
     /**
      *
      */
-    virtual SVGElement *getCorrespondingElement()
+    virtual SVGElementPtr getCorrespondingElement()
         { return correspondingElement; }
 
     /**
      *
      */
-    virtual SVGUseElement *getCorrespondingUseElement()
+    virtual SVGUseElementPtr getCorrespondingUseElement()
         { return correspondingUseElement; }
 
     /**
@@ -6783,8 +6795,8 @@ public:
 
 protected:
 
-    SVGElement    *correspondingElement;
-    SVGUseElement *correspondingUseElement;
+    SVGElementPtr      correspondingElement;
+    SVGUseElementPtr   correspondingUseElement;
 
 };