Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
form.hh
Go to the documentation of this file.
1#ifndef __FORM_HH__
2#define __FORM_HH__
3
4#include "url.h"
5
6/*
7 * Typedefs
8 */
9
15
20
21/*
22 * Classes
23 */
24
25class DilloHtmlForm;
26class DilloHtmlInput;
27class DilloHtml;
28
29/*
30 * Form API
31 */
32
33DilloHtmlForm *a_Html_form_new(DilloHtml *html,
34 DilloHtmlMethod method,
35 const DilloUrl *action,
36 DilloHtmlEnc enc,
37 const char *charset, bool enabled);
38
39void a_Html_form_delete(DilloHtmlForm* form);
40void a_Html_input_delete(DilloHtmlInput* input);
41void a_Html_form_submit2(void *v_form);
42void a_Html_form_reset2(void *v_form);
43void a_Html_form_display_hiddens2(void *v_form, bool display);
44
45
46/*
47 * Form parsing functions
48 */
49
50void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize);
52void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize);
53void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize);
54void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize);
55void Html_tag_content_textarea(DilloHtml *html, const char *tag, int tagsize);
57void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize);
59void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize);
61void Html_tag_open_optgroup(DilloHtml *html, const char *tag, int tagsize);
63void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize);
65
66#endif /* __FORM_HH__ */
char * charset
Definition form.cc:25
void Html_tag_close_form(DilloHtml *html)
Definition form.cc:402
void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize)
Definition form.cc:626
void Html_tag_content_textarea(DilloHtml *html, const char *tag, int tagsize)
The textarea tag.
Definition form.cc:636
void Html_tag_close_button(DilloHtml *html)
Handle close <BUTTON>
Definition form.cc:974
void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize)
Definition form.cc:868
void Html_tag_open_optgroup(DilloHtml *html, const char *tag, int tagsize)
Definition form.cc:808
void a_Html_form_delete(DilloHtmlForm *form)
Definition form.cc:244
void a_Html_input_delete(DilloHtmlInput *input)
Definition form.cc:249
void a_Html_form_submit2(void *v_form)
Definition form.cc:254
void Html_tag_close_select(DilloHtml *html)
Definition form.cc:788
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,...
Definition form.cc:589
void Html_tag_close_optgroup(DilloHtml *html)
Definition form.cc:844
DilloHtmlMethod
Definition form.hh:10
@ DILLO_HTML_METHOD_GET
Definition form.hh:12
@ DILLO_HTML_METHOD_UNKNOWN
Definition form.hh:11
@ DILLO_HTML_METHOD_POST
Definition form.hh:13
void Html_tag_close_textarea(DilloHtml *html)
Close textarea.
Definition form.cc:695
void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize)
Definition form.cc:735
void a_Html_form_reset2(void *v_form)
Definition form.cc:259
void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize)
Add a new input to current form.
Definition form.cc:432
DilloHtmlEnc
Definition form.hh:16
@ DILLO_HTML_ENC_URLENCODED
Definition form.hh:17
@ DILLO_HTML_ENC_MULTIPART
Definition form.hh:18
void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize)
Definition form.cc:907
DilloHtmlForm * a_Html_form_new(DilloHtml *html, DilloHtmlMethod method, const DilloUrl *action, DilloHtmlEnc enc, const char *charset, bool enabled)
Definition form.cc:235
void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
Handle <FORM> tag.
Definition form.cc:338
void a_Html_form_display_hiddens2(void *v_form, bool display)
Definition form.cc:264
void Html_tag_close_option(DilloHtml *html)
Definition form.cc:896
Definition url.h:88
Parse and normalize all URL's inside Dillo.