2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
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.
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.
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.
24 #ifndef HTMLFrameElementBase_h
25 #define HTMLFrameElementBase_h
27 #include "HTMLFrameOwnerElement.h"
28 #include "ScrollTypes.h"
32 class HTMLFrameElementBase
: public HTMLFrameOwnerElement
{
34 virtual void parseMappedAttribute(MappedAttribute
*);
36 virtual void insertedIntoDocument();
37 virtual void removedFromDocument();
39 virtual void attach();
40 virtual bool canLazyAttach() { return false; }
42 KURL
location() const;
43 void setLocation(const String
&);
45 virtual bool isFocusable() const;
46 virtual void setFocus(bool);
48 virtual bool isURLAttribute(Attribute
*) const;
50 virtual ScrollbarMode
scrollingMode() const { return m_scrolling
; }
52 int getMarginWidth() const { return m_marginWidth
; }
53 int getMarginHeight() const { return m_marginHeight
; }
55 String
frameBorder() const;
56 void setFrameBorder(const String
&);
58 String
longDesc() const;
59 void setLongDesc(const String
&);
61 String
marginHeight() const;
62 void setMarginHeight(const String
&);
64 String
marginWidth() const;
65 void setMarginWidth(const String
&);
68 void setName(const String
&);
70 bool noResize() const { return m_noResize
; }
71 void setNoResize(bool);
73 String
scrolling() const;
74 void setScrolling(const String
&);
77 void setSrc(const String
&);
82 bool viewSourceMode() const { return m_viewSource
; }
85 HTMLFrameElementBase(const QualifiedName
&, Document
*, bool createdByParser
);
87 bool isURLAllowed(const AtomicString
&) const;
88 void setNameAndOpenURL();
91 static void setNameAndOpenURLCallback(Node
*);
94 AtomicString m_frameName
;
96 ScrollbarMode m_scrolling
;
104 bool m_shouldOpenURLAfterAttach
;
107 } // namespace WebCore
109 #endif // HTMLFrameElementBase_h