]>
git.saurik.com Git - iphone-api.git/blob - WebCore/HTMLObjectElement.h
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.
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.
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.
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.
23 #ifndef HTMLObjectElement_h
24 #define HTMLObjectElement_h
26 #include "HTMLPlugInImageElement.h"
32 class HTMLObjectElement
: public HTMLPlugInImageElement
{
34 HTMLObjectElement(const QualifiedName
&, Document
*, bool createdByParser
);
37 virtual int tagPriority() const { return 5; }
39 virtual void parseMappedAttribute(MappedAttribute
*);
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();
50 virtual void recalcStyle(StyleChange
);
51 virtual void childrenChanged(bool changedByParser
= false, Node
* beforeChange
= 0, Node
* afterChange
= 0, int childCountDelta
= 0);
53 virtual bool isURLAttribute(Attribute
*) const;
54 virtual const QualifiedName
& imageSourceAttributeName() const;
56 virtual void updateWidget();
57 void setNeedWidgetUpdate(bool needWidgetUpdate
) { m_needWidgetUpdate
= needWidgetUpdate
; }
59 void renderFallbackContent();
61 virtual RenderWidget
* renderWidgetForJSBindings() const;
63 String
archive() const;
64 void setArchive(const String
&);
66 String
border() const;
67 void setBorder(const String
&);
70 void setCode(const String
&);
72 String
codeBase() const;
73 void setCodeBase(const String
&);
75 String
codeType() const;
76 void setCodeType(const String
&);
79 void setData(const String
&);
82 void setDeclare(bool);
87 String
standby() const;
88 void setStandby(const String
&);
91 void setType(const String
&);
93 String
useMap() const;
94 void setUseMap(const String
&);
99 bool isDocNamedItem() const { return m_docNamedItem
; }
101 const String
& classId() const { return m_classId
; }
103 bool containsJavaApplet() const;
105 virtual void addSubresourceAttributeURLs(ListHashSet
<KURL
>&) const;
108 void updateDocNamedItem();
112 bool m_docNamedItem
: 1;
113 bool m_needWidgetUpdate
: 1;
114 bool m_useFallbackContent
: 1;