1 
2 #ifndef EL__VIEWER_TEXT_TEXTAREA_H
3 #define EL__VIEWER_TEXT_TEXTAREA_H
4 
5 /* This file is largely a supserset of this header, so it doesn't hurt to just
6  * include it here, IMHO. --pasky */
7 #include "viewer/action.h"
8 #include "viewer/text/form.h"
9 
10 struct document_view;
11 struct form_control;
12 struct link;
13 struct session;
14 struct terminal;
15 
16 int area_cursor(struct form_control *fc, struct form_state *fs);
17 void draw_textarea(struct terminal *term, struct form_state *fs, struct document_view *doc_view, struct link *link);
18 unsigned char *encode_textarea(struct submitted_value *sv);
19 
20 extern int textarea_editor;
21 void textarea_edit(int, struct terminal *, struct form_state *, struct document_view *, struct link *);
22 void menu_textarea_edit(struct terminal *term, void *xxx, void *ses_);
23 
24 enum frame_event_status textarea_op_home(struct form_state *fs, struct form_control *fc);
25 enum frame_event_status textarea_op_up(struct form_state *fs, struct form_control *fc);
26 enum frame_event_status textarea_op_down(struct form_state *fs, struct form_control *fc);
27 enum frame_event_status textarea_op_end(struct form_state *fs, struct form_control *fc);
28 enum frame_event_status textarea_op_bob(struct form_state *fs, struct form_control *fc);
29 enum frame_event_status textarea_op_eob(struct form_state *fs, struct form_control *fc);
30 enum frame_event_status textarea_op_enter(struct form_state *fs, struct form_control *fc);
31 
32 void set_textarea(struct document_view *doc_view, int direction);
33 
34 #endif
35