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();
195 DOMString value(QString::number(_colSpan));
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();
243 DOMString value(QString::number(_rowSpan));
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 );
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
@ NO_MODIFICATION_ALLOWED_ERR
This class implements the basic string we use in the DOM.
An HTMLCollection is a list of nodes.
All HTML element interfaces derive from this class.
void assignOther(const Node &other, int elementId)
HTMLElement & operator=(const HTMLElement &other)
Table caption See the CAPTION element definition in HTML 4.0.
DOMString align() const
Caption alignment with respect to the table.
~HTMLTableCaptionElement()
HTMLTableCaptionElement()
void setAlign(const DOMString &)
see align
HTMLTableCaptionElement & operator=(const HTMLTableCaptionElement &other)
The object used to represent the TH and TD elements.
DOMString height() const
Cell height.
void setColSpan(long)
see colSpan
DOMString axis() const
Names group of related headers.
DOMString vAlign() const
Vertical alignment of data in cell.
DOMString chOff() const
Offset of alignment character.
void setCellIndex(long)
see cellIndex
void setHeight(const DOMString &)
see height
void setHeaders(const DOMString &)
see headers
void setVAlign(const DOMString &)
see vAlign
void setBgColor(const DOMString &)
see bgColor
void setAbbr(const DOMString &)
see abbr
long cellIndex() const
The index of this cell in the row.
DOMString headers() const
List of id attribute values for header cells.
void setScope(const DOMString &)
see scope
void setChOff(const DOMString &)
see chOff
long rowSpan() const
Number of rows spanned by cell.
DOMString ch() const
Alignment character for cells in a column.
DOMString width() const
Cell width.
HTMLTableCellElement & operator=(const HTMLTableCellElement &other)
void setNoWrap(bool)
see noWrap
void setCh(const DOMString &)
see ch
bool noWrap() const
Suppress word wrapping.
DOMString abbr() const
Abbreviation for header cells.
DOMString align() const
Horizontal alignment of data in cell.
void setWidth(const DOMString &)
see width
void setAxis(const DOMString &)
see axis
void setAlign(const DOMString &)
see align
void setRowSpan(long)
see rowSpan
DOMString bgColor() const
Cell background color.
long colSpan() const
Number of columns spanned by cell.
DOMString scope() const
Scope covered by header cells.
Regroups the COL and COLGROUP elements.
DOMString width() const
Default column width.
void setChOff(const DOMString &)
see chOff
HTMLTableColElement & operator=(const HTMLTableColElement &other)
void setWidth(const DOMString &)
see width
void setVAlign(const DOMString &)
see vAlign
void setAlign(const DOMString &)
see align
DOMString align() const
Horizontal alignment of cell data in column.
long span() const
Indicates the number of columns in a group or affected by a grouping.
void setSpan(long)
see span
DOMString chOff() const
Offset of alignment character.
DOMString ch() const
Alignment character for cells in a column.
DOMString vAlign() const
Vertical alignment of cell data in column.
void setCh(const DOMString &)
see ch
The create* and delete* methods on the table allow authors to construct and modify tables.
HTMLTableSectionElement tFoot() const
Returns the table's TFOOT , or null if none exists.
void deleteTFoot()
Delete the footer from the table, if one exists.
HTMLElement insertRow(long index)
Insert a new empty row in the table.
HTMLTableCaptionElement caption() const
Returns the table's CAPTION , or void if none exists.
HTMLElement createTHead()
Create a table header row or return an existing one.
void setAlign(const DOMString &)
see align
void setBorder(const DOMString &)
see border
void setFrame(const DOMString &)
see frame
void setCellPadding(const DOMString &)
see cellPadding
void setSummary(const DOMString &)
see summary
void setCellSpacing(const DOMString &)
see cellSpacing
DOMString summary() const
Supplementary description about the purpose or structure of a table.
void setRules(const DOMString &)
see rules
HTMLCollection rows() const
Returns a collection of all the rows in the table, including all in THEAD , TFOOT ,...
DOMString bgColor() const
Cell background color.
DOMString frame() const
Specifies which external table borders to render.
HTMLCollection tBodies() const
Returns a collection of the table bodies (including implicit ones).
void deleteRow(long index)
Delete a table row.
void setBgColor(const DOMString &)
see bgColor
DOMString cellPadding() const
Specifies the horizontal and vertical space between cell content and cell borders.
HTMLElement createCaption()
Create a new table caption object or return an existing one.
HTMLElement createTFoot()
Create a table footer row or return an existing one.
DOMString rules() const
Specifies which internal table borders to render.
void setCaption(const HTMLTableCaptionElement &)
see caption
void deleteCaption()
Delete the table caption, if one exists.
HTMLTableElement & operator=(const HTMLTableElement &other)
void setTFoot(const HTMLTableSectionElement &)
see tFoot
DOMString width() const
Specifies the desired table width.
HTMLTableSectionElement tHead() const
Returns the table's THEAD , or null if none exists.
DOMString border() const
The width of the border around the table.
DOMString align() const
Specifies the table's position with respect to the rest of the document.
void setTHead(const HTMLTableSectionElement &)
see tHead
void deleteTHead()
Delete the header from the table, if one exists.
void setWidth(const DOMString &)
see width
DOMString cellSpacing() const
Specifies the horizontal and vertical separation between cells.
DOMString align() const
Horizontal alignment of data within cells of this row.
DOMString ch() const
Alignment character for cells in a column.
void deleteCell(long index)
Delete a cell from the current row.
void setSectionRowIndex(long)
see sectionRowIndex
void setCh(const DOMString &)
see ch
HTMLTableRowElement & operator=(const HTMLTableRowElement &other)
DOMString chOff() const
Offset of alignment character.
long sectionRowIndex() const
The index of this row, relative to the current section ( THEAD , TFOOT , or TBODY ).
void setVAlign(const DOMString &)
see vAlign
void setBgColor(const DOMString &)
see bgColor
HTMLCollection cells() const
The collection of cells in this row.
DOMString vAlign() const
Vertical alignment of data within cells of this row.
HTMLElement insertCell(long index)
Insert an empty TD cell into this row.
DOMString bgColor() const
Background color for rows.
void setAlign(const DOMString &)
see align
void setCells(const HTMLCollection &)
see cells
void setChOff(const DOMString &)
see chOff
long rowIndex() const
The index of this row, relative to the entire table.
void setRowIndex(long)
see rowIndex
The THEAD , TFOOT , and TBODY elements.
void setCh(const DOMString &)
see ch
DOMString vAlign() const
Vertical alignment of data in cells.
HTMLTableSectionElement & operator=(const HTMLTableSectionElement &other)
void setVAlign(const DOMString &)
see vAlign
HTMLTableSectionElement()
DOMString chOff() const
Offset of alignment character.
HTMLCollection rows() const
The collection of rows in this table section.
DOMString ch() const
Alignment character for cells in a column.
~HTMLTableSectionElement()
void setChOff(const DOMString &)
see chOff
void setAlign(const DOMString &)
see align
HTMLElement insertRow(long index)
Insert a row into this section.
DOMString align() const
Horizontal alignment of data in cells.
void deleteRow(long index)
Delete a row from this section.
The Node interface is the primary datatype for the entire Document Object Model.
Node & operator=(const Node &other)
unsigned long index() const
quint32 elementId() const
This library provides a full-featured HTML parser and widget.