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 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., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
24
#ifndef HTMLAnchorElement_h
25
#define HTMLAnchorElement_h
27
#include "HTMLElement.h"
33
class HTMLAnchorElement : public HTMLElement {
35
HTMLAnchorElement(Document*);
36
HTMLAnchorElement(const QualifiedName&, Document*);
39
virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
40
virtual int tagPriority() const { return 1; }
42
virtual bool supportsFocus() const;
43
virtual bool isMouseFocusable() const;
44
virtual bool isKeyboardFocusable(KeyboardEvent*) const;
45
virtual bool isFocusable() const;
46
virtual void parseMappedAttribute(MappedAttribute*);
47
virtual void defaultEventHandler(Event*);
48
virtual void setActive(bool active = true, bool pause = false);
49
virtual void accessKeyAction(bool fullAction);
50
virtual bool isURLAttribute(Attribute*) const;
52
String accessKey() const;
53
void setAccessKey(const String&);
55
String charset() const;
56
void setCharset(const String&);
58
String coords() const;
59
void setCoords(const String&);
62
void setHref(const String&);
64
String hreflang() const;
65
void setHreflang(const String&);
68
void setName(const String&);
71
void setRel(const String&);
74
void setRev(const String&);
77
void setShape(const String&);
79
void setTabIndex(int);
81
virtual String target() const;
82
void setTarget(const String&);
85
void setType(const String&);
89
String hostname() const;
90
String pathname() const;
92
String protocol() const;
93
String search() const;
96
String toString() const;
98
bool isLiveLink() const;
101
Element* m_rootEditableElementForSelectionOnMouseDown;
102
bool m_wasShiftKeyDownOnMouseDown;
105
} // namespace WebCore
107
#endif // HTMLAnchorElement_h