📄 html.inl
字号:
{ if ( compact ) SetCompact();}inlineCHTML_basefont::CHTML_basefont(int size) : CParent(sm_TagName){ SetSize(size);}inlineCHTML_basefont::CHTML_basefont(const string& typeface) : CParent(sm_TagName){ SetTypeFace(typeface);}inlineCHTML_basefont::CHTML_basefont(const string& typeface, int size) : CParent(sm_TagName){ SetTypeFace(typeface); SetSize(size);}inlineCHTML_font::CHTML_font(void) : CParent(sm_TagName){ return;}inlineCHTML_font* CHTML_font::SetFontSize(int size, bool absolute){ if ( absolute ) { SetSize(size); } else { SetRelativeSize(size); } return this;}inlineCHTML_font::CHTML_font(int size, CNCBINode* node) : CParent(sm_TagName, node){ SetRelativeSize(size);}inlineCHTML_font::CHTML_font(int size, const string& text) : CParent(sm_TagName, text){ SetRelativeSize(size);}inlineCHTML_font::CHTML_font(int size, const char* text) : CParent(sm_TagName, text){ SetRelativeSize(size);}inlineCHTML_font::CHTML_font(int size, bool absolute, CNCBINode* node) : CParent(sm_TagName, node){ SetFontSize(size, absolute);}inlineCHTML_font::CHTML_font(int size, bool absolute, const string& text) : CParent(sm_TagName, text){ SetFontSize(size, absolute);}inlineCHTML_font::CHTML_font(int size, bool absolute, const char* text) : CParent(sm_TagName, text){ SetFontSize(size, absolute);}inlineCHTML_font::CHTML_font(const string& typeface, CNCBINode* node) : CParent(sm_TagName, node){ SetTypeFace(typeface);}inlineCHTML_font::CHTML_font(const string& typeface, const string& text) : CParent(sm_TagName, text){ SetTypeFace(typeface);}inlineCHTML_font::CHTML_font(const string& typeface, const char* text) : CParent(sm_TagName, text){ SetTypeFace(typeface);}inlineCHTML_font::CHTML_font(const string& typeface, int size, CNCBINode* node) : CParent(sm_TagName, node){ SetTypeFace(typeface); SetRelativeSize(size);}inlineCHTML_font::CHTML_font(const string& typeface, int size, const string& text) : CParent(sm_TagName, text){ SetTypeFace(typeface); SetRelativeSize(size);}inlineCHTML_font::CHTML_font(const string& typeface, int size, const char* text) : CParent(sm_TagName, text){ SetTypeFace(typeface); SetRelativeSize(size);}inlineCHTML_font::CHTML_font(const string& typeface, int size, bool absolute, CNCBINode* node) : CParent(sm_TagName, node){ SetTypeFace(typeface); SetFontSize(size, absolute);}inlineCHTML_font::CHTML_font(const string& typeface, int size, bool absolute, const string& text) : CParent(sm_TagName, text){ SetTypeFace(typeface); SetFontSize(size, absolute);}inlineCHTML_font::CHTML_font(const string& typeface, int size, bool absolute, const char* text) : CParent(sm_TagName, text){ SetTypeFace(typeface); SetFontSize(size, absolute);}inlineCHTML_color::CHTML_color(const string& color, const string& text){ SetColor(color); AppendPlainText(text);}inlineCHTML_color::CHTML_color(const string& color, CNCBINode* node){ SetColor(color); AppendChild(node);}inlineCHTML_hr* CHTML_hr::SetNoShade(bool noShade){ if ( noShade ) { SetNoShade(); } return this;}inlineCHTML_hr::CHTML_hr(bool noShade) : CParent(sm_TagName){ SetNoShade(noShade);}inlineCHTML_hr::CHTML_hr(int size, bool noShade) : CParent(sm_TagName){ SetSize(size); SetNoShade(noShade);}inlineCHTML_hr::CHTML_hr(int size, int width, bool noShade) : CParent(sm_TagName){ SetSize(size); SetWidth(width); SetNoShade(noShade);}inlineCHTML_hr::CHTML_hr(int size, const string& width, bool noShade) : CParent(sm_TagName){ SetSize(size); SetWidth(width); SetNoShade(noShade);}/* * =========================================================================== * $Log: html.inl,v $ * Revision 1000.3 2004/04/01 21:01:45 gouriano * PRODUCTION: UPGRADED [CORE_002] Dev-tree R1.35 * * Revision 1.35 2004/02/04 12:45:11 ivanov * Made CHTML[Plain]Text::SetText() inline. * * Revision 1.34 2004/02/03 19:45:42 ivanov * Binded dummy names for the unnamed nodes * * Revision 1.33 2003/12/31 19:00:45 ivanov * Added default constructor for CHTML_a * * Revision 1.32 2003/11/05 18:41:06 dicuccio * Added export specifiers * * Revision 1.31 2003/11/03 17:02:53 ivanov * Some formal code rearrangement. Move log to end. * * Revision 1.30 2003/11/03 15:07:55 ucko * Fixed typo in include guards: there must be *three* underscores after * the first "HTML". * * Revision 1.29 2003/11/03 14:47:01 ivanov * Some formal code rearrangement * * Revision 1.28 2002/09/25 01:24:29 dicuccio * Added CHTMLHelper::StripTags() - strips HTML comments and tags from any * string * * Revision 1.27 2002/01/17 23:37:50 ivanov * Moved CVS Log to end of file * * Revision 1.26 2001/06/08 19:01:42 ivanov * Added base classes: CHTMLDualNode, CHTMLSpecialChar * (and based on it: CHTML_nbsp, _gt, _lt, _quot, _amp, _copy, _reg) * Added realization for tags <meta> (CHTML_meta) and <script> (CHTML_script) * Changed base class for tags LINK, PARAM, ISINDEX -> CHTMLOpenElement * Added tags: OBJECT, NOSCRIPT * Added attribute "alt" for CHTML_img * Added CHTMLComment::Print() for disable print html-comments in plaintext mode * * Revision 1.25 2001/05/17 14:55:32 lavr * Typos corrected * * Revision 1.24 2000/10/18 13:25:47 vasilche * Added missing constructors to CHTML_font. * * Revision 1.23 2000/07/18 17:21:34 vasilche * Added possibility to force output of empty attribute value. * Added caching to CHTML_table, now large tables work much faster. * Changed algorithm of emitting EOL symbols in html output. * * Revision 1.22 1999/12/28 21:01:03 vasilche * Fixed conflict on MS VC between bool and const string& arguments by * adding const char* argument. * * Revision 1.21 1999/12/28 18:55:28 vasilche * Reduced size of compiled object files: * 1. avoid inline or implicit virtual methods (especially destructors). * 2. avoid std::string's methods usage in inline methods. * 3. avoid string literals ("xxx") in inline methods. * * Revision 1.20 1999/10/29 18:28:53 vakatov * [MSVC] bool vs. const string& arg confusion * * Revision 1.19 1999/10/28 13:40:30 vasilche * Added reference counters to CNCBINode. * * Revision 1.18 1999/07/08 18:05:12 vakatov * Fixed compilation warnings * * Revision 1.17 1999/05/28 18:04:06 vakatov * CHTMLNode:: added attribute "CLASS" * * Revision 1.16 1999/05/10 17:01:11 vasilche * Fixed warning on Sun by renaming CHTML_font::SetSize() -> SetFontSize(). * * Revision 1.15 1999/04/22 14:20:11 vasilche * Now CHTML_select::AppendOption and CHTML_option constructor accept option * name always as first argument. * * Revision 1.14 1999/04/15 19:48:17 vasilche * Fixed several warnings detected by GCC * * Revision 1.13 1999/04/15 16:28:37 vasilche * Fixed type in definition of list HTML tags. * * Revision 1.12 1999/04/08 19:00:26 vasilche * Added current cell pointer to CHTML_table * * Revision 1.11 1999/02/02 17:57:47 vasilche * Added CHTML_table::Row(int row). * Linkbar now have equal image spacing. * * Revision 1.10 1999/01/28 16:58:59 vasilche * Added several constructors for CHTML_hr. * Added CHTMLNode::SetSize method. * * Revision 1.9 1999/01/25 19:34:15 vasilche * String arguments which are added as HTML text now treated as plain text. * * Revision 1.8 1999/01/21 21:12:54 vasilche * Added/used descriptions for HTML submit/select/text. * Fixed some bugs in paging. * * Revision 1.7 1999/01/11 15:13:33 vasilche * Fixed CHTML_font size. * CHTMLHelper extracted to separate file. * * Revision 1.6 1999/01/07 16:41:53 vasilche * CHTMLHelper moved to separate file. * TagNames of CHTML classes ara available via s_GetTagName() static * method. * Input tag types ara available via s_GetInputType() static method. * Initial selected database added to CQueryBox. * Background colors added to CPagerBax & CSmallPagerBox. * * Revision 1.5 1999/01/05 21:47:11 vasilche * Added 'current page' to CPageList. * CPageList doesn't display forward/backward if empty. * * Revision 1.4 1999/01/04 20:06:10 vasilche * Redesigned CHTML_table. * Added selection support to HTML forms (via hidden values). * * Revision 1.3 1998/12/24 16:15:36 vasilche * Added CHTMLComment class. * Added TagMappers from static functions. * * Revision 1.2 1998/12/23 21:20:57 vasilche * Added more HTML tags (almost all). * Importent ones: all lists (OL, UL, DIR, MENU), fonts (FONT, BASEFONT). * * Revision 1.1 1998/12/21 22:24:56 vasilche * A lot of cleaning. * * =========================================================================== */#endif /* def HTML___HTML__HPP && ndef HTML___HTML__INL */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -