]> git.saurik.com Git - iphone-api.git/blob - WebCore/HTMLObjectElement.h
Add support for new WinterBoard Settings features.
[iphone-api.git] / WebCore / HTMLObjectElement.h
1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23 #ifndef HTMLObjectElement_h
24 #define HTMLObjectElement_h
25
26 #include "HTMLPlugInImageElement.h"
27
28 namespace WebCore {
29
30 class KURL;
31
32 class HTMLObjectElement : public HTMLPlugInImageElement {
33 public:
34 HTMLObjectElement(const QualifiedName&, Document*, bool createdByParser);
35 ~HTMLObjectElement();
36
37 virtual int tagPriority() const { return 5; }
38
39 virtual void parseMappedAttribute(MappedAttribute*);
40
41 virtual void attach();
42 virtual bool canLazyAttach() { return false; }
43 virtual bool rendererIsNeeded(RenderStyle*);
44 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
45 virtual void finishParsingChildren();
46 virtual void detach();
47 virtual void insertedIntoDocument();
48 virtual void removedFromDocument();
49
50 virtual void recalcStyle(StyleChange);
51 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
52
53 virtual bool isURLAttribute(Attribute*) const;
54 virtual const QualifiedName& imageSourceAttributeName() const;
55
56 virtual void updateWidget();
57 void setNeedWidgetUpdate(bool needWidgetUpdate) { m_needWidgetUpdate = needWidgetUpdate; }
58
59 void renderFallbackContent();
60
61 virtual RenderWidget* renderWidgetForJSBindings() const;
62
63 String archive() const;
64 void setArchive(const String&);
65
66 String border() const;
67 void setBorder(const String&);
68
69 String code() const;
70 void setCode(const String&);
71
72 String codeBase() const;
73 void setCodeBase(const String&);
74
75 String codeType() const;
76 void setCodeType(const String&);
77
78 KURL data() const;
79 void setData(const String&);
80
81 bool declare() const;
82 void setDeclare(bool);
83
84 int hspace() const;
85 void setHspace(int);
86
87 String standby() const;
88 void setStandby(const String&);
89
90 String type() const;
91 void setType(const String&);
92
93 String useMap() const;
94 void setUseMap(const String&);
95
96 int vspace() const;
97 void setVspace(int);
98
99 bool isDocNamedItem() const { return m_docNamedItem; }
100
101 const String& classId() const { return m_classId; }
102
103 bool containsJavaApplet() const;
104
105 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
106
107 private:
108 void updateDocNamedItem();
109
110 AtomicString m_id;
111 String m_classId;
112 bool m_docNamedItem : 1;
113 bool m_needWidgetUpdate : 1;
114 bool m_useFallbackContent : 1;
115 };
116
117 }
118
119 #endif