]> git.saurik.com Git - iphone-api.git/blob - WebCore/HTMLAnchorElement.h
Add support for new WinterBoard Settings features.
[iphone-api.git] / WebCore / HTMLAnchorElement.h
1 /*
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.
6 *
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.
11 *
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.
16 *
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.
21 *
22 */
23
24 #ifndef HTMLAnchorElement_h
25 #define HTMLAnchorElement_h
26
27 #include "HTMLElement.h"
28
29 namespace WebCore {
30
31 class HTMLAnchorElement : public HTMLElement {
32 public:
33 HTMLAnchorElement(Document*);
34 HTMLAnchorElement(const QualifiedName&, Document*);
35 ~HTMLAnchorElement();
36
37 virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
38 virtual int tagPriority() const { return 1; }
39
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;
49
50 virtual bool canStartSelection() const;
51
52 const AtomicString& accessKey() const;
53 void setAccessKey(const AtomicString&);
54
55 const AtomicString& charset() const;
56 void setCharset(const AtomicString&);
57
58 const AtomicString& coords() const;
59 void setCoords(const AtomicString&);
60
61 KURL href() const;
62 void setHref(const AtomicString&);
63
64 const AtomicString& hreflang() const;
65 void setHreflang(const AtomicString&);
66
67 const AtomicString& name() const;
68 void setName(const AtomicString&);
69
70 const AtomicString& rel() const;
71 void setRel(const AtomicString&);
72
73 const AtomicString& rev() const;
74 void setRev(const AtomicString&);
75
76 const AtomicString& shape() const;
77 void setShape(const AtomicString&);
78
79 virtual short tabIndex() const;
80
81 virtual String target() const;
82 void setTarget(const AtomicString&);
83
84 const AtomicString& type() const;
85 void setType(const AtomicString&);
86
87 String hash() const;
88 String host() const;
89 String hostname() const;
90 String pathname() const;
91 String port() const;
92 String protocol() const;
93 String search() const;
94 String text() const;
95
96 String toString() const;
97
98 bool isLiveLink() const;
99 virtual bool willRespondToMouseClickEvents();
100
101 private:
102 Element* m_rootEditableElementForSelectionOnMouseDown;
103 bool m_wasShiftKeyDownOnMouseDown;
104 };
105
106 } // namespace WebCore
107
108 #endif // HTMLAnchorElement_h