1/*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2006 Apple Inc. All rights reserved.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB.  If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 */
22
23// TODO: no css::ViewCSS available!
24// TODO: no events::DocumentEvent available!
25interface SVGSVGElement : SVGGraphicsElement {
26    readonly attribute SVGAnimatedLength x;
27    readonly attribute SVGAnimatedLength y;
28    readonly attribute SVGAnimatedLength width;
29    readonly attribute SVGAnimatedLength height;
30             attribute DOMString contentScriptType;
31             attribute DOMString contentStyleType;
32    readonly attribute SVGRect viewport;
33    readonly attribute float pixelUnitToMillimeterX;
34    readonly attribute float pixelUnitToMillimeterY;
35    readonly attribute float screenPixelToMillimeterX;
36    readonly attribute float screenPixelToMillimeterY;
37    readonly attribute boolean useCurrentView;
38    readonly attribute SVGViewSpec currentView;
39             attribute float currentScale;
40    readonly attribute SVGPoint currentTranslate;
41
42    unsigned long suspendRedraw([Default=Undefined] optional unsigned long maxWaitMilliseconds);
43    void unsuspendRedraw([Default=Undefined] optional unsigned long suspendHandleId);
44    void unsuspendRedrawAll();
45    void forceRedraw();
46    void pauseAnimations();
47    void unpauseAnimations();
48    boolean animationsPaused();
49    float getCurrentTime();
50    void setCurrentTime([Default=Undefined] optional float seconds);
51    NodeList getIntersectionList([Default=Undefined] optional SVGRect rect,
52                                 [Default=Undefined] optional SVGElement referenceElement);
53    NodeList getEnclosureList([Default=Undefined] optional SVGRect rect,
54                              [Default=Undefined] optional SVGElement referenceElement);
55    boolean checkIntersection([Default=Undefined] optional SVGElement element,
56                              [Default=Undefined] optional SVGRect rect);
57    boolean checkEnclosure([Default=Undefined] optional SVGElement element,
58                           [Default=Undefined] optional SVGRect rect);
59    void deselectAll();
60
61    SVGNumber createSVGNumber();
62    SVGLength createSVGLength();
63    SVGAngle createSVGAngle();
64    SVGPoint createSVGPoint();
65    SVGMatrix createSVGMatrix();
66    SVGRect createSVGRect();
67    SVGTransform createSVGTransform();
68    SVGTransform createSVGTransformFromMatrix([Default=Undefined] optional SVGMatrix matrix);
69    Element getElementById([Default=Undefined] optional DOMString elementId);
70};
71
72SVGSVGElement implements SVGExternalResourcesRequired;
73SVGSVGElement implements SVGFitToViewBox;
74SVGSVGElement implements SVGZoomAndPan;
75
76