diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x/specials.h')
-rw-r--r-- | Build/source/texk/dvipdfm-x/specials.h | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/Build/source/texk/dvipdfm-x/specials.h b/Build/source/texk/dvipdfm-x/specials.h index b9bb80f72f9..e9e61229127 100644 --- a/Build/source/texk/dvipdfm-x/specials.h +++ b/Build/source/texk/dvipdfm-x/specials.h @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2007-2020 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> @@ -23,10 +23,17 @@ #ifndef _SPECIALS_H_ #define _SPECIALS_H_ +#include "pdfobj.h" +#include "pdfdev.h" + struct spc_env { double x_user, y_user; double mag; int pg; /* current page in PDF */ + struct { + int is_drawable; + pdf_rect rect; + } info; }; struct spc_arg { @@ -48,9 +55,6 @@ struct spc_handler { #include <stdarg.h> extern void spc_warn (struct spc_env *spe, const char *fmt, ...); -#include "pdfobj.h" -/* PDF parser shouldn't depend on this... - */ extern pdf_obj *spc_lookup_reference (const char *ident); extern pdf_obj *spc_lookup_object (const char *ident); @@ -66,16 +70,31 @@ extern void spc_set_linkmode (struct spc_env *spe, int mode); /* set default height of phantom texts */ extern void spc_set_phantom (struct spc_env *spe, double height, double depth); -extern void spc_push_object (const char *key, pdf_obj *value); -extern void spc_flush_object (const char *key); -extern void spc_clear_objects (void); +extern void spc_push_object (struct spc_env *spe, const char *key, pdf_obj *value); +extern void spc_flush_object (struct spc_env *spe, const char *key); +extern void spc_clear_objects (struct spc_env *spe); + +extern void spc_put_image (struct spc_env *spe, int res_id, transform_info *ti, double xpos, double ypos); + +extern void spc_get_current_point (struct spc_env *spe, pdf_coord *cp); + +/* dvipdfmx pdf: special */ +extern void spc_get_coord (struct spc_env *spe, double *x, double *y); +extern void spc_push_coord (struct spc_env *spe, double x, double y); +extern void spc_pop_coord (struct spc_env *spe); +/* XeTeX */ +extern void spc_set_fixed_point (struct spc_env *spe, double x, double y); +extern void spc_get_fixed_point (struct spc_env *spe, double *x, double *y); +extern void spc_put_fixed_point (struct spc_env *spe, double x, double y); +extern void spc_dup_fixed_point (struct spc_env *spe); +extern void spc_pop_fixed_point (struct spc_env *spe); +extern void spc_clear_fixed_point (struct spc_env *spe); extern int spc_exec_at_begin_page (void); extern int spc_exec_at_end_page (void); extern int spc_exec_at_begin_document (void); extern int spc_exec_at_end_document (void); -extern int spc_exec_special (const char *p, int32_t size, - double x_user, double y_user, double mag); +extern int spc_exec_special (const char *p, int32_t size, double x_user, double y_user, double mag, int *is_drawable, pdf_rect *rect); #endif /* _SPECIALS_H_ */ |