KHTML
Go to the documentation of this file. 24 #include "wtf/Platform.h" 35 SVGZoomAndPan::SVGZoomAndPan()
36 : m_zoomAndPan(SVG_ZOOMANDPAN_MAGNIFY)
40 SVGZoomAndPan::~SVGZoomAndPan()
44 unsigned short SVGZoomAndPan::zoomAndPan()
const 49 void SVGZoomAndPan::setZoomAndPan(
unsigned short zoomAndPan)
51 m_zoomAndPan = zoomAndPan;
54 bool SVGZoomAndPan::parseMappedAttribute(MappedAttribute* attr)
57 const UChar* start = attr->value().characters();
58 const UChar*
end = start + attr->value().length();
59 parseZoomAndPan(start, end);
66 bool SVGZoomAndPan::isKnownAttribute(
const QualifiedName& attrName)
71 static const UChar disable[] = {
'd',
'i',
's',
'a',
'b',
'l',
'e'};
72 static const UChar magnify[] = {
'm',
'a',
'g',
'n',
'i',
'f',
'y'};
74 bool SVGZoomAndPan::parseZoomAndPan(
const UChar*& start,
const UChar* end)
76 if (
skipString(start, end, disable,
sizeof(disable) /
sizeof(UChar)))
77 setZoomAndPan(SVG_ZOOMANDPAN_DISABLE);
78 else if (
skipString(start, end, magnify,
sizeof(magnify) /
sizeof(UChar)))
79 setZoomAndPan(SVG_ZOOMANDPAN_MAGNIFY);
DOM::QualifiedName zoomAndPanAttr
bool skipString(const QChar *&ptr, const QChar *end, const QChar *name, int length)
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Sat Sep 30 2017 14:35:54 by
doxygen 1.8.13 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.