~ubuntu-branches/ubuntu/maverick/webkit/maverick

« back to all changes in this revision

Viewing changes to WebCore/html/HTMLAnchorElement.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2007-08-19 15:54:12 UTC
  • Revision ID: james.westby@ubuntu.com-20070819155412-uxxg1h9plpghmtbi
Tags: upstream-0~svn25144
ImportĀ upstreamĀ versionĀ 0~svn25144

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 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., 59 Temple Place - Suite 330,
 
20
 * Boston, MA 02111-1307, USA.
 
21
 *
 
22
 */
 
23
 
 
24
#ifndef HTMLAnchorElement_h
 
25
#define HTMLAnchorElement_h
 
26
 
 
27
#include "HTMLElement.h"
 
28
 
 
29
namespace WebCore {
 
30
 
 
31
class String;
 
32
 
 
33
class HTMLAnchorElement : public HTMLElement {
 
34
public:
 
35
    HTMLAnchorElement(Document*);
 
36
    HTMLAnchorElement(const QualifiedName&, Document*);
 
37
    ~HTMLAnchorElement();
 
38
 
 
39
    virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; }
 
40
    virtual int tagPriority() const { return 1; }
 
41
 
 
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;
 
51
 
 
52
    String accessKey() const;
 
53
    void setAccessKey(const String&);
 
54
 
 
55
    String charset() const;
 
56
    void setCharset(const String&);
 
57
 
 
58
    String coords() const;
 
59
    void setCoords(const String&);
 
60
 
 
61
    String href() const;
 
62
    void setHref(const String&);
 
63
 
 
64
    String hreflang() const;
 
65
    void setHreflang(const String&);
 
66
 
 
67
    String name() const;
 
68
    void setName(const String&);
 
69
 
 
70
    String rel() const;
 
71
    void setRel(const String&);
 
72
 
 
73
    String rev() const;
 
74
    void setRev(const String&);
 
75
 
 
76
    String shape() const;
 
77
    void setShape(const String&);
 
78
 
 
79
    void setTabIndex(int);
 
80
 
 
81
    virtual String target() const;
 
82
    void setTarget(const String&);
 
83
 
 
84
    String type() const;
 
85
    void setType(const String&);
 
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
 
 
100
private:
 
101
    Element* m_rootEditableElementForSelectionOnMouseDown;
 
102
    bool m_wasShiftKeyDownOnMouseDown;
 
103
};
 
104
 
 
105
} // namespace WebCore
 
106
 
 
107
#endif // HTMLAnchorElement_h