示例#1
0
void HtmlImage::onRender(HtmlWriter &writer)
{
	writer.openTag(_S("img"));
	renderAttributes(writer);
	writer.selfCloseTag();
	writer.writeLine();
}
示例#2
0
void HtmlTable::onRender(HtmlWriter &writer)
{
	writer.openTag(_S("table"));
	renderAttributes(writer);
	writer.closeTag();
	writer.writeLine();
	renderChilds(writer);
	writer.closeTag(_S("table"));
	writer.writeLine();
}
示例#3
0
void HtmlOptionGroup::onRender(HtmlWriter &writer)
{
	writer.openTag(_S("optgroup"));
	renderAttributes(writer);
	writer.closeTag();
	writer.writeLine();
	renderChilds(writer);
	writer.closeTag(_S("optgroup"));
	writer.writeLine();
}
示例#4
0
void HtmlLinkButton::onRender(HtmlWriter &writer)
{
	writer.openTag(_S("a"));
	renderAttributes(writer);
	writer.closeTag();
	writer.writeLine();
	renderChilds(writer);
	writer.closeTag(_S("a"));
	writer.writeLine();
}
示例#5
0
void IHtmlSelect::onRender(HtmlWriter &writer)
{
	writer.openTag(_S("select"));
	renderAttributes(writer);
	writer.closeTag();
	writer.writeLine();
	renderChilds(writer);
	writer.closeTag(_S("select"));
	writer.writeLine();
}
示例#6
0
void HtmlLinkTag::render(HtmlWriter &writer)
{
	writer.openTag(_S("link"));

	if(m_rel.empty() == false)
        writer.writeAttribute(_S("rel"), m_rel);
	if(m_href.empty() == false)
		writer.writeAttribute(_S("href"), m_href);
	if(m_type.empty() == false)
        writer.writeAttribute(_S("type"), m_type);
	if(m_title.empty() == false)
        writer.writeAttribute(_S("title"), m_title);
	if(m_hreflang.empty() == false)
        writer.writeAttribute(_S("hreflang"), m_hreflang);

	//writer.closeTag();
	writer.selfCloseTag(); // 0.13 RC2
}