QString XHtmlElements::TextArea::toHtml() { QString asHtml = "<textarea"; if( false == getBasicAttributes().isEmpty() ) asHtml+=getBasicAttributes(); if( false == _cols.isEmpty() ) asHtml+= QString(" cols=\"%1\" ").arg( _cols ); if( false == _rows.isEmpty() ) asHtml+= QString(" rows=\"%1\" ").arg( _rows ); if( true == _disabled ) asHtml+= QString(" _disabled=\"disabled\" "); if( false == _name.isEmpty() ) asHtml+= QString(" name=\"%1\" ").arg( _name ); if( true == _readonly ) asHtml+= QString(" readonly=\"readonly\" "); asHtml+=">"; asHtml+= getContentAsHtml(); asHtml+= "</textarea>"; return asHtml; }
QString XHtmlElements::TFoot::toHtml() { QString asHtml = "<tfoot "; if( false == getBasicAttributes().isEmpty() ) asHtml+= getBasicAttributes(); asHtml+= " >"; asHtml+= getContentAsHtml(); asHtml += "</tfoot>"; return asHtml; }
QString XHtmlElements::Object::toHtml() { QString asHtml = "<object "; if( false == getBasicAttributes().isEmpty() ) asHtml+= getBasicAttributes(); if( false == _archive.isEmpty() ) asHtml+= QString(" archive=\"%1\" ").arg(_archive); if( false == _classid.isEmpty() ) asHtml+= QString(" classid=\"%1\" ").arg(_classid); if( false == _codebase.isEmpty() ) asHtml+= QString(" codebase=\"%1\" ").arg(_codebase); if( false == _codetype.isEmpty() ) asHtml+= QString(" codetype=\"%1\" ").arg(_codetype); if( false == _data.isEmpty() ) asHtml+= QString(" data=\"%1\" ").arg(_data); if( true == _declare ) asHtml+= QString(" declare=\"declare\" "); if( false == _height.isEmpty() ) asHtml+= QString(" height=\"%1\" ").arg(_height); if( false == _name.isEmpty() ) asHtml+= QString(" name=\"%1\" ").arg(_name); if( false == _standby.isEmpty() ) asHtml+= QString(" standby=\"%1\" ").arg(_standby); if( false == _objectType.isEmpty() ) asHtml+= QString(" type=\"%1\" ").arg(_objectType); if( false == _usemap.isEmpty() ) asHtml+= QString(" usemap=\"%1\" ").arg(_usemap); if( false == _width.isEmpty() ) asHtml+= QString(" width=\"%1\" ").arg(_width); asHtml+=" >" asHtml+= getContentAsHtml(); asHtml+="</object>"; return asHtml; }
QString XHtmlElements::Head::toHtml() { QString asHtml = "<head "; if( false == getBasicAttributes().isEmpty() ) asHtml+= getBasicAttributes(); asHtml+= " >"; asHtml+= getContentAsHtml(); asHtml+= "</head>"; return asHtml; }
QString XHtmlElements::Caption::toHtml() { QString asHtml = "<caption "; if( false == getBasicAttributes().isEmpty() ) asHtml+= getBasicAttributes(); asHtml+=" >" asHtml+= getContentAsHtml(); asHtml+="</caption>"; return asHtml; }