html_table.cpp

来自「将konqueror浏览器移植到ARM9 2410中」· C++ 代码 · 共 863 行 · 第 1/2 页

CPP
863
字号
}void HTMLTableElement::setCaption( const HTMLTableCaptionElement &_caption ){    if(impl)        ((HTMLTableElementImpl *)impl)	    ->setCaption( ((HTMLTableCaptionElementImpl *)_caption.impl) );}HTMLTableSectionElement HTMLTableElement::tHead() const{    if(!impl) return 0;    return ((HTMLTableElementImpl *)impl)->tHead();}void HTMLTableElement::setTHead( const HTMLTableSectionElement &_tHead ){    if(impl)        ((HTMLTableElementImpl *)impl)	    ->setTHead( ((HTMLTableSectionElementImpl *)_tHead.impl) );}HTMLTableSectionElement HTMLTableElement::tFoot() const{    if(!impl) return 0;    return ((HTMLTableElementImpl *)impl)->tFoot();}void HTMLTableElement::setTFoot( const HTMLTableSectionElement &_tFoot ){    if(impl)        ((HTMLTableElementImpl *)impl)	    ->setTFoot( ((HTMLTableSectionElementImpl *)_tFoot.impl) );}HTMLCollection HTMLTableElement::rows() const{    if(!impl) return HTMLCollection();    return HTMLCollection(impl, HTMLCollectionImpl::TABLE_ROWS);}HTMLCollection HTMLTableElement::tBodies() const{    if(!impl) return HTMLCollection();    return HTMLCollection(impl, HTMLCollectionImpl::TABLE_TBODIES);}DOMString HTMLTableElement::align() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);}void HTMLTableElement::setAlign( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);}DOMString HTMLTableElement::bgColor() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_BGCOLOR);}void HTMLTableElement::setBgColor( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BGCOLOR, value);}DOMString HTMLTableElement::border() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_BORDER);}void HTMLTableElement::setBorder( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BORDER, value);}DOMString HTMLTableElement::cellPadding() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_CELLPADDING);}void HTMLTableElement::setCellPadding( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CELLPADDING, value);}DOMString HTMLTableElement::cellSpacing() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_CELLSPACING);}void HTMLTableElement::setCellSpacing( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CELLSPACING, value);}DOMString HTMLTableElement::frame() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_FRAME);}void HTMLTableElement::setFrame( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_FRAME, value);}DOMString HTMLTableElement::rules() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_RULES);}void HTMLTableElement::setRules( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_RULES, value);}DOMString HTMLTableElement::summary() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_SUMMARY);}void HTMLTableElement::setSummary( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_SUMMARY, value);}DOMString HTMLTableElement::width() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_WIDTH);}void HTMLTableElement::setWidth( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_WIDTH, value);}HTMLElement HTMLTableElement::createTHead(  ){    if(!impl) return 0;    return ((HTMLTableElementImpl *)impl)->createTHead(  );}void HTMLTableElement::deleteTHead(  ){    if(impl)        ((HTMLTableElementImpl *)impl)->deleteTHead(  );}HTMLElement HTMLTableElement::createTFoot(  ){    if(!impl) return 0;    return ((HTMLTableElementImpl *)impl)->createTFoot(  );}void HTMLTableElement::deleteTFoot(  ){    if(impl)        ((HTMLTableElementImpl *)impl)->deleteTFoot(  );}HTMLElement HTMLTableElement::createCaption(  ){    if(!impl) return 0;    return ((HTMLTableElementImpl *)impl)->createCaption(  );}void HTMLTableElement::deleteCaption(  ){    if(impl)        ((HTMLTableElementImpl *)impl)->deleteCaption(  );}HTMLElement HTMLTableElement::insertRow( long index ){    if(!impl) return 0;    return ((HTMLTableElementImpl *)impl)->insertRow( index );}void HTMLTableElement::deleteRow( long index ){    if(impl)        ((HTMLTableElementImpl *)impl)->deleteRow( index );}// --------------------------------------------------------------------------HTMLTableRowElement::HTMLTableRowElement() : HTMLElement(){}HTMLTableRowElement::HTMLTableRowElement(const HTMLTableRowElement &other) : HTMLElement(other){}HTMLTableRowElement::HTMLTableRowElement(HTMLTableRowElementImpl *impl) : HTMLElement(impl){}HTMLTableRowElement &HTMLTableRowElement::operator = (const Node &other){    if(other.elementId() != ID_TR)    {	impl = 0;	return *this;    }    Node::operator = (other);    return *this;}HTMLTableRowElement &HTMLTableRowElement::operator = (const HTMLTableRowElement &other){    HTMLElement::operator = (other);    return *this;}HTMLTableRowElement::~HTMLTableRowElement(){}long HTMLTableRowElement::rowIndex() const{    if(!impl) return 0;    return ((HTMLTableRowElementImpl *)impl)->rowIndex();}void HTMLTableRowElement::setRowIndex( long /*_rowIndex*/ ){    throw DOMException(DOMException::NO_MODIFICATION_ALLOWED_ERR);}long HTMLTableRowElement::sectionRowIndex() const{    if(!impl) return 0;    return ((HTMLTableRowElementImpl *)impl)->sectionRowIndex();}void HTMLTableRowElement::setSectionRowIndex( long /*_sectionRowIndex*/ ){    throw DOMException(DOMException::NO_MODIFICATION_ALLOWED_ERR);}HTMLCollection HTMLTableRowElement::cells() const{    if(!impl) return HTMLCollection();    return HTMLCollection(impl, HTMLCollectionImpl::TABLE_ROWS);}void HTMLTableRowElement::setCells( const HTMLCollection & /*_cells*/ ){    throw DOMException(DOMException::NO_MODIFICATION_ALLOWED_ERR);}DOMString HTMLTableRowElement::align() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);}void HTMLTableRowElement::setAlign( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);}DOMString HTMLTableRowElement::bgColor() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_BGCOLOR);}void HTMLTableRowElement::setBgColor( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_BGCOLOR, value);}DOMString HTMLTableRowElement::ch() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_CHAR);}void HTMLTableRowElement::setCh( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CHAR, value);}DOMString HTMLTableRowElement::chOff() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_CHAROFF);}void HTMLTableRowElement::setChOff( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CHAROFF, value);}DOMString HTMLTableRowElement::vAlign() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_VALIGN);}void HTMLTableRowElement::setVAlign( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALIGN, value);}HTMLElement HTMLTableRowElement::insertCell( long index ){    if(!impl) return 0;    return ((HTMLTableRowElementImpl *)impl)->insertCell( index );}void HTMLTableRowElement::deleteCell( long index ){    if(impl)        ((HTMLTableRowElementImpl *)impl)->deleteCell( index );}// --------------------------------------------------------------------------HTMLTableSectionElement::HTMLTableSectionElement() : HTMLElement(){}HTMLTableSectionElement::HTMLTableSectionElement(const HTMLTableSectionElement &other) : HTMLElement(other){}HTMLTableSectionElement::HTMLTableSectionElement(HTMLTableSectionElementImpl *impl) : HTMLElement(impl){}HTMLTableSectionElement &HTMLTableSectionElement::operator = (const Node &other){    if(other.elementId() != ID_TBODY &&       other.elementId() != ID_THEAD &&       other.elementId() != ID_TFOOT )    {	impl = 0;	return *this;    }    Node::operator = (other);    return *this;}HTMLTableSectionElement &HTMLTableSectionElement::operator = (const HTMLTableSectionElement &other){    HTMLElement::operator = (other);    return *this;}HTMLTableSectionElement::~HTMLTableSectionElement(){}DOMString HTMLTableSectionElement::align() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_ALIGN);}void HTMLTableSectionElement::setAlign( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_ALIGN, value);}DOMString HTMLTableSectionElement::ch() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_CHAR);}void HTMLTableSectionElement::setCh( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CHAR, value);}DOMString HTMLTableSectionElement::chOff() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_CHAROFF);}void HTMLTableSectionElement::setChOff( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_CHAROFF, value);}DOMString HTMLTableSectionElement::vAlign() const{    if(!impl) return DOMString();    return ((ElementImpl *)impl)->getAttribute(ATTR_VALIGN);}void HTMLTableSectionElement::setVAlign( const DOMString &value ){    if(impl) ((ElementImpl *)impl)->setAttribute(ATTR_VALIGN, value);}HTMLCollection HTMLTableSectionElement::rows() const{    if(!impl) return HTMLCollection();    return HTMLCollection(impl, HTMLCollectionImpl::TABLE_ROWS);}HTMLElement HTMLTableSectionElement::insertRow( long index ){    if(!impl) return 0;    return ((HTMLTableSectionElementImpl *)impl)->insertRow( index );}void HTMLTableSectionElement::deleteRow( long index ){    if(impl)        ((HTMLTableSectionElementImpl *)impl)->deleteRow( index );}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?