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) 2007, 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 HTMLAnchorElement_h
25 #define HTMLAnchorElement_h
27 #include "HTMLElement.h"
31 class HTMLAnchorElement
: public HTMLElement
{
33 HTMLAnchorElement(Document
*);
34 HTMLAnchorElement(const QualifiedName
&, Document
*);
37 virtual HTMLTagStatus
endTagRequirement() const { return TagStatusRequired
; }
38 virtual int tagPriority() const { return 1; }
40 virtual bool supportsFocus() const;
41 virtual bool isMouseFocusable() const;
42 virtual bool isKeyboardFocusable(KeyboardEvent
*) const;
43 virtual bool isFocusable() const;
44 virtual void parseMappedAttribute(MappedAttribute
*);
45 virtual void defaultEventHandler(Event
*);
46 virtual void setActive(bool active
= true, bool pause
= false);
47 virtual void accessKeyAction(bool fullAction
);
48 virtual bool isURLAttribute(Attribute
*) const;
50 virtual bool canStartSelection() const;
52 const AtomicString
& accessKey() const;
53 void setAccessKey(const AtomicString
&);
55 const AtomicString
& charset() const;
56 void setCharset(const AtomicString
&);
58 const AtomicString
& coords() const;
59 void setCoords(const AtomicString
&);
62 void setHref(const AtomicString
&);
64 const AtomicString
& hreflang() const;
65 void setHreflang(const AtomicString
&);
67 const AtomicString
& name() const;
68 void setName(const AtomicString
&);
70 const AtomicString
& rel() const;
71 void setRel(const AtomicString
&);
73 const AtomicString
& rev() const;
74 void setRev(const AtomicString
&);
76 const AtomicString
& shape() const;
77 void setShape(const AtomicString
&);
79 virtual short tabIndex() const;
81 virtual String
target() const;
82 void setTarget(const AtomicString
&);
84 const AtomicString
& type() const;
85 void setType(const AtomicString
&);
89 String
hostname() const;
90 String
pathname() const;
92 String
protocol() const;
93 String
search() const;
96 String
toString() const;
98 bool isLiveLink() const;
99 virtual bool willRespondToMouseClickEvents();
102 Element
* m_rootEditableElementForSelectionOnMouseDown
;
103 bool m_wasShiftKeyDownOnMouseDown
;
106 } // namespace WebCore
108 #endif // HTMLAnchorElement_h