Back to index

tetex-bin  3.0
dvi.h
Go to the documentation of this file.
00001 /*  $Header$
00002 
00003     This is dvipdfm, a DVI to PDF translator.
00004     Copyright (C) 1998, 1999 by Mark A. Wicks
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019     
00020     The author may be contacted via the e-mail address
00021 
00022        mwicks@kettering.edu
00023 */
00024 
00025 #ifndef _DVI_H_
00026 #define _DVI_H_      
00027 
00028 #include "error.h"
00029 #include "numbers.h"
00030 #include "pdfdev.h"
00031 
00032 extern error_t dvi_init (char *dvi_filename, char *pdf_filename, double mag, double x_offset,
00033                       double y_offset);
00034 
00035 extern void dvi_set_verbose (void);
00036 extern void dvi_set_debug (void);
00037 
00038 extern void dvi_close (void);  /* Closes data structures created by dvi_open */
00039 extern double dvi_tell_mag (void);
00040 extern double dvi_unit_size (void);
00041 
00042 extern void dvi_vf_init (int dev_font_id);
00043 extern void dvi_vf_finish (void);
00044 
00045 extern void dvi_set_font (int font_id);
00046 extern void dvi_set (SIGNED_QUAD ch);
00047 extern void dvi_rule (SIGNED_QUAD width, SIGNED_QUAD height);
00048 extern void dvi_right (SIGNED_QUAD x);
00049 extern void dvi_put (SIGNED_QUAD ch);
00050 extern void dvi_push (void);
00051 extern void dvi_pop (void);
00052 extern void dvi_w0 (void);
00053 extern void dvi_w (SIGNED_QUAD ch);
00054 extern void dvi_x0(void);
00055 extern void dvi_x (SIGNED_QUAD ch);
00056 extern void dvi_down (SIGNED_QUAD y);
00057 extern void dvi_y (SIGNED_QUAD ch);
00058 extern void dvi_y0(void);
00059 extern void dvi_z (SIGNED_QUAD ch);
00060 extern void dvi_z0(void);
00061 extern double dvi_dev_xpos(void);
00062 extern double dvi_dev_ypos(void);
00063 extern unsigned dvi_npages (void);
00064 extern void dvi_do_page(unsigned n);
00065 extern int dvi_locate_font (char *name, spt_t ptsize);
00066 extern void dvi_compute_boxes (unsigned char boxes);
00067 #endif /* _DVI_H_ */