AppendPlainText(
text);
173AppendPlainText(
text);
186AppendPlainText(
text);
191AppendPlainText(
text);
267eHTMLEncode = 1 << 0,
268eJSONEncode = 1 << 1,
281 returnm_EncodeMode == eHTMLEncode;
285m_EncodeMode = noEncode ? eNoEncode : eHTMLEncode;
289m_EncodeMode = encode_mode;
319fStripHtmlMode = 1 << 1,
320fStripTextMode = 1 << 2,
321fStrip = fStripHtmlMode | fStripTextMode,
323fEncodeHtmlMode = 1 << 3,
324fEncodeTextMode = 1 << 4,
325fEncode = fEncodeHtmlMode | fEncodeTextMode,
327fEnableBuffering = 0,
328fDisableBuffering = 1 << 5,
331fCode = fStripTextMode | fNoEncode,
332fCodeCompatible = fStripTextMode | fNoEncode | fDisableBuffering,
333fExample = fNoStrip | fEncodeHtmlMode,
334fDefault = fCodeCompatible
350 const string& s)
const;
549 static const charsm_TagName[];
557AppendPlainText(
text);
562AppendPlainText(
text);
590 boolcompact =
false)
599 boolcompact =
false)
668:
CParent(tagname), m_Parent(0)
677:
CParent(tagname, node), m_Parent(0)
685 voidResetTableCache(
void);
689 const string&
value,
booloptional);
707 voidResetTableCache(
void);
747{ m_CurrentRow =
row; m_CurrentCol = col; }
749{
return(m_CurrentRow ==
TIndex(-1)) ? 0 : m_CurrentRow; }
751{
return(m_CurrentCol ==
TIndex(-1)) ? 0 : m_CurrentCol; }
768{
returnNextCell(eHeaderCell); }
770{
returnNextCell(eDataCell); }
774{
returnNextRowCell(eHeaderCell); }
776{
returnNextRowCell(eDataCell); }
779 voidCheckTable(
void)
const;
781 TIndexCalculateNumberOfColumns(
void)
const;
782 TIndexCalculateNumberOfRows(
void)
const;
811 voidSetPlainSeparators(
const string& col_left =
kEmptyStr,
812 const string& col_middle =
" ",
814 const charrow_sep_char =
'-',
815ERowPlainSep is_row_sep = eSkipRowSep);
819 mutableunique_ptr<CHTML_table_Cache>
m_Cache;
840: m_Used(
false), m_Node(0)
859 voidSetUsed(
void);
875m_CellCount(0), m_CellsSize(0), m_Cells(0), m_FilledCellCount(0)
972 void Init(
const string& url, EMethod method =
eGet);
974 voidAddHidden(
const string& name,
const string&
value);
975 voidAddHidden(
const string& name,
int value);
1011 voidSetFor(
const string& idRef);
1022 const string&
value);
1041 static const charsm_InputType[];
1045 const string& description =
kEmptyStr);
1048 boolchecked,
const string& description =
kEmptyStr);
1057 static const charsm_InputType[];
1069 static const charsm_InputType[];
1071 CHTML_image(
const string& name,
const string& src,
1083 static const charsm_InputType[];
1099 static const charsm_InputType[];
1103 boolchecked,
const string& description =
kEmptyStr);
1112 static const charsm_InputType[];
1123 static const charsm_InputType[];
1135 static const charsm_InputType[];
1147 static const charsm_InputType[];
1163 static const charsm_InputType[];
1174 static const charsm_TagName[];
1200 static const charsm_TagName[];
1207 boolselected =
false,
booldisabled =
false);
1209 boolselected =
false,
booldisabled =
false);
1211 boolselected =
false,
booldisabled =
false);
1220 static const charsm_TagName[];
1223 boolselected =
false,
booldisabled =
false);
1225 boolselected =
false,
booldisabled =
false);
1227 boolselected =
false,
booldisabled =
false);
1240 static const charsm_TagName[];
1248 boolselected =
false,
booldisabled =
false);
1250 boolselected =
false,
booldisabled =
false);
1252 boolselected =
false,
booldisabled =
false);
1262 static const charsm_TagName[];
1279 static const charsm_TagName[];
1294 static const charsm_TagName[];
1304 CHTML_area(
const string& href,
intx1,
inty1,
intx2,
inty2,
1321 CHTML_area* DefineRect(
intx1,
inty1,
intx2,
inty2);
1323 CHTML_area* DefineCircle(
intx,
inty,
intradius);
1327 CHTML_area* DefinePolygon(vector<int> coords);
1328 CHTML_area* DefinePolygon(list<int> coords);
1363 CHTML_img(
const string& url,
intwidth,
intheight,
1366 voidUseMap(
const string& mapname);
1367 voidUseMap(
const CHTML_map*
constmapnode);
1375 static const charsm_TagName[];
1382 CHTML_dl* AppendTerm(
const string& term,
const string& definition);
1394 static const charsm_TagName[];
1412 static const charsm_TagName[];
1425 static const charsm_TagName[];
1438 static const charsm_TagName[];
1451 static const charsm_TagName[];
1457 const char*
text);
1459 const string&
text);
1463 const string&
text);
1465 const char*
text);
1469 const string&
text);
1471 const char*
text);
1475 const string&
text);
1477 const char*
text);
1481 const string&
text);
1483 const char*
text);
1486 CHTML_font* SetTypeFace(
const string& typeface);
1495 static const charsm_TagName[];
1520 static const charsm_TagName[];
1539 static const charsm_TagName[];
1545 CHTML_meta(EType mtype,
const string& var,
const string& content);
1554 static const charsm_TagName[];
1557 CHTML_script(
const string& stype,
const string& url);
std::ofstream out("events_result.xml")
main entry point for tests
static const char * column
CHTML_tc * NextRowDataCell(void)
CHTMLElement(const char *tagname)
CHTML_menu(const char *type, bool compact=false)
CHTMLNode * SetHeight(const string &width)
CHTMLInlineElement CParent
CHTML_table * SetColumnWidth(TIndex column, const string &width)
CHTML_ol(int start, const string &type, bool compact=false)
CHTMLNode * SetStyle(const string &style)
CHTML_optgroup * AppendOption(const string &value, const string &label, bool selected=false, bool disabled=false)
CHTMLComment(const char *text)
CHTML_select * AppendOption(const string &value, const char *label, bool selected=false, bool disabled=false)
CHTMLNode(const char *tagname)
#define DECLARE_HTML_ELEMENT_COMMON_WITH_INIT(Tag, Parent)
CHTML_tc * NextCell(ECellType type=eAnyCell)
CHTMLNode * AppendHTMLText(const string &text)
const string & GetText(void) const
#define DECLARE_HTML_ELEMENT(Tag, Parent)
CHTMLNode * SetId(const string &id)
CHTMLNode(const string &tagname, const string &text)
TIndex GetCurrentRow(void) const
bool NoEncode(void) const
CHTML_font(int size, bool absolute, CNCBINode *node=0)
CHTMLSingleElement CParent
const string & GetText(void) const
CHTMLNode(const char *tagname, const string &text)
CHTML_tc * InsertNextRowCell(CNCBINode *node)
virtual void DoAppendChild(CNCBINode *child)
CHTMLOpenElement(const char *tagname, CNCBINode *node)
CHTML_select(const string &name, int size, bool multiple=false)
CHTML_ol(int start, const char *type, bool compact=false)
CHTML_tc * HeaderCell(TIndex row, TIndex column)
CHTMLNode(const char *tagname, CNCBINode *node)
CHTMLNode(const string &tagname, const char *text)
CHTMLSingleElement CParent
CHTMLNode * SetNameAttribute(const string &name)
CHTML_tc * InsertTextAt(TIndex row, TIndex column, const string &text)
CHTMLSingleElement(const char *tagname, const char *text)
#define DECLARE_HTML_SPECIAL_CHAR(Tag, plain)
CHTML_tc * InsertNextRowCell(const string &text)
CHTMLBlockElement(const string &tagname)
unique_ptr< CHTML_table_Cache > m_Cache
CHTMLOpenElement(const char *tagname, const string &text)
CHTMLBlockElement(const char *tagname, const string &text)
CHTML_area * SetHref(const string &href)
CHTML_ol(const string &type, bool compact=false)
TIndex GetCurrentCol(void) const
CHTMLNode * SetWidth(const string &width)
CHTML_font(int size, const char *text)
CHTMLElement(const char *tagname, CNCBINode *node)
CHTML_tc * NextDataCell(void)
CHTMLElement(const char *tagname, const string &text)
CHTMLNode * SetClass(const string &class_name)
CHTMLElement(const string &tagname, const char *text)
CHTML_option(const string &value, const string &label, bool selected=false, bool disabled=false)
CHTML_a * SetHref(const string &href)
CHTML_tc * InsertAt(TIndex row, TIndex column, const string &text)
CHTML_menu(const string &type, bool compact=false)
CHTML_a(const string &href, const string &text)
CHTMLSingleElement CParent
CHTML_map * AddArea(CHTML_area *area)
CHTML_option(const string &value, const char *label, bool selected=false, bool disabled=false)
CHTMLNode * SetWidth(int width)
EEncodeMode GetEncodeMode() const
CHTMLComment(const string &text)
CHTML_font(const string &typeface, int size, const string &text)
CHTML_font(int size, const string &text)
CHTMLSingleElement(const string &tagname, CNCBINode *node)
map< size_t, string > TColWidths
CHTML_area(const string &href, vector< int > coords, const string &alt=kEmptyStr)
CHTMLInlineElement CParent
CHTML_map * AddArea(CNodeRef &area)
CHTML_a(const string &href)
CHTML_option * SetValue(const string &value)
CHTML_tc(const char *tagname, CNCBINode *node)
CHTMLSingleElement(const string &tagname, const string &text)
CHTMLInlineElement(const char *tagname)
CHTMLOpenElement(const char *tagname, const char *text)
CHTMLOpenElement(const string &tagname, CNCBINode *node)
CHTMLListElement * AppendItem(CNCBINode *node)
void SetEncodeMode(EEncodeMode encode_mode)
CHTML_option * SetDisabled(void)
CHTMLSingleElement(const char *tagname, const string &text)
CHTMLOpenElement(const string &tagname, const char *text)
CHTML_select * AppendOption(const string &value, const string &label, bool selected=false, bool disabled=false)
CHTML_hr * SetNoShade(bool noShade)
CHTMLNode * SetColor(const string &color)
CHTML_tc * GetCellNode(void) const
CHTML_ul(bool compact=false)
CHTML_optgroup(const string &label, bool disabled=false)
CHTML_tc(const char *tagname)
CHTML_tc * NextHeaderCell(void)
virtual CNcbiOstream & PrintChildren(CNcbiOstream &out, TMode mode)
EFlags
Conversions to make before printing out the stored text.
TIndex GetRowCount(void) const
CHTML_font(const string &typeface, CNCBINode *node=0)
CHTML_font(const string &typeface, const char *text)
CHTML_optgroup * AppendOption(const string &value, const char *label, bool selected=false, bool disabled=false)
CHTML_hr(int size, bool noShade=false)
CHTMLInlineElement CParent
TIndex GetCellCount(void) const
CHTML_tr * GetRowNode(void) const
CHTML_font(const string &typeface, int size, CNCBINode *node=0)
CHTMLNode * SetAlign(const string &align)
int TFlags
Bitwise OR of "EFlags".
CHTMLNode(const string &tagname, CNCBINode *node)
CHTMLOpenElement(const char *tagname)
CHTML_font(const string &typeface, const string &text)
CHTMLNode * AppendHTMLText(const char *text)
CHTMLNode * SetTitle(const string &title)
CHTML_hr(bool noShade=false)
CHTML_table * SetCellSpacing(int spacing)
CHTML_tr_Cache(const CHTML_tr_Cache &)
CHTML_tc * InsertNextCell(const string &text)
CHTMLNode * SetVAlign(const string &align)
CHTML_tc(const char *tagname, const char *text)
CHTMLInlineElement(const string &tagname)
CHTML_font(int size, bool absolute, const string &text)
CHTMLSingleElement CParent
void SetText(const string &text)
CHTML_font(const string &typeface, int size, const char *text)
CHTMLNode * AppendPlainText(const char *text, bool noEncode=false)
virtual void DoSetAttribute(const string &name, const string &value, bool optional)
CHTML_basefont(const string &typeface)
CHTML_tc * InsertNextCell(CNCBINode *node)
CHTMLBlockElement(const string &tagname, const string &text)
CHTMLBlockElement(const char *tagname, const char *text)
CHTML_area(const string &href, int x, int y, int radius, const string &alt=kEmptyStr)
CHTML_table::TIndex TIndex
CHTMLListElement * AppendItem(const char *text)
CHTML_optgroup * AppendOption(const string &value, bool selected=false, bool disabled=false)
CHTML_hr(int size, const string &width, bool noShade=false)
CHTMLNode(const string &tagname)
CHTML_a(const string &href, const char *text)
CHTML_ol(int start, bool compact=false)
CHTML_select * SetMultiple(void)
CHTML_tc * NextRowCell(ECellType type=eAnyCell)
CNCBINode * AppendChild(CNCBINode *child)
CHTMLElement(const string &tagname, CNCBINode *node)
CHTMLInlineElement CParent
CHTMLSingleElement(const string &tagname, const char *text)
CHTML_area(const string &href, int coords[], int count, const string &alt=kEmptyStr)
CHTML_option(const string &value, bool selected=false, bool disabled=false)
virtual CNcbiOstream & PrintEnd(CNcbiOstream &out, TMode mode)
CHTMLComment(CNCBINode *node)
CHTMLListElement(const char *tagname, const char *type, bool compact=false)
CHTML_color(const string &color, const string &text)
CHTML_map * AddPolygon(const string &href, int coords[], int count, const string &alt=kEmptyStr)
CHTMLNode * SetAccessKey(char key)
CHTMLSingleElement CParent
const string & GetNameAttribute(void) const
CHTML_map * AddPolygon(const string &href, vector< int > coords, const string &alt=kEmptyStr)
CHTML_font * SetFontSize(int size, bool absolute)
CHTMLSingleElement CParent
CHTMLInlineElement(const char *tagname, const string &text)
virtual CNcbiOstream & PrintBegin(CNcbiOstream &out, TMode mode)
CHTMLSingleElement(const char *tagname)
CHTMLInlineElement(const string &tagname, const string &text)
CHTML_hr(int size, int width, bool noShade=false)
CHTML_tc * NextRowHeaderCell(void)
CHTMLInlineElement(const string &tagname, const char *text)
CHTMLBlockElement(const char *tagname, CNCBINode *node)
CHTMLInlineElement CParent
CHTML_ol(const char *type, bool compact=false)
CHTMLOpenElement(const string &tagname)
CHTML_basefont(const string &typeface, int size)
void SetCurrentCell(TIndex row, TIndex col)
CHTML_table_Cache & operator=(const CHTML_table_Cache &)
CHTMLBlockElement(const char *tagname)
CHTML_option * SetSelected(void)
CHTML_ul(const char *type, bool compact=false)
virtual CNcbiOstream & Print(CNcbiOstream &out, TMode mode=eHTML)
CHTML_tr_Cache & operator=(const CHTML_tr_Cache &)
CHTML_tc * InsertAt(TIndex row, TIndex column, CNCBINode *node)
CHTML_menu(bool compact=false)
void SetRowNode(CHTML_tr *rowNode)
CHTML_area(const string &href, int x1, int y1, int x2, int y2, const string &alt=kEmptyStr)
void SetAttribute(const string &name, const string &value)
CHTML_map * AddPolygon(const string &href, list< int > coords, const string &alt=kEmptyStr)
CHTMLInlineElement(const char *tagname, const char *text)
CHTMLOpenElement(const string &tagname, const string &text)
CHTML_ul(const string &type, bool compact=false)
CHTML_font(const string &typeface, int size, bool absolute, CNCBINode *node=0)
CHTMLBlockElement(const string &tagname, CNCBINode *node)
CHTMLNode * SetHeight(int height)
CHTMLElement(const char *tagname, const char *text)
CHTML_font(const string &typeface, int size, bool absolute, const char *text)
CHTMLElement(const string &tagname, const string &text)
CHTML_table_Cache(const CHTML_table_Cache &)
CHTML_map * AddCircle(const string &href, int x, int y, int radius, const string &alt=kEmptyStr)
CHTML_ol(bool compact=false)
CHTMLListElement(const char *tagname, const string &type, bool compact=false)
CHTML_dir(const char *type, bool compact=false)
CHTMLListElement * AppendItem(const string &text)
CHTML_font(const string &typeface, int size, bool absolute, const string &text)
CHTMLNode * SetSize(int size)
CHTMLSingleElement(const char *tagname, CNCBINode *node)
CHTMLElement(const string &tagname)
CHTML_select * AppendOption(const string &value, bool selected=false, bool disabled=false)
void SetText(const string &text)
CHTML_font(int size, CNCBINode *node=0)
CHTML_a(const string &href, CNCBINode *node)
CHTML_optgroup * SetDisabled(void)
CHTML_font(int size, bool absolute, const char *text)
void ResetTableCache(void)
CHTMLNode * SetBgColor(const string &color)
CHTMLBlockElement(const string &tagname, const char *text)
CHTML_tc(const char *tagname, const string &text)
CHTML_table::TIndex TIndex
CHTML_table * SetCellPadding(int padding)
CHTMLListElement(const char *tagname, bool compact=false)
CHTML_select * AppendGroup(CHTML_optgroup *group)
CHTML_tc * DataCell(TIndex row, TIndex column)
CHTML_color(const string &color, CNCBINode *node=0)
CHTMLNode * AppendPlainText(const string &text, bool noEncode=false)
CHTMLInlineElement(const char *tagname, CNCBINode *node)
CHTML_table * SetColumnWidth(TIndex column, int width)
CHTMLNode(const char *tagname, const char *text)
CHTMLSingleElement(const string &tagname)
CHTML_dir(bool compact=false)
CHTML_dir(const string &type, bool compact=false)
CHTML_area(const string &href, list< int > coords, const string &alt=kEmptyStr)
CHTML_select(const string &name, bool multiple=false)
CHTMLInlineElement(const string &tagname, CNCBINode *node)
CHTML_map * AddRect(const string &href, int x1, int y1, int x2, int y2, const string &alt=kEmptyStr)
void SetNoEncode(bool noEncode=true)
CHTML_dl(bool compact=false)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
#define NCBI_XHTML_EXPORT
static const char label[]
@ eHTML
HTML tag or, for example, HTML entity.
HTML library helper classes and functions.
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n th
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n td
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
const GenericPointer< typename T::ValueType > T2 value
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)
#define row(bind, expected)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4