Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
form.hh File Reference
#include "url.h"
Include dependency graph for form.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  DilloHtmlMethod { DILLO_HTML_METHOD_UNKNOWN , DILLO_HTML_METHOD_GET , DILLO_HTML_METHOD_POST }
 
enum  DilloHtmlEnc { DILLO_HTML_ENC_URLENCODED , DILLO_HTML_ENC_MULTIPART }
 

Functions

DilloHtmlForm * a_Html_form_new (DilloHtml *html, DilloHtmlMethod method, const DilloUrl *action, DilloHtmlEnc enc, const char *charset, bool enabled)
 
void a_Html_form_delete (DilloHtmlForm *form)
 
void a_Html_input_delete (DilloHtmlInput *input)
 
void a_Html_form_submit2 (void *v_form)
 
void a_Html_form_reset2 (void *v_form)
 
void a_Html_form_display_hiddens2 (void *v_form, bool display)
 
void Html_tag_open_form (DilloHtml *html, const char *tag, int tagsize)
 Handle <FORM> tag.
 
void Html_tag_close_form (DilloHtml *html)
 
void Html_tag_open_input (DilloHtml *html, const char *tag, int tagsize)
 Add a new input to current form.
 
void Html_tag_open_isindex (DilloHtml *html, const char *tag, int tagsize)
 The ISINDEX tag is just a deprecated form of <INPUT type=text>> with implied FORM, afaics.
 
void Html_tag_open_textarea (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_content_textarea (DilloHtml *html, const char *tag, int tagsize)
 The textarea tag.
 
void Html_tag_close_textarea (DilloHtml *html)
 Close textarea.
 
void Html_tag_open_select (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_close_select (DilloHtml *html)
 
void Html_tag_open_option (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_close_option (DilloHtml *html)
 
void Html_tag_open_optgroup (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_close_optgroup (DilloHtml *html)
 
void Html_tag_open_button (DilloHtml *html, const char *tag, int tagsize)
 
void Html_tag_close_button (DilloHtml *html)
 Handle close <BUTTON>
 

Enumeration Type Documentation

◆ DilloHtmlEnc

Enumerator
DILLO_HTML_ENC_URLENCODED 
DILLO_HTML_ENC_MULTIPART 

Definition at line 16 of file form.hh.

◆ DilloHtmlMethod

Enumerator
DILLO_HTML_METHOD_UNKNOWN 
DILLO_HTML_METHOD_GET 
DILLO_HTML_METHOD_POST 

Definition at line 10 of file form.hh.

Function Documentation

◆ a_Html_form_delete()

void a_Html_form_delete ( DilloHtmlForm *  form)

Definition at line 244 of file form.cc.

Referenced by DilloHtml::~DilloHtml().

◆ a_Html_form_display_hiddens2()

void a_Html_form_display_hiddens2 ( void *  v_form,
bool  display 
)

Definition at line 264 of file form.cc.

Referenced by a_Html_form_display_hiddens().

◆ a_Html_form_new()

DilloHtmlForm * a_Html_form_new ( DilloHtml html,
DilloHtmlMethod  method,
const DilloUrl action,
DilloHtmlEnc  enc,
const char *  charset,
bool  enabled 
)

Definition at line 235 of file form.cc.

Referenced by DilloHtml::formNew().

◆ a_Html_form_reset2()

void a_Html_form_reset2 ( void *  v_form)

Definition at line 259 of file form.cc.

Referenced by a_Html_form_reset().

◆ a_Html_form_submit2()

void a_Html_form_submit2 ( void *  v_form)

Definition at line 254 of file form.cc.

Referenced by a_Html_form_submit().

◆ a_Html_input_delete()

void a_Html_input_delete ( DilloHtmlInput *  input)

Definition at line 249 of file form.cc.

Referenced by DilloHtml::~DilloHtml().

◆ Html_tag_close_button()

void Html_tag_close_button ( DilloHtml html)

Handle close <BUTTON>

Definition at line 974 of file form.cc.

References DilloHtml::InFlags.

◆ Html_tag_close_form()

void Html_tag_close_form ( DilloHtml html)

Definition at line 402 of file form.cc.

References DilloHtml::InFlags.

◆ Html_tag_close_optgroup()

void Html_tag_close_optgroup ( DilloHtml html)

◆ Html_tag_close_option()

void Html_tag_close_option ( DilloHtml html)

Definition at line 896 of file form.cc.

References Html_option_finish(), IN_OPTION, and DilloHtml::InFlags.

◆ Html_tag_close_select()

void Html_tag_close_select ( DilloHtml html)

◆ Html_tag_close_textarea()

void Html_tag_close_textarea ( DilloHtml html)

Close textarea.

(TEXTAREA is parsed in VERBATIM mode, and entities are handled here)

Definition at line 695 of file form.cc.

References a_Html_parse_entities(), dStr_erase(), Html_get_current_input(), IN_TEXTAREA, DilloHtml::InFlags, Dstr::len, S_TOP, DilloHtml::Stash, and Dstr::str.

◆ Html_tag_content_textarea()

◆ Html_tag_open_button()

◆ Html_tag_open_form()

◆ Html_tag_open_input()

◆ Html_tag_open_isindex()

void Html_tag_open_isindex ( DilloHtml html,
const char *  tag,
int  tagsize 
)

◆ Html_tag_open_optgroup()

void Html_tag_open_optgroup ( DilloHtml html,
const char *  tag,
int  tagsize 
)

◆ Html_tag_open_option()

void Html_tag_open_option ( DilloHtml html,
const char *  tag,
int  tagsize 
)

◆ Html_tag_open_select()

◆ Html_tag_open_textarea()

void Html_tag_open_textarea ( DilloHtml html,
const char *  tag,
int  tagsize 
)

Definition at line 626 of file form.cc.

References IN_BUTTON, IN_SELECT, IN_TEXTAREA, and DilloHtml::InFlags.