diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-05-06 20:40:09 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-05-06 20:40:09 +0000 |
commit | e71691bae890040b83cfd54a2d9a1097d5026866 (patch) | |
tree | 96b2680dc6559ca0ab88fa0b6a533c13b7c9487e /render/textplain.h | |
parent | e77b1a29550e4753f771848705975295a6ebe99e (diff) | |
download | netsurf-e71691bae890040b83cfd54a2d9a1097d5026866.tar.gz netsurf-e71691bae890040b83cfd54a2d9a1097d5026866.tar.bz2 |
Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
Diffstat (limited to 'render/textplain.h')
-rw-r--r-- | render/textplain.h | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/render/textplain.h b/render/textplain.h index c338220d1..66e4e83ee 100644 --- a/render/textplain.h +++ b/render/textplain.h @@ -32,36 +32,8 @@ struct hlcache_handle; struct http_parameter; struct rect; -struct textplain_line { - size_t start; - size_t length; -}; - -struct content_textplain_data { - char *encoding; - void *inputstream; - char *utf8_data; - size_t utf8_data_size; - size_t utf8_data_allocated; - unsigned long physical_line_count; - struct textplain_line *physical_line; - int formatted_width; -}; - -bool textplain_create(struct content *c, const struct http_parameter *params); -bool textplain_process_data(struct content *c, - const char *data, unsigned int size); -bool textplain_convert(struct content *c); -void textplain_mouse_track(struct content *c, struct browser_window *bw, - browser_mouse_state mouse, int x, int y); -void textplain_mouse_action(struct content *c, struct browser_window *bw, - browser_mouse_state mouse, int x, int y); -void textplain_reformat(struct content *c, int width, int height); -void textplain_destroy(struct content *c); -bool textplain_redraw(struct content *c, int x, int y, - int width, int height, const struct rect *clip, - float scale, colour background_colour); -bool textplain_clone(const struct content *old, struct content *new_content); +nserror textplain_init(void); +void textplain_fini(void); /* access to lines for text selection and searching */ unsigned long textplain_line_count(struct hlcache_handle *h); |