📄 html.inl
字号:
/* * =========================================================================== * PRODUCTION $Log: html.inl,v $ * PRODUCTION Revision 1000.3 2004/04/01 21:01:45 gouriano * PRODUCTION PRODUCTION: UPGRADED [CORE_002] Dev-tree R1.35 * PRODUCTION * =========================================================================== */#if defined(HTML___HTML__HPP) && !defined(HTML___HTML__INL)#define HTML___HTML__INL/* $Id: html.inl,v 1000.3 2004/04/01 21:01:45 gouriano Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Author: Eugene Vasilchenko * */inlineconst string& CHTMLPlainText::GetText(void) const{ return m_Text;}inlinevoid CHTMLPlainText::SetText(const string& text){ m_Text = text;}inlineconst string& CHTMLText::GetText(void) const{ return m_Text;}inlinevoid CHTMLText::SetText(const string& text){ m_Text = text;}inlineCHTMLListElement* CHTMLListElement::AppendItem(const char* text){ AppendChild(new CHTML_li(text)); return this;}inlineCHTMLListElement* CHTMLListElement::AppendItem(const string& text){ AppendChild(new CHTML_li(text)); return this;}inlineCHTMLListElement* CHTMLListElement::AppendItem(CNCBINode* node){ AppendChild(new CHTML_li(node)); return this;}inlineCHTML_tc* CHTML_table::NextCell(ECellType type){ return Cell(m_CurrentRow, m_CurrentCol + 1, type);}inlineCHTML_tc* CHTML_table::NextRowCell(ECellType type){ return Cell(m_CurrentRow + 1, 0, type);}inlineCHTML_tc* CHTML_table::InsertAt(TIndex row, TIndex column, CNCBINode* node){ CHTML_tc* cell = Cell(row, column); cell->AppendChild(node); return cell;}inlineCHTML_tc* CHTML_table::InsertAt(TIndex row, TIndex column, const string& text){ return InsertAt(row, column, new CHTMLPlainText(text));}inlineCHTML_tc* CHTML_table::InsertTextAt(TIndex row, TIndex column, const string& text){ return InsertAt(row, column, text);}inlineCHTML_tc* CHTML_table::InsertNextCell(CNCBINode* node){ CHTML_tc* cell = NextCell(); cell->AppendChild(node); return cell;}inlineCHTML_tc* CHTML_table::InsertNextCell(const string& text){ return InsertNextCell(new CHTMLPlainText(text));}inlineCHTML_tc* CHTML_table::InsertNextRowCell(CNCBINode* node){ CHTML_tc* cell = NextRowCell(); cell->AppendChild(node); return cell;}inlineCHTML_tc* CHTML_table::InsertNextRowCell(const string& text){ return InsertNextRowCell(new CHTMLPlainText(text));}inlineCHTML_ol::CHTML_ol(bool compact) : CParent(sm_TagName, compact){ return;}inlineCHTML_ol::CHTML_ol(const char* type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_ol::CHTML_ol(const string& type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_ol::CHTML_ol(int start, bool compact) : CParent(sm_TagName, compact){ SetStart(start);}inlineCHTML_ol::CHTML_ol(int start, const char* type, bool compact) : CParent(sm_TagName, type, compact){ SetStart(start);}inlineCHTML_ol::CHTML_ol(int start, const string& type, bool compact) : CParent(sm_TagName, type, compact){ SetStart(start);}inlineCHTML_ul::CHTML_ul(bool compact) : CParent(sm_TagName, compact){ return;}inlineCHTML_ul::CHTML_ul(const char* type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_ul::CHTML_ul(const string& type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_dir::CHTML_dir(bool compact) : CParent(sm_TagName, compact){ return;}inlineCHTML_dir::CHTML_dir(const char* type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_dir::CHTML_dir(const string& type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_menu::CHTML_menu(bool compact) : CParent(sm_TagName, compact){ return;}inlineCHTML_menu::CHTML_menu(const char* type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_menu::CHTML_menu(const string& type, bool compact) : CParent(sm_TagName, type, compact){ return;}inlineCHTML_a::CHTML_a(void) : CParent(sm_TagName){ return;}inlineCHTML_a::CHTML_a(const string& href) : CParent(sm_TagName){ SetHref(href);}inlineCHTML_a::CHTML_a(const string& href, CNCBINode* node) : CParent(sm_TagName, node){ SetHref(href);}inlineCHTML_a::CHTML_a(const string& href, const char* text) : CParent(sm_TagName, text){ SetHref(href);}inlineCHTML_a::CHTML_a(const string& href, const string& text) : CParent(sm_TagName, text){ SetHref(href);}inlineCHTML_option::CHTML_option(const string& value, bool selected) : CParent(sm_TagName, value){ if ( selected ) { SetSelected(); }}inlineCHTML_option::CHTML_option(const string& value, const string& label, bool selected) : CParent(sm_TagName, label){ SetValue(value); if ( selected ) { SetSelected(); }}inlineCHTML_option::CHTML_option(const string& value, const char* label, bool selected) : CParent(sm_TagName, label){ SetValue(value); if ( selected ) { SetSelected(); }}inlineCHTML_select::CHTML_select(const string& name, bool multiple) : CParent(sm_TagName){ SetNameAttribute(name); if ( multiple ) { SetMultiple(); }}inlineCHTML_select::CHTML_select(const string& name, int size, bool multiple) : CParent(sm_TagName){ SetNameAttribute(name); SetSize(size); if ( multiple ) { SetMultiple(); }}inlineCHTML_select* CHTML_select::AppendOption(const string& value, bool selected){ AppendChild(new CHTML_option(value, selected)); return this;}inlineCHTML_select* CHTML_select::AppendOption(const string& value, const string& label, bool selected){ AppendChild(new CHTML_option(value, label, selected)); return this;}inlineCHTML_select* CHTML_select::AppendOption(const string& value, const char* label, bool selected){ AppendChild(new CHTML_option(value, label, selected)); return this;}inlineCHTML_br::CHTML_br(void) : CParent(sm_TagName){ return;}inlineCHTML_dl::CHTML_dl(bool compact) : CParent(sm_TagName)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -