ELinks 0.16.1.1
parser.h File Reference
#include "document/format.h"
#include "document/forms.h"
#include "document/html/renderer.h"
#include "intl/charsets.h"
#include "util/align.h"
#include "util/color.h"
#include "util/lists.h"
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  text_attrib_color
struct  text_attrib
struct  par_attrib
struct  html_element

Macros

#define is_inline_element(e)
#define is_block_element(e)

Typedefs

typedef unsigned char format_list_flag_T
typedef unsigned char html_element_pseudo_class_T

Enumerations

enum  format_list_flag {
  P_NO_BULLET = 0 , P_NUMBER = 1 , P_alpha = 2 , P_ALPHA = 3 ,
  P_roman = 4 , P_ROMAN = 5 , P_DISC = 1 , P_O = 2 ,
  P_SQUARE = 3 , P_LISTMASK = 7 , P_COMPACT = 8
}
enum  html_element_mortality_type { ELEMENT_IMMORTAL , ELEMENT_DONT_KILL , ELEMENT_KILLABLE , ELEMENT_WEAK }
enum  html_element_pseudo_class { ELEMENT_LINK = 1 , ELEMENT_VISITED = 2 }

Functions

struct html_contextinit_html_parser (struct uri *uri, struct document_options *options, char *start, char *end, struct string *head, struct string *title, void(*put_chars)(struct html_context *, const char *, int), void(*line_break)(struct html_context *), void *(*special)(struct html_context *, html_special_type_T,...))
void done_html_parser (struct html_context *html_context)
void * init_html_parser_state (struct html_context *html_context, enum html_element_mortality_type type, int align, int margin, int width)
void done_html_parser_state (struct html_context *html_context, void *state)
int get_bgcolor (struct html_context *html_context, char *a, color_T *rgb)
void set_fragment_identifier (struct html_context *html_context, char *attr_name, const char *attr)
void add_fragment_identifier (struct html_context *html_context, struct part *, char *attr)
int get_image_map (char *head, char *pos, char *eof, struct menu_item **menu, struct memory_list **ml, struct uri *uri, struct document_options *options, char *target_base, int to, int def, int hdef)
void ln_break (struct html_context *html_context, int n)
int get_color (struct html_context *html_context, char *a, const char *c, color_T *rgb)
int get_color2 (struct html_context *html_context, char *value_value, color_T *rgb)

Macro Definition Documentation

◆ is_block_element

#define is_block_element ( e)
Value:
((e)->linebreak > 0)

◆ is_inline_element

#define is_inline_element ( e)
Value:
((e)->linebreak == 0)

Typedef Documentation

◆ format_list_flag_T

typedef unsigned char format_list_flag_T

◆ html_element_pseudo_class_T

typedef unsigned char html_element_pseudo_class_T

Enumeration Type Documentation

◆ format_list_flag

Enumerator
P_NO_BULLET 
P_NUMBER 
P_alpha 
P_ALPHA 
P_roman 
P_ROMAN 
P_DISC 
P_O 
P_SQUARE 
P_LISTMASK 
P_COMPACT 

◆ html_element_mortality_type

Enumerator
ELEMENT_IMMORTAL 
ELEMENT_DONT_KILL 
ELEMENT_KILLABLE 
ELEMENT_WEAK 

◆ html_element_pseudo_class

Enumerator
ELEMENT_LINK 
ELEMENT_VISITED 

Function Documentation

◆ add_fragment_identifier()

void add_fragment_identifier ( struct html_context * html_context,
struct part * part,
char * attr )

◆ done_html_parser()

void done_html_parser ( struct html_context * html_context)

◆ done_html_parser_state()

void done_html_parser_state ( struct html_context * html_context,
void * state )

◆ get_bgcolor()

int get_bgcolor ( struct html_context * html_context,
char * a,
color_T * rgb )

◆ get_color()

int get_color ( struct html_context * html_context,
char * a,
const char * c,
color_T * rgb )

◆ get_color2()

int get_color2 ( struct html_context * html_context,
char * value_value,
color_T * rgb )

◆ get_image_map()

int get_image_map ( char * head,
char * pos,
char * eof,
struct menu_item ** menu,
struct memory_list ** ml,
struct uri * uri,
struct document_options * options,
char * target_base,
int to,
int def,
int hdef )

◆ init_html_parser()

struct html_context * init_html_parser ( struct uri * uri,
struct document_options * options,
char * start,
char * end,
struct string * head,
struct string * title,
void(* put_chars )(struct html_context *, const char *, int),
void(* line_break )(struct html_context *),
void *(* special )(struct html_context *, html_special_type_T,...) )

◆ init_html_parser_state()

void * init_html_parser_state ( struct html_context * html_context,
enum html_element_mortality_type type,
int align,
int margin,
int width )

◆ ln_break()

void ln_break ( struct html_context * html_context,
int n )

◆ set_fragment_identifier()

void set_fragment_identifier ( struct html_context * html_context,
char * attr_name,
const char * attr )