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 );