/** * $Id: textplain.c,v 1.2 2003/02/25 21:00:27 bursa Exp $ */ #include #include #include #include "libxml/HTMLparser.h" #include "netsurf/render/html.h" #include "netsurf/render/textplain.h" static const char header[] = "
";
static const char footer[] = "
"; void textplain_create(struct content *c) { html_create(c); htmlParseChunk(c->data.html.parser, header, sizeof(header), 0); } void textplain_process_data(struct content *c, char *data, unsigned long size) { html_process_data(c, data, size); } int textplain_convert(struct content *c, unsigned int width, unsigned int height) { htmlParseChunk(c->data.html.parser, footer, sizeof(footer), 0); c->type = CONTENT_HTML; return html_convert(c, width, height); } void textplain_revive(struct content *c, unsigned int width, unsigned int height) { assert(0); } void textplain_reformat(struct content *c, unsigned int width, unsigned int height) { assert(0); } void textplain_destroy(struct content *c) { assert(0); }