Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mdvi.h File Reference
#include <stdio.h>
#include <sys/types.h>
#include <math.h>
#include "sysdeps.h"
#include "bitmap.h"
#include "common.h"
#include "defaults.h"
#include "dviopcodes.h"
#include "hash.h"
#include "paper.h"
#include "fontmap.h"
+ Include dependency graph for mdvi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _DviDevice
 
struct  _TFMChar
 
struct  _TFMInfo
 
struct  _DviGlyph
 
struct  _DviFontInfo
 
struct  _DviFontChar
 
struct  _DviFontRef
 
struct  _DviFontSearch
 
struct  _DviFont
 
struct  _DviParams
 
struct  _DviBuffer
 
struct  _DviState
 
struct  _DviColorPair
 
struct  _DviContext
 
struct  _DviRange
 

Macros

#define ISVIRTUAL(font)   ((font)->search.info->getglyph == NULL)
 
#define SEARCH_DONE(s)   ((s).id < 0)
 
#define SEARCH_INIT(s, name, h, v)
 
#define RANGE_HAS_LOWER(x)   ((x) == MDVI_RANGE_BOUNDED || (x) == MDVI_RANGE_LOWER)
 
#define RANGE_HAS_UPPER(x)   ((x) == MDVI_RANGE_BOUNDED || (x) == MDVI_RANGE_UPPER)
 
#define MDVI_PARAM_ANTIALIASED   1
 
#define MDVI_PARAM_MONO   2
 
#define MDVI_PARAM_CHARBOXES   4
 
#define MDVI_PARAM_SHOWUNDEF   8
 
#define MDVI_PARAM_DELAYFONTS   16
 
#define MDVI_FONTPRIO_FALLBACK   -3
 
#define MDVI_FONTPRIO_LOWEST   -2
 
#define MDVI_FONTPRIO_LOW   -1
 
#define MDVI_FONTPRIO_NORMAL   0
 
#define MDVI_FONTPRIO_HIGH   1
 
#define MDVI_FONTPRIO_HIGHEST   2
 
#define MDVI_FONT_ENCODED   (1 << 0)
 
#define MDVI_GLYPH_EMPTY   ((void *)1)
 
#define MDVI_GLYPH_NONEMPTY(x)   ((x) && (x) != MDVI_GLYPH_EMPTY)
 
#define MDVI_GLYPH_UNSET(x)   ((x) == NULL)
 
#define MDVI_GLYPH_ISEMPTY(x)   ((x) == MDVI_GLYPH_EMPTY)
 
#define MDVI_ENABLED(d, x)   ((d)->params.flags & (x))
 
#define MDVI_DISABLED(d, x)   !MDVI_ENABLED((d), (x))
 
#define MDVI_LASTPAGE(d)   ((d)->npages - 1)
 
#define MDVI_NPAGES(d)   (d)->npages
 
#define MDVI_VALIDPAGE(d, p)   ((p) >= 0 && (p) <= MDVI_LASTPAGE(d))
 
#define MDVI_FLAGS(d)   (d)->params.flags
 
#define MDVI_SHRINK_FROM_DPI(d)   Max(1, (d) / 75)
 
#define MDVI_CURRFG(d)   (d)->curr_fg
 
#define MDVI_CURRBG(d)   (d)->curr_bg
 
#define pixel_round(d, v)   (int)((d)->params.conv * (v) + 0.5)
 
#define vpixel_round(d, v)   (int)((d)->params.vconv * (v) + 0.5)
 
#define rule_round(d, v)   (int)((d)->params.conv * (v) + 0.99999) /*9999999)*/
 
#define vrule_round(d, v)   (int)((d)->params.vconv * (v) + 0.99999)
 
#define get_metrics(name)   get_font_metrics((name), DviFontAny, NULL)
 
#define mdvi_config_one(d, x, y)   mdvi_configure((d), (x), (y), MDVI_PARAM_LAST)
 
#define mdvi_set_dpi(d, x)   mdvi_config_one((d), MDVI_SET_DPI, (x))
 
#define mdvi_set_xdpi(d, x)   mdvi_config_one((d), MDVI_SET_XDPI, (x))
 
#define mdvi_set_ydpi(d, x)   mdvi_config_one((d), MDVI_SET_YDPI, (x))
 
#define mdvi_set_hshrink(d, h)   mdvi_config_one((d), MDVI_SET_XSHRINK, (h))
 
#define mdvi_set_vshrink(d, h)   mdvi_config_one((d), MDVI_SET_YSHRINK, (h))
 
#define mdvi_set_gamma(d, g)   mdvi_config_one((d), MDVI_SET_GAMMA, (g))
 
#define mdvi_set_density(d, x)   mdvi_config_one((d), MDVI_SET_DENSITY, (x))
 
#define mdvi_set_drift(d, x)   mdvi_config_one((d), MDVI_SET_DRIFT, (x))
 
#define mdvi_set_hdrift(d, h)   mdvi_config_one((d), MDVI_SET_HDRIFT, (h))
 
#define mdvi_set_vdrift(d, v)   mdvi_config_one((d), MDVI_SET_VDRIFT, (v))
 
#define mdvi_set_mag(d, m)   mdvi_config_one((d), MDVI_SET_MAGNIFICATION, (m))
 
#define mdvi_set_foreground(d, x)   mdvi_config_one((d), MDVI_SET_FOREGROUND, (x))
 
#define mdvi_set_background(d, x)   mdvi_config_one((d), MDVI_SET_BACKGROUND, (x))
 
#define mdvi_set_orientation(d, x)   mdvi_config_one((d), MDVI_SET_ORIENTATION, (x))
 
#define mdvi_set_shrink(d, h, v)
 
#define MDVI_FONTSEL_BITMAP   (1 << 0)
 
#define MDVI_FONTSEL_GREY   (1 << 1)
 
#define MDVI_FONTSEL_GLYPH   (1 << 2)
 
#define FONTCHAR(font, code)
 
#define FONT_GLYPH_COUNT(font)   ((font)->hic - (font)->loc + 1)
 
#define glyph_present(x)   ((x) && (x)->offset)
 
#define font_free_glyph(dev, font, code)
 
#define mdvi_stop_logging(x)   mdvi_set_logstream(NULL)
 

Typedefs

typedef struct _DviGlyph DviGlyph
 
typedef struct _DviDevice DviDevice
 
typedef struct _DviFontChar DviFontChar
 
typedef struct _DviFontRef DviFontRef
 
typedef struct _DviFontInfo DviFontInfo
 
typedef struct _DviFont DviFont
 
typedef struct _DviState DviState
 
typedef struct _DviPageSpecDviPageSpec
 
typedef struct _DviParams DviParams
 
typedef struct _DviBuffer DviBuffer
 
typedef struct _DviContext DviContext
 
typedef struct _DviRange DviRange
 
typedef struct _DviColorPair DviColorPair
 
typedef struct _DviSection DviSection
 
typedef struct _TFMChar TFMChar
 
typedef struct _TFMInfo TFMInfo
 
typedef struct _DviFontSearch DviFontSearch
 
typedef struct _DviFontClass DviFontClass
 
typedef void DviFreeFunc __PROTO ((void *))
 
typedef Ulong DviColor
 
typedef long PageNum [11]
 

Enumerations

enum  DviBool { FALSE = 0, TRUE = 1 }
 
enum  DviFontType {
  DviFontAny = -1, DviFontPK = 0, DviFontGF = 1, DviFontVF = 2,
  DviFontTFM = 3, DviFontT1 = 4, DviFontTT = 5, DviFontAFM = 6,
  DviFontOFM = 7
}
 
enum  DviOrientation {
  MDVI_ORIENT_TBLR = 0, MDVI_ORIENT_TBRL = 1, MDVI_ORIENT_BTLR = 2, MDVI_ORIENT_BTRL = 3,
  MDVI_ORIENT_RP90 = 4, MDVI_ORIENT_RM90 = 5, MDVI_ORIENT_IRP90 = 6, MDVI_ORIENT_IRM90 = 7
}
 
enum  DviPageSort {
  MDVI_PAGE_SORT_UP, MDVI_PAGE_SORT_DOWN, MDVI_PAGE_SORT_RANDOM, MDVI_PAGE_SORT_DVI_UP,
  MDVI_PAGE_SORT_DVI_DOWN, MDVI_PAGE_SORT_NONE
}
 
enum  DviParamCode {
  MDVI_PARAM_LAST = 0, MDVI_SET_DPI = 1, MDVI_SET_XDPI = 2, MDVI_SET_YDPI = 3,
  MDVI_SET_SHRINK = 4, MDVI_SET_XSHRINK = 5, MDVI_SET_YSHRINK = 6, MDVI_SET_GAMMA = 7,
  MDVI_SET_DENSITY = 8, MDVI_SET_MAGNIFICATION = 9, MDVI_SET_DRIFT = 10, MDVI_SET_HDRIFT = 11,
  MDVI_SET_VDRIFT = 12, MDVI_SET_ORIENTATION = 13, MDVI_SET_FOREGROUND = 14, MDVI_SET_BACKGROUND = 15
}
 
enum  DviRangeType { MDVI_RANGE_BOUNDED, MDVI_RANGE_LOWER, MDVI_RANGE_UPPER, MDVI_RANGE_UNBOUNDED }
 

Functions

int mdvi_reload __PROTO ((DviContext *, DviParams *))
 
void mdvi_setpage __PROTO ((DviContext *, int))
 
void mdvi_shrink_glyph __PROTO ((DviContext *, DviFont *, DviFontChar *, DviGlyph *))
 
int mdvi_configure __PROTO ((DviContext *, DviParamCode,...))
 
int get_tfm_chars __PROTO ((DviParams *, DviFont *, TFMInfo *, int))
 
int tfm_load_file __PROTO ((const char *, TFMInfo *))
 
TFMInfo *get_font_metrics __PROTO ((const char *, int, const char *))
 
char *lookup_font_metrics __PROTO ((const char *, int *))
 
void free_font_metrics __PROTO ((TFMInfo *))
 
void flush_font_metrics __PROTO ((void))
 
void mdvi_sort_pages __PROTO ((DviContext *, DviPageSort))
 
void mdvi_init_kpathsea __PROTO ((const char *, const char *, const char *, int, const char *))
 
DviContext *mdvi_init_context __PROTO ((DviParams *, DviPageSpec *, const char *))
 
void mdvi_destroy_context __PROTO ((DviContext *))
 
DviRange *mdvi_parse_range __PROTO ((const char *, DviRange *, int *, char **))
 
DviPageSpec *mdvi_parse_page_spec __PROTO ((const char *))
 
void mdvi_free_page_spec __PROTO ((DviPageSpec *))
 
int mdvi_in_range __PROTO ((DviRange *, int, int))
 
int mdvi_range_length __PROTO ((DviRange *, int))
 
int mdvi_page_selected __PROTO ((DviPageSpec *, PageNum, int))
 
int mdvi_register_special __PROTO ((const char *label, const char *prefix, const char *regex, DviSpecialHandler handler, int replace))
 
int mdvi_unregister_special __PROTO ((const char *prefix))
 
int mdvi_do_special __PROTO ((DviContext *dvi, char *dvi_special))
 
DviFontRef *font_reference __PROTO ((DviParams *params, Int32 dvi_id, const char *font_name, Int32 checksum, int xdpi, int ydpi, Int32 scale_factor))
 
void font_drop_one __PROTO ((DviFontRef *))
 
void font_reset_one_glyph __PROTO ((DviDevice *, DviFontChar *, int))
 
void font_reset_font_glyphs __PROTO ((DviDevice *, DviFont *, int))
 
void font_reset_chain_glyphs __PROTO ((DviDevice *, DviFontRef *, int))
 
int font_reopen __PROTO ((DviFont *))
 
DviFontChar *font_get_glyph __PROTO ((DviContext *, DviFont *, int))
 
void font_transform_glyph __PROTO ((DviOrientation, DviGlyph *))
 
int font_free_unused __PROTO ((DviDevice *))
 
int mdvi_encode_font __PROTO ((DviParams *, DviFont *))
 
int mdvi_register_font_type __PROTO ((DviFontInfo *, int))
 
char **mdvi_list_font_class __PROTO ((int))
 
int mdvi_unregister_font_type __PROTO ((const char *, int))
 
char *mdvi_lookup_font __PROTO ((DviFontSearch *))
 
DviFont *mdvi_add_font __PROTO ((const char *, Int32, int, int, Int32))
 
int mdvi_set_logstream __PROTO ((FILE *))
 

Macro Definition Documentation

#define font_free_glyph (   dev,
  font,
  code 
)
Value:

Definition at line 597 of file mdvi.h.

#define FONT_GLYPH_COUNT (   font)    ((font)->hic - (font)->loc + 1)

Definition at line 551 of file mdvi.h.

#define FONTCHAR (   font,
  code 
)
Value:
(((code) < font->loc || (code) > font->hic || !(font)->chars) ? \
NULL : &font->chars[(code) - (font)->loc])

Definition at line 548 of file mdvi.h.

#define get_metrics (   name)    get_font_metrics((name), DviFontAny, NULL)

Definition at line 491 of file mdvi.h.

#define glyph_present (   x)    ((x) && (x)->offset)

Definition at line 553 of file mdvi.h.

#define ISVIRTUAL (   font)    ((font)->search.info->getglyph == NULL)

Definition at line 237 of file mdvi.h.

#define mdvi_config_one (   d,
  x,
 
)    mdvi_configure((d), (x), (y), MDVI_PARAM_LAST)

Definition at line 501 of file mdvi.h.

#define MDVI_CURRBG (   d)    (d)->curr_bg

Definition at line 467 of file mdvi.h.

#define MDVI_CURRFG (   d)    (d)->curr_fg

Definition at line 466 of file mdvi.h.

#define MDVI_DISABLED (   d,
 
)    !MDVI_ENABLED((d), (x))

Definition at line 459 of file mdvi.h.

#define MDVI_ENABLED (   d,
 
)    ((d)->params.flags & (x))

Definition at line 458 of file mdvi.h.

#define MDVI_FLAGS (   d)    (d)->params.flags

Definition at line 464 of file mdvi.h.

#define MDVI_FONT_ENCODED   (1 << 0)

Definition at line 448 of file mdvi.h.

#define MDVI_FONTPRIO_FALLBACK   -3

Definition at line 441 of file mdvi.h.

#define MDVI_FONTPRIO_HIGH   1

Definition at line 445 of file mdvi.h.

#define MDVI_FONTPRIO_HIGHEST   2

Definition at line 446 of file mdvi.h.

#define MDVI_FONTPRIO_LOW   -1

Definition at line 443 of file mdvi.h.

#define MDVI_FONTPRIO_LOWEST   -2

Definition at line 442 of file mdvi.h.

#define MDVI_FONTPRIO_NORMAL   0

Definition at line 444 of file mdvi.h.

#define MDVI_FONTSEL_BITMAP   (1 << 0)

Definition at line 544 of file mdvi.h.

#define MDVI_FONTSEL_GLYPH   (1 << 2)

Definition at line 546 of file mdvi.h.

#define MDVI_FONTSEL_GREY   (1 << 1)

Definition at line 545 of file mdvi.h.

#define MDVI_GLYPH_EMPTY   ((void *)1)

Definition at line 450 of file mdvi.h.

#define MDVI_GLYPH_ISEMPTY (   x)    ((x) == MDVI_GLYPH_EMPTY)

Definition at line 456 of file mdvi.h.

#define MDVI_GLYPH_NONEMPTY (   x)    ((x) && (x) != MDVI_GLYPH_EMPTY)

Definition at line 452 of file mdvi.h.

#define MDVI_GLYPH_UNSET (   x)    ((x) == NULL)

Definition at line 454 of file mdvi.h.

#define MDVI_LASTPAGE (   d)    ((d)->npages - 1)

Definition at line 461 of file mdvi.h.

#define MDVI_NPAGES (   d)    (d)->npages

Definition at line 462 of file mdvi.h.

#define MDVI_PARAM_ANTIALIASED   1

Definition at line 430 of file mdvi.h.

#define MDVI_PARAM_CHARBOXES   4

Definition at line 432 of file mdvi.h.

#define MDVI_PARAM_DELAYFONTS   16

Definition at line 434 of file mdvi.h.

#define MDVI_PARAM_MONO   2

Definition at line 431 of file mdvi.h.

#define MDVI_PARAM_SHOWUNDEF   8

Definition at line 433 of file mdvi.h.

#define mdvi_set_background (   d,
 
)    mdvi_config_one((d), MDVI_SET_BACKGROUND, (x))

Definition at line 516 of file mdvi.h.

#define mdvi_set_density (   d,
 
)    mdvi_config_one((d), MDVI_SET_DENSITY, (x))

Definition at line 508 of file mdvi.h.

#define mdvi_set_dpi (   d,
 
)    mdvi_config_one((d), MDVI_SET_DPI, (x))

Definition at line 502 of file mdvi.h.

#define mdvi_set_drift (   d,
 
)    mdvi_config_one((d), MDVI_SET_DRIFT, (x))

Definition at line 509 of file mdvi.h.

#define mdvi_set_foreground (   d,
 
)    mdvi_config_one((d), MDVI_SET_FOREGROUND, (x))

Definition at line 514 of file mdvi.h.

#define mdvi_set_gamma (   d,
 
)    mdvi_config_one((d), MDVI_SET_GAMMA, (g))

Definition at line 507 of file mdvi.h.

#define mdvi_set_hdrift (   d,
 
)    mdvi_config_one((d), MDVI_SET_HDRIFT, (h))

Definition at line 510 of file mdvi.h.

#define mdvi_set_hshrink (   d,
 
)    mdvi_config_one((d), MDVI_SET_XSHRINK, (h))

Definition at line 505 of file mdvi.h.

#define mdvi_set_mag (   d,
 
)    mdvi_config_one((d), MDVI_SET_MAGNIFICATION, (m))

Definition at line 512 of file mdvi.h.

#define mdvi_set_orientation (   d,
 
)    mdvi_config_one((d), MDVI_SET_ORIENTATION, (x))

Definition at line 518 of file mdvi.h.

#define mdvi_set_shrink (   d,
  h,
 
)
Value:

Definition at line 520 of file mdvi.h.

#define mdvi_set_vdrift (   d,
 
)    mdvi_config_one((d), MDVI_SET_VDRIFT, (v))

Definition at line 511 of file mdvi.h.

#define mdvi_set_vshrink (   d,
 
)    mdvi_config_one((d), MDVI_SET_YSHRINK, (h))

Definition at line 506 of file mdvi.h.

#define mdvi_set_xdpi (   d,
 
)    mdvi_config_one((d), MDVI_SET_XDPI, (x))

Definition at line 503 of file mdvi.h.

#define mdvi_set_ydpi (   d,
 
)    mdvi_config_one((d), MDVI_SET_YDPI, (x))

Definition at line 504 of file mdvi.h.

#define MDVI_SHRINK_FROM_DPI (   d)    Max(1, (d) / 75)

Definition at line 465 of file mdvi.h.

#define mdvi_stop_logging (   x)    mdvi_set_logstream(NULL)

Definition at line 619 of file mdvi.h.

#define MDVI_VALIDPAGE (   d,
 
)    ((p) >= 0 && (p) <= MDVI_LASTPAGE(d))

Definition at line 463 of file mdvi.h.

#define pixel_round (   d,
 
)    (int)((d)->params.conv * (v) + 0.5)

Definition at line 469 of file mdvi.h.

#define RANGE_HAS_LOWER (   x)    ((x) == MDVI_RANGE_BOUNDED || (x) == MDVI_RANGE_LOWER)

Definition at line 421 of file mdvi.h.

#define RANGE_HAS_UPPER (   x)    ((x) == MDVI_RANGE_BOUNDED || (x) == MDVI_RANGE_UPPER)

Definition at line 423 of file mdvi.h.

#define rule_round (   d,
 
)    (int)((d)->params.conv * (v) + 0.99999) /*9999999)*/

Definition at line 471 of file mdvi.h.

#define SEARCH_DONE (   s)    ((s).id < 0)

Definition at line 238 of file mdvi.h.

#define SEARCH_INIT (   s,
  name,
  h,
 
)
Value:
do { \
(s).id = 0; \
(s).curr = NULL; \
(s).hdpi = (h); \
(s).vdpi = (v); \
(s).wanted_name = (name); \
(s).actual_name = NULL; \
} while(0)

Definition at line 239 of file mdvi.h.

#define vpixel_round (   d,
 
)    (int)((d)->params.vconv * (v) + 0.5)

Definition at line 470 of file mdvi.h.

#define vrule_round (   d,
 
)    (int)((d)->params.vconv * (v) + 0.99999)

Definition at line 472 of file mdvi.h.

Typedef Documentation

typedef void DviSpecialHandler __PROTO((DviContext *dvi, const char *prefix, const char *arg))

Definition at line 51 of file mdvi.h.

typedef struct _DviBuffer DviBuffer

Definition at line 40 of file mdvi.h.

typedef Ulong DviColor

Definition at line 54 of file mdvi.h.

typedef struct _DviColorPair DviColorPair

Definition at line 43 of file mdvi.h.

typedef struct _DviContext DviContext

Definition at line 41 of file mdvi.h.

typedef struct _DviDevice DviDevice

Definition at line 32 of file mdvi.h.

typedef struct _DviFont DviFont

Definition at line 36 of file mdvi.h.

typedef struct _DviFontChar DviFontChar

Definition at line 33 of file mdvi.h.

typedef struct _DviFontClass DviFontClass

Definition at line 49 of file mdvi.h.

typedef struct _DviFontInfo DviFontInfo

Definition at line 35 of file mdvi.h.

typedef struct _DviFontRef DviFontRef

Definition at line 34 of file mdvi.h.

typedef struct _DviFontSearch DviFontSearch

Definition at line 47 of file mdvi.h.

typedef struct _DviGlyph DviGlyph

Definition at line 31 of file mdvi.h.

typedef struct _DviPageSpec* DviPageSpec

Definition at line 38 of file mdvi.h.

typedef struct _DviParams DviParams

Definition at line 39 of file mdvi.h.

typedef struct _DviRange DviRange

Definition at line 42 of file mdvi.h.

typedef struct _DviSection DviSection

Definition at line 44 of file mdvi.h.

typedef struct _DviState DviState

Definition at line 37 of file mdvi.h.

typedef long PageNum[11]

Definition at line 76 of file mdvi.h.

typedef struct _TFMChar TFMChar

Definition at line 45 of file mdvi.h.

typedef struct _TFMInfo TFMInfo

Definition at line 46 of file mdvi.h.

Enumeration Type Documentation

enum DviBool
Enumerator
FALSE 
TRUE 

Definition at line 63 of file mdvi.h.

63  {
64  FALSE = 0,
65  TRUE = 1
66 } DviBool;
Enumerator
DviFontAny 
DviFontPK 
DviFontGF 
DviFontVF 
DviFontTFM 
DviFontT1 
DviFontTT 
DviFontAFM 
DviFontOFM 

Definition at line 212 of file mdvi.h.

212  {
213  DviFontAny = -1,
214  DviFontPK = 0,
215  DviFontGF = 1,
216  DviFontVF = 2,
217  DviFontTFM = 3,
218  DviFontT1 = 4,
219  DviFontTT = 5,
220  DviFontAFM = 6,
221  DviFontOFM = 7
222 } DviFontType;
Enumerator
MDVI_ORIENT_TBLR 
MDVI_ORIENT_TBRL 
MDVI_ORIENT_BTLR 
MDVI_ORIENT_BTRL 
MDVI_ORIENT_RP90 
MDVI_ORIENT_RM90 
MDVI_ORIENT_IRP90 
MDVI_ORIENT_IRM90 

Definition at line 274 of file mdvi.h.

274  {
275  MDVI_ORIENT_TBLR = 0, /* top to bottom, left to right */
276  MDVI_ORIENT_TBRL = 1, /* top to bottom, right to left */
277  MDVI_ORIENT_BTLR = 2, /* bottom to top, left to right */
278  MDVI_ORIENT_BTRL = 3, /* bottom to top, right to left */
279  MDVI_ORIENT_RP90 = 4, /* rotated +90 degrees (counter-clockwise) */
280  MDVI_ORIENT_RM90 = 5, /* rotated -90 degrees (clockwise) */
281  MDVI_ORIENT_IRP90 = 6, /* flip horizontally, then rotate by +90 */
282  MDVI_ORIENT_IRM90 = 7 /* rotate by -90, then flip horizontally */
Enumerator
MDVI_PAGE_SORT_UP 
MDVI_PAGE_SORT_DOWN 
MDVI_PAGE_SORT_RANDOM 
MDVI_PAGE_SORT_DVI_UP 
MDVI_PAGE_SORT_DVI_DOWN 
MDVI_PAGE_SORT_NONE 

Definition at line 285 of file mdvi.h.

285  {
286  MDVI_PAGE_SORT_UP, /* up, using \counter0 */
287  MDVI_PAGE_SORT_DOWN, /* down, using \counter0 */
288  MDVI_PAGE_SORT_RANDOM, /* randomly */
289  MDVI_PAGE_SORT_DVI_UP, /* up, by location in DVI file */
290  MDVI_PAGE_SORT_DVI_DOWN, /* down, by location in DVI file */
291  MDVI_PAGE_SORT_NONE /* don't sort */
292 } DviPageSort;
Enumerator
MDVI_PARAM_LAST 
MDVI_SET_DPI 
MDVI_SET_XDPI 
MDVI_SET_YDPI 
MDVI_SET_SHRINK 
MDVI_SET_XSHRINK 
MDVI_SET_YSHRINK 
MDVI_SET_GAMMA 
MDVI_SET_DENSITY 
MDVI_SET_MAGNIFICATION 
MDVI_SET_DRIFT 
MDVI_SET_HDRIFT 
MDVI_SET_VDRIFT 
MDVI_SET_ORIENTATION 
MDVI_SET_FOREGROUND 
MDVI_SET_BACKGROUND 

Definition at line 318 of file mdvi.h.

318  {
319  MDVI_PARAM_LAST = 0,
320  MDVI_SET_DPI = 1,
321  MDVI_SET_XDPI = 2,
322  MDVI_SET_YDPI = 3,
323  MDVI_SET_SHRINK = 4,
324  MDVI_SET_XSHRINK = 5,
325  MDVI_SET_YSHRINK = 6,
326  MDVI_SET_GAMMA = 7,
327  MDVI_SET_DENSITY = 8,
329  MDVI_SET_DRIFT = 10,
330  MDVI_SET_HDRIFT = 11,
331  MDVI_SET_VDRIFT = 12,
333  MDVI_SET_FOREGROUND = 14,
335 } DviParamCode;
Enumerator
MDVI_RANGE_BOUNDED 
MDVI_RANGE_LOWER 
MDVI_RANGE_UPPER 
MDVI_RANGE_UNBOUNDED 

Definition at line 403 of file mdvi.h.

403  {
404  MDVI_RANGE_BOUNDED, /* range is finite */
405  MDVI_RANGE_LOWER, /* range has a lower bound */
406  MDVI_RANGE_UPPER, /* range has an upper bound */
407  MDVI_RANGE_UNBOUNDED /* range has no bounds at all */
408 } DviRangeType;

Function Documentation

int mdvi_reload __PROTO ( (DviContext *, DviParams *)  )
void mdvi_setpage __PROTO ( (DviContext *, int)  )
void mdvi_shrink_glyph __PROTO ( (DviContext *, DviFont *, DviFontChar *, DviGlyph *)  )
int mdvi_configure __PROTO ( (DviContext *, DviParamCode,...)  )
int get_tfm_chars __PROTO ( (DviParams *, DviFont *, TFMInfo *, int)  )
int tfm_load_file __PROTO ( (const char *, TFMInfo *)  )
TFMInfo* get_font_metrics __PROTO ( (const char *, int, const char *)  )
char* lookup_font_metrics __PROTO ( (const char *, int *)  )
void free_font_metrics __PROTO ( (TFMInfo *)  )
void flush_font_metrics __PROTO ( (void)  )
void mdvi_sort_pages __PROTO ( (DviContext *, DviPageSort )
void mdvi_init_kpathsea __PROTO ( (const char *, const char *, const char *, int, const char *)  )
DviContext* mdvi_init_context __PROTO ( (DviParams *, DviPageSpec *, const char *)  )
void mdvi_destroy_context __PROTO ( (DviContext *)  )
DviRange* mdvi_parse_range __PROTO ( (const char *, DviRange *, int *, char **)  )
DviPageSpec* mdvi_parse_page_spec __PROTO ( (const char *)  )
void mdvi_free_page_spec __PROTO ( (DviPageSpec *)  )
int mdvi_in_range __PROTO ( (DviRange *, int, int)  )
int mdvi_range_length __PROTO ( (DviRange *, int)  )
int mdvi_page_selected __PROTO ( (DviPageSpec *, PageNum, int)  )
int mdvi_register_special __PROTO ( (const char *label, const char *prefix, const char *regex, DviSpecialHandler handler, int replace)  )
int mdvi_unregister_special __PROTO ( (const char *prefix )
int mdvi_do_special __PROTO ( (DviContext *dvi, char *dvi_special)  )
DviFontRef* font_reference __PROTO ( (DviParams *params, Int32 dvi_id, const char *font_name, Int32 checksum, int xdpi, int ydpi, Int32 scale_factor)  )
void font_drop_one __PROTO ( (DviFontRef *)  )
void font_reset_one_glyph __PROTO ( (DviDevice *, DviFontChar *, int)  )
void font_reset_font_glyphs __PROTO ( (DviDevice *, DviFont *, int)  )
void font_reset_chain_glyphs __PROTO ( (DviDevice *, DviFontRef *, int)  )
int font_reopen __PROTO ( (DviFont *)  )
DviFontChar* font_get_glyph __PROTO ( (DviContext *, DviFont *, int)  )
void font_transform_glyph __PROTO ( (DviOrientation, DviGlyph *)  )
int font_free_unused __PROTO ( (DviDevice *)  )
int mdvi_encode_font __PROTO ( (DviParams *, DviFont *)  )
int mdvi_register_font_type __PROTO ( (DviFontInfo *, int)  )
char** mdvi_list_font_class __PROTO ( (int)  )
int mdvi_unregister_font_type __PROTO ( (const char *, int)  )
char* mdvi_lookup_font __PROTO ( (DviFontSearch *)  )
DviFont* mdvi_add_font __PROTO ( (const char *, Int32, int, int, Int32 )
int mdvi_set_logstream __PROTO ( (FILE *)  )