summaryrefslogtreecommitdiff
path: root/src/form.hh
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-06-07 15:29:01 +0200
committerjcid <devnull@localhost>2008-06-07 15:29:01 +0200
commit062c2f0de95a179cd28cfe847be838621f898584 (patch)
tree57b06edae4e731761a31bfdf92179f330f49dd7a /src/form.hh
parent17b813d3c5a99f57d6e430261b8f969db21cf1d2 (diff)
- html.cc cleanup (in progress): source split.
Diffstat (limited to 'src/form.hh')
-rw-r--r--src/form.hh31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/form.hh b/src/form.hh
index 291bfd75..af7ff6f4 100644
--- a/src/form.hh
+++ b/src/form.hh
@@ -1,6 +1,8 @@
#ifndef __FORM_HH__
#define __FORM_HH__
+#include "url.h"
+
/*
* Typedefs
*/
@@ -21,5 +23,34 @@ typedef enum {
*/
class DilloHtmlForm;
+class DilloHtml;
+
+/*
+ * Form API
+ */
+
+DilloHtmlForm *a_Html_form_new(DilloHtml *html,
+ DilloHtmlMethod method,
+ const DilloUrl *action,
+ DilloHtmlEnc enc,
+ const char *charset);
+
+void a_Html_form_delete(DilloHtmlForm* form);
+
+/*
+ * Form parsing functions
+ */
+
+void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_form(DilloHtml *html, int TagIdx);
+void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_textarea(DilloHtml *html, int TagIdx);
+void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_select(DilloHtml *html, int TagIdx);
+void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize);
+void Html_tag_close_button(DilloHtml *html, int TagIdx);
#endif /* __FORM_HH__ */