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