OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const StylePropertySet* additionalCellStyle(); | 68 const StylePropertySet* additionalCellStyle(); |
69 const StylePropertySet* additionalGroupStyle(bool rows); | 69 const StylePropertySet* additionalGroupStyle(bool rows); |
70 | 70 |
71 private: | 71 private: |
72 explicit HTMLTableElement(Document&); | 72 explicit HTMLTableElement(Document&); |
73 | 73 |
74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
| 78 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE; |
78 | 79 |
79 // Used to obtain either a solid or outset border decl and to deal with the
frame and rules attributes. | 80 // Used to obtain either a solid or outset border decl and to deal with the
frame and rules attributes. |
80 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR
IDE; | 81 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR
IDE; |
81 | 82 |
82 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules,
AllRules }; | 83 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules,
AllRules }; |
83 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn
ly, SolidBordersRowsOnly }; | 84 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn
ly, SolidBordersRowsOnly }; |
84 | 85 |
85 CellBorders cellBorders() const; | 86 CellBorders cellBorders() const; |
86 | 87 |
87 PassRefPtr<StylePropertySet> createSharedCellStyle(); | 88 PassRefPtr<StylePropertySet> createSharedCellStyle(); |
88 | 89 |
89 HTMLTableSectionElement* lastBody() const; | 90 HTMLTableSectionElement* lastBody() const; |
90 | 91 |
91 void setNeedsTableStyleRecalc() const; | 92 void setNeedsTableStyleRecalc() const; |
92 | 93 |
93 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. | 94 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. |
94 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. | 95 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. |
95 bool m_frameAttr; // Implies a thin border width if no border is s
et and then a certain set of solid/hidden borders based off the value. | 96 bool m_frameAttr; // Implies a thin border width if no border is s
et and then a certain set of solid/hidden borders based off the value. |
96 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor
der model, and all borders on the table becoming set to hidden (if frame/border | 97 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor
der model, and all borders on the table becoming set to hidden (if frame/border |
97 // are present, to none otherwise). | 98 // are present, to none otherwise). |
98 | 99 |
99 unsigned short m_padding; | 100 unsigned short m_padding; |
100 RefPtr<StylePropertySet> m_sharedCellStyle; | 101 RefPtr<StylePropertySet> m_sharedCellStyle; |
101 }; | 102 }; |
102 | 103 |
103 } //namespace | 104 } //namespace |
104 | 105 |
105 #endif | 106 #endif |
OLD | NEW |