]> git.saurik.com Git - iphone-api.git/blame - WebCore/HTMLTableCellElement.h
Add support for new WinterBoard Settings features.
[iphone-api.git] / WebCore / HTMLTableCellElement.h
CommitLineData
a90939db
JF
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
5 * (C) 1997 Torben Weis (weis@kde.org)
6 * (C) 1998 Waldo Bastian (bastian@kde.org)
7 * (C) 1999 Lars Knoll (knoll@kde.org)
8 * (C) 1999 Antti Koivisto (koivisto@kde.org)
9 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
20 *
21 * You should have received a copy of the GNU Library General Public License
22 * along with this library; see the file COPYING.LIB. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA.
25 *
26 */
27
28#ifndef HTMLTableCellElement_h
29#define HTMLTableCellElement_h
30
31#include "HTMLTablePartElement.h"
32
33namespace WebCore {
34
35class HTMLTableCellElement : public HTMLTablePartElement
36{
37public:
38 HTMLTableCellElement(const QualifiedName&, Document*);
39 ~HTMLTableCellElement();
40
41 virtual HTMLTagStatus endTagRequirement() const { return TagStatusOptional; }
42 virtual int tagPriority() const { return 6; }
43
44 int cellIndex() const;
45
46 int col() const { return _col; }
47 void setCol(int col) { _col = col; }
48 int row() const { return _row; }
49 void setRow(int r) { _row = r; }
50
51 int colSpan() const { return cSpan; }
52 int rowSpan() const { return rSpan; }
53
54 virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
55 virtual void parseMappedAttribute(MappedAttribute*);
56
57 // used by table cells to share style decls created by the enclosing table.
58 virtual bool canHaveAdditionalAttributeStyleDecls() const { return true; }
59 virtual void additionalAttributeStyleDecls(Vector<CSSMutableStyleDeclaration*>&);
60
61 virtual bool isURLAttribute(Attribute*) const;
62
63 void setCellIndex(int);
64
65 String abbr() const;
66 void setAbbr(const String&);
67
68 String align() const;
69 void setAlign(const String&);
70
71 String axis() const;
72 void setAxis(const String&);
73
74 String bgColor() const;
75 void setBgColor(const String&);
76
77 String ch() const;
78 void setCh(const String&);
79
80 String chOff() const;
81 void setChOff(const String&);
82
83 void setColSpan(int);
84
85 String headers() const;
86 void setHeaders(const String&);
87
88 String height() const;
89 void setHeight(const String&);
90
91 bool noWrap() const;
92 void setNoWrap(bool);
93
94 void setRowSpan(int);
95
96 String scope() const;
97 void setScope(const String&);
98
99 String vAlign() const;
100 void setVAlign(const String&);
101
102 String width() const;
103 void setWidth(const String&);
104
105 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
106
107protected:
108 int _row;
109 int _col;
110 int rSpan;
111 int cSpan;
112 int rowHeight;
113 bool m_solid;
114};
115
116} //namespace
117
118#endif