HTMLTableElement.h [plain text]
#ifndef HTMLTableElement_h
#define HTMLTableElement_h
#include "HTMLElement.h"
namespace WebCore {
class HTMLCollection;
class HTMLTableCaptionElement;
class HTMLTableSectionElement;
class HTMLTableElement : public HTMLElement {
public:
static PassRefPtr<HTMLTableElement> create(Document*);
static PassRefPtr<HTMLTableElement> create(const QualifiedName&, Document*);
HTMLTableCaptionElement* caption() const;
void setCaption(PassRefPtr<HTMLTableCaptionElement>, ExceptionCode&);
HTMLTableSectionElement* tHead() const;
void setTHead(PassRefPtr<HTMLTableSectionElement>, ExceptionCode&);
HTMLTableSectionElement* tFoot() const;
void setTFoot(PassRefPtr<HTMLTableSectionElement>, ExceptionCode&);
PassRefPtr<HTMLElement> createTHead();
void deleteTHead();
PassRefPtr<HTMLElement> createTFoot();
void deleteTFoot();
PassRefPtr<HTMLElement> createCaption();
void deleteCaption();
PassRefPtr<HTMLElement> insertRow(int index, ExceptionCode&);
void deleteRow(int index, ExceptionCode&);
PassRefPtr<HTMLCollection> rows();
PassRefPtr<HTMLCollection> tBodies();
String rules() const;
String summary() const;
virtual void attach();
void addSharedCellDecls(Vector<CSSMutableStyleDeclaration*>&);
void addSharedGroupDecls(bool rows, Vector<CSSMutableStyleDeclaration*>&);
private:
HTMLTableElement(const QualifiedName&, Document*);
virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const;
virtual void parseMappedAttribute(Attribute*);
virtual bool isURLAttribute(Attribute*) const;
virtual bool canHaveAdditionalAttributeStyleDecls() const { return true; }
virtual void additionalAttributeStyleDecls(Vector<CSSMutableStyleDeclaration*>&);
virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
void addSharedCellBordersDecl(Vector<CSSMutableStyleDeclaration*>&);
void addSharedCellPaddingDecl(Vector<CSSMutableStyleDeclaration*>&);
enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules, AllRules };
enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOnly, SolidBordersRowsOnly };
CellBorders cellBorders() const;
HTMLTableSectionElement* lastBody() const;
bool m_borderAttr; bool m_borderColorAttr; bool m_frameAttr; TableRules m_rulesAttr;
unsigned short m_padding;
RefPtr<CSSMappedAttributeDeclaration> m_paddingDecl;
};
}
#endif