]>
Commit | Line | Data |
---|---|---|
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 HTMLTableColElement_h | |
29 | #define HTMLTableColElement_h | |
30 | ||
31 | #include "HTMLTablePartElement.h" | |
32 | ||
33 | namespace WebCore { | |
34 | ||
35 | class HTMLTableElement; | |
36 | ||
37 | class HTMLTableColElement : public HTMLTablePartElement | |
38 | { | |
39 | public: | |
40 | HTMLTableColElement(const QualifiedName& tagName, Document*); | |
41 | ||
42 | virtual HTMLTagStatus endTagRequirement() const; | |
43 | virtual int tagPriority() const; | |
44 | virtual bool checkDTD(const Node*); | |
45 | ||
46 | // overrides | |
47 | virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const; | |
48 | virtual void parseMappedAttribute(MappedAttribute*); | |
49 | virtual bool canHaveAdditionalAttributeStyleDecls() const { return true; } | |
50 | virtual void additionalAttributeStyleDecls(Vector<CSSMutableStyleDeclaration*>&); | |
51 | ||
52 | int span() const { return _span; } | |
53 | ||
54 | String align() const; | |
55 | void setAlign(const String&); | |
56 | ||
57 | String ch() const; | |
58 | void setCh(const String&); | |
59 | ||
60 | String chOff() const; | |
61 | void setChOff(const String&); | |
62 | ||
63 | void setSpan(int); | |
64 | ||
65 | String vAlign() const; | |
66 | void setVAlign(const String&); | |
67 | ||
68 | String width() const; | |
69 | void setWidth(const String&); | |
70 | ||
71 | protected: | |
72 | int _span; | |
73 | }; | |
74 | ||
75 | } //namespace | |
76 | ||
77 | #endif |