ELinks 0.18.0
document_options Struct Reference

#include <options.h>

Collaboration diagram for document_options:

Data Fields

color_mode_T color_mode
 
int cp
 cp is the codepage for which the document is being formatted; typically it is the codepage of a terminal.
 
int assume_cp
 
int hard_assume
 
int margin
 
int num_links_key
 
int use_document_colors
 
int meta_link_display
 
int default_form_input_size
 
int document_width
 
int cell_width
 
int cell_height
 
unsigned int use_link_number_color:1
 
color_flags_T color_flags
 Color model/optimizations.
 
unsigned int plain:1
 
unsigned int wrap:1
 
unsigned int links_show_goto:1
 
unsigned int html_subst_frame_chars:1
 
char * framename
 
struct el_box box
 The location of the window in which the document is rendered.
 
unsigned int needs_height:1
 
unsigned int needs_width:1
 
unsigned int no_cache:1
 Internal flag for rerendering.
 
unsigned int gradual_rerendering:1
 
unsigned int was_xml_parsed:1
 
unsigned int utf8:1
 
unsigned int dump:1
 
struct active_link_options active_link
 Active link coloring.
 
struct document_options_image_link image_link
 Options related with IMG tag.
 
The default (fallback) colors.
struct text_style default_style
 
struct document_options_colors default_color
 
HTML stuff
unsigned int tables:1
 
unsigned int table_order:1
 
unsigned int frames:1
 
unsigned int images:1
 
unsigned int iframes:1
 
unsigned int display_subs:1
 
unsigned int display_sups:1
 
unsigned int underline_links:1
 
unsigned int wrap_nbsp:1
 
Plain rendering stuff
unsigned int plain_display_links:1
 
unsigned int plain_compress_empty_lines:1
 
unsigned int plain_fixup_tables:1
 
Link navigation
unsigned int links_numbering:1
 
unsigned int use_tabindex:1
 

Related Symbols

(Note that these are not member symbols.)

void init_document_options (struct session *ses, struct document_options *doo)
 Fills the structure with values from the option system.
 
void done_document_options (struct document_options *options)
 Free allocated document options.
 
void copy_opt (struct document_options *to, struct document_options *from)
 Copies the values of one struct from to the other to.
 

Friends And Related Symbol Documentation

◆ copy_opt()

void copy_opt ( struct document_options * to,
struct document_options * from )
related

Copies the values of one struct from to the other to.

Note that the document_options.framename is dynamically allocated.

◆ done_document_options()

void done_document_options ( struct document_options * options)
related

Free allocated document options.

◆ init_document_options()

void init_document_options ( struct session * ses,
struct document_options * doo )
related

Fills the structure with values from the option system.

Field Documentation

◆ active_link

struct active_link_options document_options::active_link

Active link coloring.

This is mostly here to make use of this option cache so link drawing is faster. –jonas

◆ assume_cp

int document_options::assume_cp

◆ box

struct el_box document_options::box

The location of the window in which the document is rendered.

The position of the window (box.x and box.y)

This is not compared at all since it doesn't make any difference what position the document will fit into a frameset or so.

The width of the window (box.width)

This controls how wide tables can be rendered and so on. It is thus also to blame for the extra memory consumption when resizing because all documents has to be rerendered. We only need to compare it if not plain.

The height of the window (box.height)
Only documents containing textarea or frames uses it and we only compare it if needs_height is set.

◆ cell_height

int document_options::cell_height

◆ cell_width

int document_options::cell_width

◆ color_flags

color_flags_T document_options::color_flags

Color model/optimizations.

◆ color_mode

color_mode_T document_options::color_mode

◆ cp

int document_options::cp

cp is the codepage for which the document is being formatted; typically it is the codepage of a terminal.

It is set in render_document_frames().

◆ default_color

struct document_options_colors document_options::default_color

◆ default_form_input_size

int document_options::default_form_input_size

◆ default_style

struct text_style document_options::default_style

◆ display_subs

unsigned int document_options::display_subs

◆ display_sups

unsigned int document_options::display_sups

◆ document_width

int document_options::document_width

◆ dump

unsigned int document_options::dump

◆ framename

char* document_options::framename

◆ frames

unsigned int document_options::frames

◆ gradual_rerendering

unsigned int document_options::gradual_rerendering

◆ hard_assume

int document_options::hard_assume

◆ html_subst_frame_chars

unsigned int document_options::html_subst_frame_chars

◆ iframes

unsigned int document_options::iframes

◆ image_link

struct document_options_image_link document_options::image_link

Options related with IMG tag.

◆ images

unsigned int document_options::images

◆ links_numbering

unsigned int document_options::links_numbering

◆ links_show_goto

unsigned int document_options::links_show_goto

◆ margin

int document_options::margin

◆ meta_link_display

int document_options::meta_link_display

◆ needs_height

unsigned int document_options::needs_height

◆ needs_width

unsigned int document_options::needs_width

◆ no_cache

unsigned int document_options::no_cache

Internal flag for rerendering.

◆ num_links_key

int document_options::num_links_key

◆ plain

unsigned int document_options::plain

◆ plain_compress_empty_lines

unsigned int document_options::plain_compress_empty_lines

◆ plain_display_links

unsigned int document_options::plain_display_links

◆ plain_fixup_tables

unsigned int document_options::plain_fixup_tables

◆ table_order

unsigned int document_options::table_order

◆ tables

unsigned int document_options::tables

◆ underline_links

unsigned int document_options::underline_links

◆ use_document_colors

int document_options::use_document_colors

◆ use_link_number_color

unsigned int document_options::use_link_number_color

◆ use_tabindex

unsigned int document_options::use_tabindex

◆ utf8

unsigned int document_options::utf8

◆ was_xml_parsed

unsigned int document_options::was_xml_parsed

◆ wrap

unsigned int document_options::wrap

◆ wrap_nbsp

unsigned int document_options::wrap_nbsp

The documentation for this struct was generated from the following file: