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
10
typedef
enum
{
11
DILLO_HTML_METHOD_UNKNOWN
,
12
DILLO_HTML_METHOD_GET
,
13
DILLO_HTML_METHOD_POST
14
}
DilloHtmlMethod
;
15
16
typedef
enum
{
17
DILLO_HTML_ENC_URLENCODED
,
18
DILLO_HTML_ENC_MULTIPART
19
}
DilloHtmlEnc
;
20
21
/*
22
* Classes
23
*/
24
25
class
DilloHtmlForm;
26
class
DilloHtmlInput;
27
class
DilloHtml
;
28
29
/*
30
* Form API
31
*/
32
33
DilloHtmlForm *
a_Html_form_new
(
DilloHtml
*html,
34
DilloHtmlMethod
method,
35
const
DilloUrl
*action,
36
DilloHtmlEnc
enc,
37
const
char
*
charset
,
bool
enabled);
38
39
void
a_Html_form_delete
(DilloHtmlForm*
form
);
40
void
a_Html_input_delete
(DilloHtmlInput* input);
41
void
a_Html_form_submit2
(
void
*v_form);
42
void
a_Html_form_reset2
(
void
*v_form);
43
void
a_Html_form_display_hiddens2
(
void
*v_form,
bool
display);
44
45
46
/*
47
* Form parsing functions
48
*/
49
50
void
Html_tag_open_form
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
51
void
Html_tag_close_form
(
DilloHtml
*html);
52
void
Html_tag_open_input
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
53
void
Html_tag_open_isindex
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
54
void
Html_tag_open_textarea
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
55
void
Html_tag_content_textarea
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
56
void
Html_tag_close_textarea
(
DilloHtml
*html);
57
void
Html_tag_open_select
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
58
void
Html_tag_close_select
(
DilloHtml
*html);
59
void
Html_tag_open_option
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
60
void
Html_tag_close_option
(
DilloHtml
*html);
61
void
Html_tag_open_optgroup
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
62
void
Html_tag_close_optgroup
(
DilloHtml
*html);
63
void
Html_tag_open_button
(
DilloHtml
*html,
const
char
*tag,
int
tagsize);
64
void
Html_tag_close_button
(
DilloHtml
*html);
65
66
#endif
/* __FORM_HH__ */
DilloHtml
Definition
html_common.hh:145
DilloHtml::charset
char * charset
Definition
html_common.hh:170
form
Definition
form.cc:25
Html_tag_close_form
void Html_tag_close_form(DilloHtml *html)
Definition
form.cc:402
Html_tag_open_textarea
void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize)
Definition
form.cc:626
Html_tag_content_textarea
void Html_tag_content_textarea(DilloHtml *html, const char *tag, int tagsize)
The textarea tag.
Definition
form.cc:636
Html_tag_close_button
void Html_tag_close_button(DilloHtml *html)
Handle close <BUTTON>
Definition
form.cc:974
Html_tag_open_option
void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize)
Definition
form.cc:868
Html_tag_open_optgroup
void Html_tag_open_optgroup(DilloHtml *html, const char *tag, int tagsize)
Definition
form.cc:808
a_Html_form_delete
void a_Html_form_delete(DilloHtmlForm *form)
Definition
form.cc:244
a_Html_input_delete
void a_Html_input_delete(DilloHtmlInput *input)
Definition
form.cc:249
a_Html_form_submit2
void a_Html_form_submit2(void *v_form)
Definition
form.cc:254
Html_tag_close_select
void Html_tag_close_select(DilloHtml *html)
Definition
form.cc:788
Html_tag_open_isindex
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
Html_tag_close_optgroup
void Html_tag_close_optgroup(DilloHtml *html)
Definition
form.cc:844
DilloHtmlMethod
DilloHtmlMethod
Definition
form.hh:10
DILLO_HTML_METHOD_GET
@ DILLO_HTML_METHOD_GET
Definition
form.hh:12
DILLO_HTML_METHOD_UNKNOWN
@ DILLO_HTML_METHOD_UNKNOWN
Definition
form.hh:11
DILLO_HTML_METHOD_POST
@ DILLO_HTML_METHOD_POST
Definition
form.hh:13
Html_tag_close_textarea
void Html_tag_close_textarea(DilloHtml *html)
Close textarea.
Definition
form.cc:695
Html_tag_open_select
void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize)
Definition
form.cc:735
a_Html_form_reset2
void a_Html_form_reset2(void *v_form)
Definition
form.cc:259
Html_tag_open_input
void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize)
Add a new input to current form.
Definition
form.cc:432
DilloHtmlEnc
DilloHtmlEnc
Definition
form.hh:16
DILLO_HTML_ENC_URLENCODED
@ DILLO_HTML_ENC_URLENCODED
Definition
form.hh:17
DILLO_HTML_ENC_MULTIPART
@ DILLO_HTML_ENC_MULTIPART
Definition
form.hh:18
Html_tag_open_button
void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize)
Definition
form.cc:907
a_Html_form_new
DilloHtmlForm * a_Html_form_new(DilloHtml *html, DilloHtmlMethod method, const DilloUrl *action, DilloHtmlEnc enc, const char *charset, bool enabled)
Definition
form.cc:235
Html_tag_open_form
void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
Handle <FORM> tag.
Definition
form.cc:338
a_Html_form_display_hiddens2
void a_Html_form_display_hiddens2(void *v_form, bool display)
Definition
form.cc:264
Html_tag_close_option
void Html_tag_close_option(DilloHtml *html)
Definition
form.cc:896
DilloUrl
Definition
url.h:88
url.h
Parse and normalize all URL's inside Dillo.
src
form.hh
Generated on Sun Nov 17 2024 01:31:45 for Dillo by
1.9.8