diff --git a/src/dom/svgtypes.h b/src/dom/svgtypes.h
--- a/src/dom/svgtypes.h
+++ b/src/dom/svgtypes.h
* Authors:
* Bob Jamison
*
- * Copyright (C) 2005 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.
+ *
*/
// For access to DOM2 core
-#include "dom.h"
+#include "dom/dom.h"
// For access to DOM2 events
-#include "events.h"
+#include "dom/events.h"
// For access to those parts from DOM2 CSS OM used by SVG DOM.
-#include "css.h"
+#include "dom/css.h"
// For access to those parts from DOM2 Views OM used by SVG DOM.
-#include "views.h"
+#include "dom/views.h"
// For access to the SMIL OM used by SVG DOM.
-#include "smil.h"
+#include "dom/smil.h"
#include <math.h>
class SVGElement;
+typedef Ptr<SVGElement> SVGElementPtr;
class SVGUseElement;
+typedef Ptr<SVGUseElement> SVGUseElementPtr;
class SVGAnimatedPreserveAspectRatio;
/**
*
*/
- virtual void setValueInSpecifiedUnits( double val )
+ virtual void setValueInSpecifiedUnits( double /*val*/ )
throw (DOMException)
{
//fill this in
/**
*
*/
- virtual void setValueAsString( const DOMString& val )
+ virtual void setValueAsString( const DOMString& /*val*/ )
throw (DOMException)
{
}
/**
*
*/
- virtual void newValueSpecifiedUnits ( unsigned short unitType, double val )
+ virtual void newValueSpecifiedUnits ( unsigned short /*unitType*/, double /*val*/ )
{
}
/**
*
*/
- virtual void convertToSpecifiedUnits ( unsigned short unitType )
+ virtual void convertToSpecifiedUnits ( unsigned short /*unitType*/ )
{
}
/**
*
*/
- virtual void setValueInSpecifiedUnits(double val)
+ virtual void setValueInSpecifiedUnits(double /*val*/)
throw (DOMException)
{
//do conversion
/**
*
*/
- virtual void setValueAsString(const DOMString &val)
+ virtual void setValueAsString(const DOMString &/*val*/)
throw (DOMException)
{
//convert here
/**
*
*/
- virtual void newValueSpecifiedUnits (unsigned short unitType,
- double valueInSpecifiedUnits )
+ virtual void newValueSpecifiedUnits (unsigned short /*unitType*/,
+ double /*valueInSpecifiedUnits*/ )
{
//convert here
}
/**
*
*/
- virtual void convertToSpecifiedUnits (unsigned short unitType )
+ virtual void convertToSpecifiedUnits (unsigned short /*unitType*/ )
{
//convert here
}
/**
*
*/
- virtual void setRGBColor (const DOMString& rgbColor )
+ virtual void setRGBColor (const DOMString& /*rgbColor*/ )
throw( SVGException )
{
}
/**
*
*/
- virtual void setRGBColorICCColor (const DOMString& rgbColor,
- const DOMString& iccColor )
+ virtual void setRGBColorICCColor (const DOMString& /*rgbColor*/,
+ const DOMString& /*iccColor*/ )
throw( SVGException )
{
}
/**
*
*/
- virtual void setColor (unsigned short colorType,
- const DOMString& rgbColor,
- const DOMString& iccColor )
+ virtual void setColor (unsigned short /*colorType*/,
+ const DOMString& /*rgbColor*/,
+ const DOMString& /*iccColor*/ )
throw( SVGException )
{
}
/**
*
*/
- virtual SVGPoint matrixTransform(const SVGMatrix &matrix)
+ virtual SVGPoint matrixTransform(const SVGMatrix &/*matrix*/)
{
SVGPoint point;
return point;
/**
*
*/
- virtual css::CSSValue getPresentationAttribute (const DOMString& name )
+ virtual css::CSSValue getPresentationAttribute (const DOMString& /*name*/ )
{
css::CSSValue val;
//perform a lookup
/**
*
*/
- 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;
}
/**
*
*/
- virtual SVGMatrix getTransformToElement (const SVGElement &element)
+ virtual SVGMatrix getTransformToElement (const SVGElement &/*element*/)
throw( SVGException )
{
SVGMatrix result;
/**
*
*/
- SVGLocatable(const SVGLocatable &other)
+ SVGLocatable(const SVGLocatable &/*other*/)
{
}
/**
*
*/
- virtual bool hasExtension (const DOMString& extension )
+ virtual bool hasExtension (const DOMString& /*extension*/ )
{
return false;
}
/**
*
*/
- virtual SVGElement *getViewTarget()
+ virtual SVGElementPtr getViewTarget()
{ return viewTarget; }
/**
protected:
- SVGElement *viewTarget;
+ SVGElementPtr viewTarget;
SVGTransformList transform;
};
###########################################################################
#########################################################################*/
-static char *pathSegLetters[] =
+static char const *const pathSegLetters[] =
{
"@", // PATHSEG_UNKNOWN,
"z", // PATHSEG_CLOSEPATH
int typ = type;
if (typ<0 || typ>PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL)
typ = PATHSEG_UNKNOWN;
- char *ch = pathSegLetters[typ];
+ char const *ch = pathSegLetters[typ];
DOMString letter = ch;
return letter;
}
/**
*
*/
- SVGAnimatedPathData(const SVGAnimatedPathData &other)
+ SVGAnimatedPathData(const SVGAnimatedPathData &/*other*/)
{
}
*/
virtual void setPaint (unsigned short paintTypeArg,
const DOMString& uriArg,
- const DOMString& rgbColor,
- const DOMString& iccColor )
+ const DOMString& /*rgbColor*/,
+ const DOMString& /*iccColor*/ )
throw( SVGException )
{
paintType = paintTypeArg;
/**
*
*/
- virtual SVGElement *getCorrespondingElement()
+ virtual SVGElementPtr getCorrespondingElement()
{ return correspondingElement; }
/**
*
*/
- virtual SVGUseElement *getCorrespondingUseElement()
+ virtual SVGUseElementPtr getCorrespondingUseElement()
{ return correspondingUseElement; }
/**
protected:
- SVGElement *correspondingElement;
- SVGUseElement *correspondingUseElement;
+ SVGElementPtr correspondingElement;
+ SVGUseElementPtr correspondingUseElement;
};
* SVGElementInstanceList SVGElementInstance::getChildNodes()
*
*/
- static SVGElementInstanceList getChildNodes(const SVGElementInstance &instance)
+ static SVGElementInstanceList getChildNodes(const SVGElementInstance &/*instance*/)
{
SVGElementInstanceList list;
return list;