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