1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

document/html: Move enum html_special_type from parser.h to renderer.h

...since it is renderer interface.
This commit is contained in:
Petr Baudis 2007-08-28 22:19:33 +02:00 committed by Laurent MONIN
parent 09cf904814
commit 37b20d998c
3 changed files with 23 additions and 17 deletions

View File

@ -17,6 +17,7 @@ struct menu_item;
struct part;
struct string;
struct uri;
enum html_special_type;
/* XXX: This is just terible - this interface is from 75% only for other HTML
* files - there's lack of any well defined interface and it's all randomly
@ -136,23 +137,6 @@ struct html_element {
#define is_inline_element(e) (e->linebreak == 0)
#define is_block_element(e) (e->linebreak > 0)
enum html_special_type {
SP_TAG,
SP_FORM,
SP_CONTROL,
SP_TABLE,
SP_USED,
SP_FRAMESET,
SP_FRAME,
SP_NOWRAP,
SP_CACHE_CONTROL,
SP_CACHE_EXPIRES,
SP_REFRESH,
SP_STYLESHEET,
SP_COLOR_LINK_LINES,
SP_SCRIPT,
};
/* Interface for the renderer */
struct html_context *

View File

@ -20,6 +20,7 @@
#include "document/html/parser/parse.h"
#include "document/html/parser/stack.h"
#include "document/html/parser.h"
#include "document/html/renderer.h"
#include "document/options.h"
#include "intl/charsets.h"
#include "util/conv.h"

View File

@ -12,6 +12,27 @@ struct string;
void render_html_document(struct cache_entry *cached, struct document *document, struct string *buffer);
/* Interface with parser.c */
enum html_special_type {
SP_TAG,
SP_FORM,
SP_CONTROL,
SP_TABLE,
SP_USED,
SP_FRAMESET,
SP_FRAME,
SP_NOWRAP,
SP_CACHE_CONTROL,
SP_CACHE_EXPIRES,
SP_REFRESH,
SP_STYLESHEET,
SP_COLOR_LINK_LINES,
SP_SCRIPT,
};
/* Interface with tables.c */
/* This holds some context about what we're currently rendering. We only need