HTMLTableElement.h [plain text]
#ifndef HTMLTableElement_h
#define HTMLTableElement_h
#include "HTMLElement.h"
namespace WebCore {
class HTMLCollection;
class HTMLTableCaptionElement;
class HTMLTableRowsCollection;
class HTMLTableSectionElement;
class HTMLTableElement final : 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> createTBody();
PassRefPtr<HTMLElement> createCaption();
void deleteCaption();
PassRefPtr<HTMLElement> insertRow(ExceptionCode& ec) { return insertRow(-1, ec); }
PassRefPtr<HTMLElement> insertRow(int index, ExceptionCode&);
void deleteRow(int index, ExceptionCode&);
PassRefPtr<HTMLCollection> rows();
PassRefPtr<HTMLCollection> tBodies();
String rules() const;
String summary() const;
const StyleProperties* additionalCellStyle();
const StyleProperties* additionalGroupStyle(bool rows);
private:
HTMLTableElement(const QualifiedName&, Document&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual bool isPresentationAttribute(const QualifiedName&) const override;
virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override;
virtual bool isURLAttribute(const Attribute&) const override;
virtual const StyleProperties* additionalPresentationAttributeStyle() override;
virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override;
enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules, AllRules };
enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOnly, SolidBordersRowsOnly };
CellBorders cellBorders() const;
PassRefPtr<StyleProperties> createSharedCellStyle();
HTMLTableSectionElement* lastBody() const;
bool m_borderAttr; bool m_borderColorAttr; bool m_frameAttr; TableRules m_rulesAttr;
unsigned short m_padding;
RefPtr<StyleProperties> m_sharedCellStyle;
};
NODE_TYPE_CASTS(HTMLTableElement)
}
#endif