diff options
author | Norbert Preining <preining@logic.at> | 2012-04-19 23:54:05 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2012-04-19 23:54:05 +0000 |
commit | f90967c6f9828a0a3832b346d7da7011669643d3 (patch) | |
tree | 8b6731de03abf884bf46840a8003e7ba2324e279 /Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/dvi.h | |
parent | fc0fc955a33533153d43a0d79f6a70d4e1ae5881 (diff) |
dvipdfmx:
- include all patches but the texlive configuration in dvipdfmx proper
- bump the version number to 20120420
- adapt the TL patches dir
- edit ChangeLog entries of "upstream" dvipdfmx to includea all the changes
made, replace references to the patch name with names of the files changed
git-svn-id: svn://tug.org/texlive/trunk@26061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/dvi.h')
-rw-r--r-- | Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/dvi.h | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/dvi.h b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/dvi.h new file mode 100644 index 00000000000..e18e8b02388 --- /dev/null +++ b/Build/source/texk/dvipdfmx/dvipdfmx-20120420/src/dvi.h @@ -0,0 +1,96 @@ +/* $Header: /home/cvsroot/dvipdfmx/src/dvi.h,v 1.16 2011/03/08 00:20:51 matthias Exp $ + + This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. + + Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata, + the dvipdfmx project team <dvipdfmx@project.ktug.or.kr> + + Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + +#ifndef _DVI_H_ +#define _DVI_H_ + +#include "error.h" +#include "numbers.h" +/* spt_t */ +#include "pdfdev.h" + +extern void dvi_set_verbose (void); + +/* returns scale (dvi2pts) */ +extern double dvi_init (const char *dvi_filename, double mag); +extern void dvi_close (void); /* Closes data structures created by dvi_open */ + +extern double dvi_tell_mag (void); +#if 0 +extern double dvi_unit_size (void); +#endif +extern double dvi_dev_xpos (void); +extern double dvi_dev_ypos (void); +extern unsigned dvi_npages (void); +extern const char *dvi_comment (void); + +extern void dvi_vf_init (int dev_font_id); +extern void dvi_vf_finish (void); + +extern void dvi_set_font (int font_id); +extern void dvi_set (SIGNED_QUAD ch); +extern void dvi_rule (SIGNED_QUAD width, SIGNED_QUAD height); + +extern void dvi_right (SIGNED_QUAD x); +extern void dvi_put (SIGNED_QUAD ch); +extern void dvi_push (void); +extern void dvi_pop (void); +extern void dvi_w0 (void); +extern void dvi_w (SIGNED_QUAD ch); +extern void dvi_x0 (void); +extern void dvi_x (SIGNED_QUAD ch); +extern void dvi_down (SIGNED_QUAD y); +extern void dvi_y (SIGNED_QUAD ch); +extern void dvi_y0 (void); +extern void dvi_z (SIGNED_QUAD ch); +extern void dvi_z0 (void); +extern void dvi_dir (UNSIGNED_BYTE dir); + +extern void dvi_do_page (unsigned page_no, + double paper_width, double paper_height, + double x_offset, double y_offset); +extern void dvi_scan_specials (unsigned page_no, + double *width, double *height, + double *x_offset, double *y_offset, + char *landscape, unsigned *minorversion, + int *do_enc, unsigned *key_bits, unsigned *permission, char *owner_pw, char *user_pw); +extern int dvi_locate_font (const char *name, spt_t ptsize); + +/* link or nolink: + * See dvipdfm (not x) user's manual on pdf:link and pdf:nolink. + * This is workaround for preventing inclusion of pagenation artifact such as + * footnote and page number in link annotation. + */ +extern void dvi_link_annot (int flag); +/* The followings are for calculating bounding box of text for annotation. + * DVI uses push/pop to do line-feed-carriage-return. So line breaking is + * handled by inspecting current depth of DVI register stack. + */ +extern void dvi_tag_depth (void); +extern void dvi_untag_depth (void); +extern void dvi_compute_boxes (int flag); + +extern void dvi_do_special (const void *buffer, UNSIGNED_QUAD size); + +#endif /* _DVI_H_ */ |