html_table.h
/*
* This file is part of the DOM implementation for KDE.
*
* (C) 1999 Lars Knoll (knoll@kde.org)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
* This file includes excerpts from the Document Object Model (DOM)
* Level 1 Specification (Recommendation)
* http://www.w3.org/TR/REC-DOM-Level-1/
* Copyright © World Wide Web Consortium , (Massachusetts Institute of
* Technology , Institut National de Recherche en Informatique et en
* Automatique , Keio University ). All Rights Reserved.
*
*/
#ifndef HTML_TABLE_H
#define HTML_TABLE_H
// --------------------------------------------------------------------------
#include <dom/html_element.h>
#include <kdelibs_export.h>
namespace DOM {
class HTMLTableCaptionElementImpl;
class DOMString;
class KHTML_EXPORT HTMLTableCaptionElement : public HTMLElement
{
friend class HTMLTableElement;
public:
HTMLTableCaptionElement();
HTMLTableCaptionElement(const HTMLTableCaptionElement &other);
HTMLTableCaptionElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTableCaptionElement(HTMLTableCaptionElementImpl *impl);
public:
HTMLTableCaptionElement & operator = (const HTMLTableCaptionElement &other);
HTMLTableCaptionElement & operator = (const Node &other);
~HTMLTableCaptionElement();
DOMString align() const;
void setAlign( const DOMString & );
};
// --------------------------------------------------------------------------
class HTMLTableCellElementImpl;
class KHTML_EXPORT HTMLTableCellElement : public HTMLElement
{
friend class HTMLTableElement;
public:
HTMLTableCellElement();
HTMLTableCellElement(const HTMLTableCellElement &other);
HTMLTableCellElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTableCellElement(HTMLTableCellElementImpl *impl);
public:
HTMLTableCellElement & operator = (const HTMLTableCellElement &other);
HTMLTableCellElement & operator = (const Node &other);
~HTMLTableCellElement();
long cellIndex() const;
void setCellIndex( long );
DOMString abbr() const;
void setAbbr( const DOMString & );
DOMString align() const;
void setAlign( const DOMString & );
DOMString axis() const;
void setAxis( const DOMString & );
DOMString bgColor() const;
void setBgColor( const DOMString & );
DOMString ch() const;
void setCh( const DOMString & );
DOMString chOff() const;
void setChOff( const DOMString & );
long colSpan() const;
void setColSpan( long );
DOMString headers() const;
void setHeaders( const DOMString & );
DOMString height() const;
void setHeight( const DOMString & );
bool noWrap() const;
void setNoWrap( bool );
long rowSpan() const;
void setRowSpan( long );
DOMString scope() const;
void setScope( const DOMString & );
DOMString vAlign() const;
void setVAlign( const DOMString & );
DOMString width() const;
void setWidth( const DOMString & );
};
// --------------------------------------------------------------------------
class HTMLTableColElementImpl;
class KHTML_EXPORT HTMLTableColElement : public HTMLElement
{
friend class HTMLTableElement;
public:
HTMLTableColElement();
HTMLTableColElement(const HTMLTableColElement &other);
HTMLTableColElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTableColElement(HTMLTableColElementImpl *impl);
public:
HTMLTableColElement & operator = (const HTMLTableColElement &other);
HTMLTableColElement & operator = (const Node &other);
~HTMLTableColElement();
DOMString align() const;
void setAlign( const DOMString & );
DOMString ch() const;
void setCh( const DOMString & );
DOMString chOff() const;
void setChOff( const DOMString & );
long span() const;
void setSpan( long );
DOMString vAlign() const;
void setVAlign( const DOMString & );
DOMString width() const;
void setWidth( const DOMString & );
};
// --------------------------------------------------------------------------
class HTMLTableElementImpl;
class HTMLCollection;
class HTMLTableSectionElement;
class HTMLTableCaptionElement;
class HTMLElement;
class DOMString;
class KHTML_EXPORT HTMLTableElement : public HTMLElement
{
public:
HTMLTableElement();
HTMLTableElement(const HTMLTableElement &other);
HTMLTableElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTableElement(HTMLTableElementImpl *impl);
public:
HTMLTableElement & operator = (const HTMLTableElement &other);
HTMLTableElement & operator = (const Node &other);
~HTMLTableElement();
HTMLTableCaptionElement caption() const;
void setCaption( const HTMLTableCaptionElement & );
HTMLTableSectionElement tHead() const;
void setTHead( const HTMLTableSectionElement & );
HTMLTableSectionElement tFoot() const;
void setTFoot( const HTMLTableSectionElement & );
HTMLCollection rows() const;
HTMLCollection tBodies() const;
DOMString align() const;
void setAlign( const DOMString & );
DOMString bgColor() const;
void setBgColor( const DOMString & );
DOMString border() const;
void setBorder( const DOMString & );
DOMString cellPadding() const;
void setCellPadding( const DOMString & );
DOMString cellSpacing() const;
void setCellSpacing( const DOMString & );
DOMString frame() const;
void setFrame( const DOMString & );
DOMString rules() const;
void setRules( const DOMString & );
DOMString summary() const;
void setSummary( const DOMString & );
DOMString width() const;
void setWidth( const DOMString & );
HTMLElement createTHead ( );
void deleteTHead ( );
HTMLElement createTFoot ( );
void deleteTFoot ( );
HTMLElement createCaption ( );
void deleteCaption ( );
HTMLElement insertRow ( long index );
void deleteRow ( long index );
};
// --------------------------------------------------------------------------
class HTMLTableRowElementImpl;
class HTMLCollection;
class HTMLElement;
class DOMString;
class KHTML_EXPORT HTMLTableRowElement : public HTMLElement
{
friend class HTMLTableElement;
public:
HTMLTableRowElement();
HTMLTableRowElement(const HTMLTableRowElement &other);
HTMLTableRowElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTableRowElement(HTMLTableRowElementImpl *impl);
public:
HTMLTableRowElement & operator = (const HTMLTableRowElement &other);
HTMLTableRowElement & operator = (const Node &other);
~HTMLTableRowElement();
long rowIndex() const;
void setRowIndex( long );
long sectionRowIndex() const;
void setSectionRowIndex( long );
HTMLCollection cells() const;
void setCells( const HTMLCollection & );
DOMString align() const;
void setAlign( const DOMString & );
DOMString bgColor() const;
void setBgColor( const DOMString & );
DOMString ch() const;
void setCh( const DOMString & );
DOMString chOff() const;
void setChOff( const DOMString & );
DOMString vAlign() const;
void setVAlign( const DOMString & );
HTMLElement insertCell ( long index );
void deleteCell ( long index );
};
// --------------------------------------------------------------------------
class HTMLTableSectionElementImpl;
class HTMLCollection;
class HTMLElement;
class DOMString;
class KHTML_EXPORT HTMLTableSectionElement : public HTMLElement
{
friend class HTMLTableElement;
public:
HTMLTableSectionElement();
HTMLTableSectionElement(const HTMLTableSectionElement &other);
HTMLTableSectionElement(const Node &other) : HTMLElement()
{(*this)=other;}
protected:
HTMLTableSectionElement(HTMLTableSectionElementImpl *impl);
public:
HTMLTableSectionElement & operator = (const HTMLTableSectionElement &other);
HTMLTableSectionElement & operator = (const Node &other);
~HTMLTableSectionElement();
DOMString align() const;
void setAlign( const DOMString & );
DOMString ch() const;
void setCh( const DOMString & );
DOMString chOff() const;
void setChOff( const DOMString & );
DOMString vAlign() const;
void setVAlign( const DOMString & );
HTMLCollection rows() const;
HTMLElement insertRow ( long index );
void deleteRow ( long index );
};
} //namespace
#endif
DOM::Node
The Node interface is the primary datatype for the entire Document Object Model.
Definition: dom_node.h:274
DOM::HTMLTableCaptionElement
Table caption See the CAPTION element definition in HTML 4.0.
Definition: html_table.h:47
DOM::HTMLTableSectionElement
The THEAD , TFOOT , and TBODY elements.
Definition: html_table.h:895
DOM::HTMLTableCellElement
The object used to represent the TH and TD elements.
Definition: html_table.h:91
DOM::HTMLTableColElement
Regroups the COL and COLGROUP elements.
Definition: html_table.h:322
DOM::HTMLCollection
An HTMLCollection is a list of nodes.
Definition: html_misc.h:126
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::HTMLTableRowElement
A row in a table.
Definition: html_table.h:725
DOM::HTMLTableElement
The create* and delete* methods on the table allow authors to construct and modify tables...
Definition: html_table.h:441
DOM::HTMLElement
All HTML element interfaces derive from this class.
Definition: html_element.h:69

KDE Home | KDE Accessibility Home | Description of Access Keys