home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.infoflex.se
/
2015-02-10.ftp.infoflex.se.tar
/
ftp.infoflex.se
/
pub
/
xfax
/
ghostscript
/
gdevxfax.h
< prev
next >
Wrap
C/C++ Source or Header
|
2001-06-03
|
2KB
|
108 lines
/*
* gdevxfax.h
* By Nordic Messaging Tech. AB, Sweden, 2001.
* Hopefully you find this XFAX driver for Ghostscript
* useful. However, with provide it WITHOUT ANY
* WARRANTY. You use it at YOUR OWN RISK.
* Visit us at http://www.nordicmessaging.se or send
* e-mail at info@nordicmessaging.se.
*
* We are helpful but do NOT guarantee support for
* this Ghostscript driver.
*/
#define USHORT unsigned short
#define UCHAR unsigned char
typedef struct {
int startx, starty;
short endx, endy;
short depth, width;
short pixel_width;
short pixel_depth;
short xsize, ysize;
int resolution;
int inx;
int id;
UCHAR **data;
} IMAGE;
typedef struct
{
FILE *fp;
int fax_byte;
int fax_weight;
int pages;
} FAXOUT;
typedef enum {
BT_TEXT, BT_IMAGE, BT_SHADING
} block_type;
typedef struct Block BLOCK;
struct Block {
block_type type; /* Type of block:
0 Text[
1 Raster image
2 Shading
*/
short startx, starty;
short endx, endy;
unsigned short attr;
int para;
int baseline;
unsigned short font;
unsigned short data_length;
UCHAR *data;
unsigned short *font_block;
short pattern;
BLOCK *prev; /* Pointer to previous block */
BLOCK *next; /* Pointer to next block */
};
extern BLOCK *first_block;
typedef struct Environment ENV;
typedef struct page_struct {
short resolution;
short underline;
short orientation;
short margins[4];
short curpos[2];
short spacing[2];
short offset[2];
int end;
short minx, miny;
short maxx, maxy;
int doing_image;
BLOCK *next_para_block;
short space_width;
int fax_page_width;
int fax_page_depth;
int macro_id;
int pending_run;
int fdout;
int xdiv, ydiv, xdisp, ydisp;
int line_termination_mode;
short length;
unsigned short longest_page;
short symbol_set;
short map_number;
short pattern;
short pattern_id;
short rule_size[2];
short y_scale;
IMAGE *curImage;
BLOCK *firstBlock, *curBlock;
} PAGE;
#define FAX_WIDTH 1728