1/*
2 * Author:      William Chia-Wei Cheng (bill.cheng@acm.org)
3 *
4 * Copyright (C) 2001-2009, William Chia-Wei Cheng.
5 *
6 * This file may be distributed under the terms of the Q Public License
7 * as defined by Trolltech AS of Norway and appearing in the file
8 * LICENSE.QPL included in the packaging of this file.
9 *
10 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING
11 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12 * PURPOSE.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
13 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
14 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
16 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/eps.e,v 1.6 2011/05/16 16:21:57 william Exp $
19 */
20
21#ifndef _EPS_E_
22#define _EPS_E_
23
24extern float	defaultEPSScaling;
25extern char	defaultEPSScalingStr[];
26
27extern int	autoEPSPreviewBitmap;
28
29#ifdef _INCLUDE_FROM_EPS_C_
30#undef extern
31#define extern
32#endif /*_INCLUDE_FROM_EPS_C_*/
33
34extern void	InitEPS ARGS_DECL((void));
35extern void	CleanUpEPS ARGS_DECL((void));
36extern int	MyReadEPSFile ARGS_DECL((char *FileName, int *ImageW,
37		                         int *ImageH, Pixmap *, XImage **,
38		                         int *NumLines, char ***EPSFLines,
39		                         int *EPSFLevel, float *llx,
40		                         float *lly, float *urx, float *ury,
41		                         char *Date));
42extern void	DumpEPSObj ARGS_DECL((FILE *, struct ObjRec *));
43extern void	SetEPSObjCTM ARGS_DECL((struct ObjRec *, struct BBRec *));
44extern struct ObjRec	* CreateEPSObj ARGS_DECL((char *FileName, int ImageW,
45			                          int ImageH, Pixmap,
46			                          XImage *, int NumLines,
47			                          char **Lines, int EPSFLevel,
48		                                  float *llx, float *lly,
49			                          float *urx, float *ury,
50			                          char *Date));
51extern void	UpdateEPS ARGS_DECL((void));
52
53#ifdef _INCLUDE_FROM_EPS_C_
54#undef extern
55#ifndef _NO_RECURSIVE_EXTERN
56#define extern extern
57#endif /* ~_NO_RECURSIVE_EXTERN */
58#endif /*_INCLUDE_FROM_EPS_C_*/
59
60#endif /*_EPS_E_*/
61