28 #include <html/html_miscimpl.h>
29 #include <html/html_tableimpl.h>
64 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
69 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
112 return ((HTMLTableCellElementImpl *)
impl)->cellIndex();
123 return ((ElementImpl *)
impl)->getAttribute(ATTR_ABBR);
128 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ABBR, value);
134 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
139 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
145 return ((ElementImpl *)
impl)->getAttribute(ATTR_AXIS);
150 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_AXIS, value);
156 return ((ElementImpl *)
impl)->getAttribute(ATTR_BGCOLOR);
161 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_BGCOLOR, value);
167 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAR);
172 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAR, value);
178 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAROFF);
183 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAROFF, value);
189 return ((ElementImpl *)
impl)->getAttribute(ATTR_COLSPAN).toInt();
196 ((ElementImpl *)
impl)->setAttribute(ATTR_COLSPAN,value);
203 return ((ElementImpl *)
impl)->getAttribute(ATTR_HEADERS);
208 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_HEADERS, value);
214 return ((ElementImpl *)
impl)->getAttribute(ATTR_HEIGHT);
219 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_HEIGHT, value);
224 if(!
impl)
return false;
225 return !((ElementImpl *)
impl)->getAttribute(ATTR_NOWRAP).isNull();
231 ((ElementImpl *)
impl)->setAttribute(ATTR_NOWRAP, _noWrap ?
"" : 0);
237 return ((ElementImpl *)
impl)->getAttribute(ATTR_ROWSPAN).toInt();
244 ((ElementImpl *)
impl)->setAttribute(ATTR_ROWSPAN,value);
251 return ((ElementImpl *)
impl)->getAttribute(ATTR_SCOPE);
256 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_SCOPE, value);
262 return ((ElementImpl *)
impl)->getAttribute(ATTR_VALIGN);
267 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_VALIGN, value);
273 return ((ElementImpl *)
impl)->getAttribute(ATTR_WIDTH);
278 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_WIDTH, value);
321 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
326 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
332 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAR);
337 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAR, value);
343 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAROFF);
348 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAROFF, value);
354 return ((ElementImpl *)
impl)->getAttribute(ATTR_SPAN).toInt();
361 ((ElementImpl *)
impl)->setAttribute(ATTR_SPAN,value);
368 return ((ElementImpl *)
impl)->getAttribute(ATTR_VALIGN);
373 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_VALIGN, value);
379 return ((ElementImpl *)
impl)->getAttribute(ATTR_WIDTH);
384 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_WIDTH, value);
420 return ((HTMLTableElementImpl *)
impl)->caption();
426 ((HTMLTableElementImpl *)
impl)
427 ->setCaption( ((HTMLTableCaptionElementImpl *)_caption.
impl) );
433 return ((HTMLTableElementImpl *)
impl)->tHead();
440 ((HTMLTableElementImpl *)
impl)
441 ->setTHead( ((HTMLTableSectionElementImpl *)_tHead.
impl) );
447 return ((HTMLTableElementImpl *)
impl)->tFoot();
454 ((HTMLTableElementImpl *)
impl)
455 ->setTFoot( ((HTMLTableSectionElementImpl *)_tFoot.
impl) );
473 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
478 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
484 return ((ElementImpl *)
impl)->getAttribute(ATTR_BGCOLOR);
489 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_BGCOLOR, value);
495 return ((ElementImpl *)
impl)->getAttribute(ATTR_BORDER);
500 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_BORDER, value);
506 return ((ElementImpl *)
impl)->getAttribute(ATTR_CELLPADDING);
511 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CELLPADDING, value);
517 return ((ElementImpl *)
impl)->getAttribute(ATTR_CELLSPACING);
522 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CELLSPACING, value);
528 return ((ElementImpl *)
impl)->getAttribute(ATTR_FRAME);
533 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_FRAME, value);
539 return ((ElementImpl *)
impl)->getAttribute(ATTR_RULES);
544 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_RULES, value);
550 return ((ElementImpl *)
impl)->getAttribute(ATTR_SUMMARY);
555 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_SUMMARY, value);
561 return ((ElementImpl *)
impl)->getAttribute(ATTR_WIDTH);
566 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_WIDTH, value);
572 return ((HTMLTableElementImpl *)
impl)->createTHead( );
578 ((HTMLTableElementImpl *)
impl)->deleteTHead( );
584 return ((HTMLTableElementImpl *)
impl)->createTFoot( );
590 ((HTMLTableElementImpl *)
impl)->deleteTFoot( );
596 return ((HTMLTableElementImpl *)
impl)->createCaption( );
602 ((HTMLTableElementImpl *)
impl)->deleteCaption( );
608 int exceptioncode = 0;
609 HTMLElementImpl* ret = ((HTMLTableElementImpl *)
impl)->insertRow( index, exceptioncode );
617 int exceptioncode = 0;
619 ((HTMLTableElementImpl *)
impl)->deleteRow( index, exceptioncode );
657 return ((HTMLTableRowElementImpl *)
impl)->rowIndex();
668 return ((HTMLTableRowElementImpl *)
impl)->sectionRowIndex();
690 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
695 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
701 return ((ElementImpl *)
impl)->getAttribute(ATTR_BGCOLOR);
706 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_BGCOLOR, value);
712 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAR);
717 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAR, value);
723 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAROFF);
728 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAROFF, value);
734 return ((ElementImpl *)
impl)->getAttribute(ATTR_VALIGN);
739 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_VALIGN, value);
745 int exceptioncode = 0;
746 HTMLElementImpl* ret = ((HTMLTableRowElementImpl *)
impl)->insertCell( index, exceptioncode );
754 int exceptioncode = 0;
756 ((HTMLTableRowElementImpl *)
impl)->deleteCell( index, exceptioncode );
802 return ((ElementImpl *)
impl)->getAttribute(ATTR_ALIGN);
807 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_ALIGN, value);
813 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAR);
818 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAR, value);
824 return ((ElementImpl *)
impl)->getAttribute(ATTR_CHAROFF);
829 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_CHAROFF, value);
835 return ((ElementImpl *)
impl)->getAttribute(ATTR_VALIGN);
840 if(
impl) ((ElementImpl *)
impl)->setAttribute(ATTR_VALIGN, value);
852 int exceptioncode = 0;
853 HTMLElementImpl* ret = ((HTMLTableSectionElementImpl *)
impl)->insertRow( index, exceptioncode );
861 int exceptioncode = 0;
863 ((HTMLTableSectionElementImpl *)
impl)->deleteRow( index, exceptioncode );
void setCells(const HTMLCollection &)
see cells
HTMLCollection tBodies() const
Returns a collection of the table bodies (including implicit ones).
void setBgColor(const DOMString &)
see bgColor
long cellIndex() const
The index of this cell in the row.
void setChOff(const DOMString &)
see chOff
void setCh(const DOMString &)
see ch
void setCellSpacing(const DOMString &)
see cellSpacing
void setVAlign(const DOMString &)
see vAlign
void setVAlign(const DOMString &)
see vAlign
The Node interface is the primary datatype for the entire Document Object Model.
Table caption See the CAPTION element definition in HTML 4.0.
void setAxis(const DOMString &)
see axis
void deleteTFoot()
Delete the footer from the table, if one exists.
HTMLCollection rows() const
The collection of rows in this table section.
long rowIndex() const
The index of this row, relative to the entire table.
void deleteRow(long index)
Delete a table row.
The THEAD , TFOOT , and TBODY elements.
void setBgColor(const DOMString &)
see bgColor
HTMLTableSectionElement tHead() const
Returns the table's THEAD , or null if none exists.
bool noWrap() const
Suppress word wrapping.
The object used to represent the TH and TD elements.
void setAlign(const DOMString &)
see align
void setNoWrap(bool)
see noWrap
DOMString abbr() const
Abbreviation for header cells.
void setAlign(const DOMString &)
see align
long rowSpan() const
Number of rows spanned by cell.
HTMLCollection rows() const
Returns a collection of all the rows in the table, including all in THEAD , TFOOT ...
~HTMLTableSectionElement()
DOMString ch() const
Alignment character for cells in a column.
void setSpan(long)
see span
void setRules(const DOMString &)
see rules
void setSectionRowIndex(long)
see sectionRowIndex
long sectionRowIndex() const
The index of this row, relative to the current section ( THEAD , TFOOT , or TBODY )...
DOMString width() const
Cell width.
Node & operator=(const Node &other)
void setTHead(const HTMLTableSectionElement &)
see tHead
HTMLTableColElement & operator=(const HTMLTableColElement &other)
DOMString ch() const
Alignment character for cells in a column.
void setScope(const DOMString &)
see scope
DOMString chOff() const
Offset of alignment character.
HTMLCollection cells() const
The collection of cells in this row.
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
DOMString bgColor() const
Cell background color.
DOMString vAlign() const
Vertical alignment of data within cells of this row.
void setCh(const DOMString &)
see ch
HTMLTableSectionElement & operator=(const HTMLTableSectionElement &other)
Regroups the COL and COLGROUP elements.
DOMString axis() const
Names group of related headers.
QString number(int n, int base)
void setAlign(const DOMString &)
see align
An HTMLCollection is a list of nodes.
HTMLTableSectionElement()
void setChOff(const DOMString &)
see chOff
HTMLElement insertCell(long index)
Insert an empty TD cell into this row.
void setAlign(const DOMString &)
see align
long colSpan() const
Number of columns spanned by cell.
void setVAlign(const DOMString &)
see vAlign
void deleteCaption()
Delete the table caption, if one exists.
DOMString ch() const
Alignment character for cells in a column.
DOMString frame() const
Specifies which external table borders to render.
DOMString width() const
Specifies the desired table width.
DOMString chOff() const
Offset of alignment character.
DOMString align() const
Specifies the table's position with respect to the rest of the document.
DOMString summary() const
Supplementary description about the purpose or structure of a table.
void setCellPadding(const DOMString &)
see cellPadding
void setWidth(const DOMString &)
see width
void deleteRow(long index)
Delete a row from this section.
HTMLTableRowElement & operator=(const HTMLTableRowElement &other)
This class implements the basic string we use in the DOM.
void setHeaders(const DOMString &)
see headers
DOMString bgColor() const
Background color for rows.
void setWidth(const DOMString &)
see width
HTMLTableElement & operator=(const HTMLTableElement &other)
void setAlign(const DOMString &)
see align
DOMString align() const
Horizontal alignment of cell data in column.
HTMLElement insertRow(long index)
Insert a row into this section.
DOMString vAlign() const
Vertical alignment of data in cells.
void setCaption(const HTMLTableCaptionElement &)
see caption
HTMLElement insertRow(long index)
Insert a new empty row in the table.
HTMLElement createTHead()
Create a table header row or return an existing one.
DOMString chOff() const
Offset of alignment character.
DOMString ch() const
Alignment character for cells in a column.
void setCh(const DOMString &)
see ch
HTMLTableCaptionElement()
void setAlign(const DOMString &)
see align
void setFrame(const DOMString &)
see frame
void setTFoot(const HTMLTableSectionElement &)
see tFoot
void setBorder(const DOMString &)
see border
DOMString align() const
Caption alignment with respect to the table.
DOMString vAlign() const
Vertical alignment of data in cell.
DOMString border() const
The width of the border around the table.
void setChOff(const DOMString &)
see chOff
HTMLTableSectionElement tFoot() const
Returns the table's TFOOT , or null if none exists.
DOMString rules() const
Specifies which internal table borders to render.
DOMString align() const
Horizontal alignment of data in cell.
HTMLElement & operator=(const HTMLElement &other)
HTMLTableCellElement & operator=(const HTMLTableCellElement &other)
long span() const
Indicates the number of columns in a group or affected by a grouping.
HTMLTableCaptionElement & operator=(const HTMLTableCaptionElement &other)
DOMString width() const
Default column width.
void setRowIndex(long)
see rowIndex
void setBgColor(const DOMString &)
see bgColor
HTMLElement createTFoot()
Create a table footer row or return an existing one.
DOMString bgColor() const
Cell background color.
void setCellIndex(long)
see cellIndex
DOMString vAlign() const
Vertical alignment of cell data in column.
void setHeight(const DOMString &)
see height
DOMString headers() const
List of id attribute values for header cells.
void setAbbr(const DOMString &)
see abbr
void deleteTHead()
Delete the header from the table, if one exists.
void setWidth(const DOMString &)
see width
void setChOff(const DOMString &)
see chOff
friend class HTMLCollection
void setColSpan(long)
see colSpan
void assignOther(const Node &other, int elementId)
HTMLElement createCaption()
Create a new table caption object or return an existing one.
void deleteCell(long index)
Delete a cell from the current row.
quint32 elementId() const
DOMString cellSpacing() const
Specifies the horizontal and vertical separation between cells.
void setRowSpan(long)
see rowSpan
DOMString scope() const
Scope covered by header cells.
DOMString align() const
Horizontal alignment of data within cells of this row.
void setCh(const DOMString &)
see ch
The create* and delete* methods on the table allow authors to construct and modify tables...
DOMString align() const
Horizontal alignment of data in cells.
DOMString height() const
Cell height.
DOMString cellPadding() const
Specifies the horizontal and vertical space between cell content and cell borders.
All HTML element interfaces derive from this class.
void setSummary(const DOMString &)
see summary
void setVAlign(const DOMString &)
see vAlign
HTMLTableCaptionElement caption() const
Returns the table's CAPTION , or void if none exists.
~HTMLTableCaptionElement()
DOMString chOff() const
Offset of alignment character.