⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 html.hpp

📁 ncbi源码
💻 HPP
📖 第 1 页 / 共 4 页
字号:
    void Init(const string& url, EMethod method = eGet);    void AddHidden(const string& name, const string& value);    void AddHidden(const string& name, int value);};// <legend> tag.class NCBI_XHTML_EXPORT CHTML_legend : public CHTMLElement{    typedef CHTMLElement CParent;public:    CHTML_legend(const string& legend);    CHTML_legend(CHTMLNode* legend);    ~CHTML_legend(void);};// <fieldset> tag.class NCBI_XHTML_EXPORT CHTML_fieldset : public CHTMLElement{    typedef CHTMLElement CParent;public:    CHTML_fieldset(void);    CHTML_fieldset(const string& legend);    CHTML_fieldset(CHTML_legend* legend);    ~CHTML_fieldset(void);};// <label> tag.class NCBI_XHTML_EXPORT CHTML_label : public CHTMLInlineElement{    typedef CHTMLInlineElement CParent;public:    CHTML_label(const string& text);    CHTML_label(const string& text, const string& idRef);    ~CHTML_label(void);    void SetFor(const string& idRef);};// <textarea> tag.class NCBI_XHTML_EXPORT CHTML_textarea : public CHTMLElement{    typedef CHTMLElement CParent;public:    CHTML_textarea(const string& name, int cols, int rows);    CHTML_textarea(const string& name, int cols, int rows,                   const string& value);    ~CHTML_textarea(void);};// <input> tag.class NCBI_XHTML_EXPORT CHTML_input : public CHTMLOpenElement{    typedef CHTMLOpenElement CParent;public:    CHTML_input(const char* type, const string& name);    ~CHTML_input(void);};// <input type=checkbox> tag.class NCBI_XHTML_EXPORT CHTML_checkbox : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_checkbox(const string& name);    CHTML_checkbox(const string& name, bool checked,                   const string& description = kEmptyStr);    CHTML_checkbox(const string& name, const string& value);    CHTML_checkbox(const string& name, const string& value,                   bool checked, const string& description = kEmptyStr);    ~CHTML_checkbox(void);};// <input type=hidden> tag.class NCBI_XHTML_EXPORT CHTML_hidden : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_hidden(const string& name, const string& value);    CHTML_hidden(const string& name, int value);    ~CHTML_hidden(void);};// <input type=image> tag.class NCBI_XHTML_EXPORT CHTML_image : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_image(const string& name, const string& src,                 const string& alt = kEmptyStr);    CHTML_image(const string& name, const string& src, int border,                const string& alt = kEmptyStr);    ~CHTML_image(void);};// <input type=radio> tag.class NCBI_XHTML_EXPORT CHTML_radio : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_radio(const string& name, const string& value);    CHTML_radio(const string& name, const string& value,                bool checked, const string& description = kEmptyStr);    ~CHTML_radio(void);};// <input type=text> tag.class NCBI_XHTML_EXPORT CHTML_reset : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_reset(const string& label = kEmptyStr);    ~CHTML_reset(void);};// <input type=submit> tag.class NCBI_XHTML_EXPORT CHTML_submit : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_submit(const string& name);    CHTML_submit(const string& name, const string& label);    ~CHTML_submit(void);};// <button> tag./*  commented out because it's not supported in most browsers  class CHTML_button : public CHTMLElement  {  typedef CHTMLElement CParent;  public:  enum EButtonType {  eSubmit,  eReset,  eButton  };  CHTML_button(const string& text, EButtonType type);  CHTML_button(CNCBINode* contents, EButtonType type);  CHTML_button(const string& text, const string& name,  const string& value = kEmptyStr);  CHTML_button(CNCBINode* contents, const string& name,  const string& value = kEmptyStr);  ~CHTML_button(void);  CHTML_button* SetType(EButtonType type);  CHTML_button* SetSubmit(const string& name,  const string& value = kEmptyStr);  };*/// <input type=text> tag.class NCBI_XHTML_EXPORT CHTML_text : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_text(const string& name,               const string& value = kEmptyStr);    CHTML_text(const string& name, int size,               const string& value = kEmptyStr);    CHTML_text(const string& name, int size, int maxlength,               const string& value = kEmptyStr);    ~CHTML_text(void);};// <input type=file> tag.class NCBI_XHTML_EXPORT CHTML_file : public CHTML_input{    typedef CHTML_input CParent;    static const char sm_InputType[];public:    CHTML_file(const string& name, const string& value = kEmptyStr);    ~CHTML_file(void);};// <select> tag.class NCBI_XHTML_EXPORT CHTML_select : public CHTMLElement{    typedef CHTMLElement CParent;    static const char sm_TagName[];public:    CHTML_select(const string& name, bool multiple = false);    CHTML_select(const string& name, int size, bool multiple = false);    ~CHTML_select(void);    // Return 'this' to allow chained AppendOption().    CHTML_select* AppendOption(const string& value, bool selected = false);    CHTML_select* AppendOption(const string& value, const char* label,                               bool selected = false);    CHTML_select* AppendOption(const string& value, const string& label,                               bool selected = false);    CHTML_select* SetMultiple(void);};// <option> tag. Rarely used alone. See <select> tag.class NCBI_XHTML_EXPORT CHTML_option : public CHTMLElement{    typedef CHTMLElement CParent;    static const char sm_TagName[];public:    CHTML_option(const string& value, bool selected = false);    CHTML_option(const string& value, const char* label,                 bool selected = false);    CHTML_option(const string& value, const string& label,                 bool selected = false);    ~CHTML_option(void);    CHTML_option* SetValue(const string& value);    CHTML_option* SetSelected(void);};// <a> tag.class NCBI_XHTML_EXPORT CHTML_a : public CHTMLInlineElement{    typedef CHTMLInlineElement CParent;    static const char sm_TagName[];public:    CHTML_a(void);    CHTML_a(const string& href);    CHTML_a(const string& href, const char* text);    CHTML_a(const string& href, const string& text);    CHTML_a(const string& href, CNCBINode* node);    ~CHTML_a(void);    CHTML_a* SetHref(const string& href);};// <br> tag (break).class NCBI_XHTML_EXPORT CHTML_br : public CHTMLOpenElement{    typedef CHTMLOpenElement CParent;    static const char sm_TagName[];public:    CHTML_br(void);    // create "number" of <br> tags    CHTML_br(int number);    ~CHTML_br(void);    virtual CNcbiOstream& PrintBegin(CNcbiOstream &, TMode mode);};// <img> tag.class NCBI_XHTML_EXPORT CHTML_img : public CHTMLOpenElement{    typedef CHTMLOpenElement CParent;public:    CHTML_img(const string& url, const string& alt = kEmptyStr);    CHTML_img(const string& url, int width, int height,               const string& alt = kEmptyStr);    ~CHTML_img(void);};// <dl> tag.class NCBI_XHTML_EXPORT CHTML_dl : public CHTMLElement{    typedef CHTMLElement CParent;    static const char sm_TagName[];public:    CHTML_dl(bool compact = false);    ~CHTML_dl(void);    // Return 'this' to allow chained AppendTerm().    CHTML_dl* AppendTerm(const string& term, CNCBINode* definition = 0);    CHTML_dl* AppendTerm(const string& term, const string& definition);    CHTML_dl* AppendTerm(CNCBINode* term, CNCBINode* definition = 0);    CHTML_dl* AppendTerm(CNCBINode* term, const string& definition);    CHTML_dl* SetCompact(void);};// <ol> tag.class NCBI_XHTML_EXPORT CHTML_ol : public CHTMLListElement{    typedef CHTMLListElement CParent;    static const char sm_TagName[];public:    CHTML_ol(bool compact = false);    CHTML_ol(const char* type, bool compact = false);    CHTML_ol(const string& type, bool compact = false);    CHTML_ol(int start, bool compact = false);    CHTML_ol(int start, const char* type, bool compact = false);    CHTML_ol(int start, const string& type, bool compact = false);    ~CHTML_ol(void);    CHTML_ol* SetStart(int start);};// <ul> tag.class NCBI_XHTML_EXPORT CHTML_ul : public CHTMLListElement{    typedef CHTMLListElement CParent;    static const char sm_TagName[];public:    CHTML_ul(bool compact = false);    CHTML_ul(const char* type, bool compact = false);    CHTML_ul(const string& type, bool compact = false);    ~CHTML_ul(void);};// <dir> tag.class NCBI_XHTML_EXPORT CHTML_dir : public CHTMLListElement{    typedef CHTMLListElement CParent;    static const char sm_TagName[];public:    CHTML_dir(bool compact = false);    CHTML_dir(const char* type, bool compact = false);    CHTML_dir(const string& type, bool compact = false);    ~CHTML_dir(void);};// <menu> tag.class NCBI_XHTML_EXPORT CHTML_menu : public CHTMLListElement{    typedef CHTMLListElement CParent;    static const char sm_TagName[];public:    CHTML_menu(bool compact = false);    CHTML_menu(const char* type, bool compact = false);    CHTML_menu(const string& type, bool compact = false);    ~CHTML_menu(void);};// <font> tag.class NCBI_XHTML_EXPORT CHTML_font : public CHTMLInlineElement{    typedef CHTMLInlineElement CParent;    static const char sm_TagName[];public:    CHTML_font(void);    CHTML_font(int size,               CNCBINode* node = 0);    CHTML_font(int size,               const char* text);    CHTML_font(int size,               const string& text);    CHTML_font(int size, bool absolute,               CNCBINode* node = 0);    CHTML_font(int size, bool absolute,               const string& text);    CHTML_font(int size, bool absolute,               const char* text);    CHTML_font(const string& typeface,               CNCBINode* node = 0);    CHTML_font(const string& typeface,               const string& text);    CHTML_font(const string& typeface,               const char* text);    CHTML_font(const string& typeface, int size,               CNCBINode* node = 0);    CHTML_font(const string& typeface, int size,               const string& text);    CHTML_font(const string& typeface, int size,               const char* text);    CHTML_font(const string& typeface, int size, bool absolute,               CNCBINode* node = 0);    CHTML_font(const string& typeface, int size, bool absolute,               const string& text);    CHTML_font(const string& typeface, int size, bool absolute,               const char* text);    ~CHTML_font(void);    CHTML_font* SetTypeFace(const string& typeface);    CHTML_font* SetFontSize(int size, bool absolute);    CHTML_font* SetRelativeSize(int size);};class NCBI_XHTML_EXPORT CHTML_basefont : public CHTMLOpenElement{    typedef CHTMLOpenElement CParent;    static const char sm_TagName[];public:    CHTML_basefont(int size);    CHTML_basefont(const string& typeface);    CHTML_basefont(const string& typeface, int size);    ~CHTML_basefont(void);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -