KHTML
SVGZoomAndPan.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SVGZoomAndPan_h
00024 #define SVGZoomAndPan_h
00025
00026 #if ENABLE(SVG)
00027 #include "PlatformString.h"
00028 #include "xml/Document.h"
00029
00030 namespace WebCore {
00031
00032
00033
00034
00035 class SVGZoomAndPan {
00036 public:
00037 enum SVGZoomAndPanType {
00038 SVG_ZOOMANDPAN_UNKNOWN = 0,
00039 SVG_ZOOMANDPAN_DISABLE = 1,
00040 SVG_ZOOMANDPAN_MAGNIFY = 2
00041 };
00042
00043 SVGZoomAndPan();
00044 virtual ~SVGZoomAndPan();
00045
00046 unsigned short zoomAndPan() const;
00047 virtual void setZoomAndPan(unsigned short zoomAndPan);
00048
00049 bool parseMappedAttribute(MappedAttribute*);
00050 bool isKnownAttribute(const QualifiedName&);
00051
00052 bool parseZoomAndPan(const UChar*& start, const UChar* end);
00053
00054 private:
00055 unsigned short m_zoomAndPan;
00056 };
00057
00058 }
00059
00060 #endif // ENABLE(SVG)
00061 #endif // SVGZoomAndPan_h