Main Page | Modules | File List | Related Pages

g2_PS.h

00001 /*****************************************************************************
00002 **  Copyright (C) 1998-2001  Ljubomir Milanovic & Horst Wagner
00003 **  This file is part of the g2 library
00004 **
00005 **  This library is free software; you can redistribute it and/or
00006 **  modify it under the terms of the GNU Lesser General Public
00007 **  License as published by the Free Software Foundation; either
00008 **  version 2.1 of the License, or (at your option) any later version.
00009 **
00010 **  This library is distributed in the hope that it will be useful,
00011 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 **  Lesser General Public License for more details.
00014 **
00015 **  You should have received a copy of the GNU Lesser General Public
00016 **  License along with this library; if not, write to the Free Software
00017 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 ******************************************************************************/
00019 #ifndef _G2_PS_H
00020 #define _G2_PS_H
00021 
00022 #if defined(__cplusplus)
00023 extern "C"
00024 {
00025 #endif
00026 
00032 enum g2_PS_paper {              /*      Name           Size(Pt)   */
00033  g2_A0,                         
00034  g2_A1,                         
00035  g2_A2,                         
00036  g2_A3,                         
00037  g2_A4,                         
00038  g2_A5,                         
00039  g2_A6,                         
00040  g2_A7,                         
00041  g2_A8,                         
00042  g2_A9,                         
00043  g2_B0,                         
00044  g2_B1,                         
00045  g2_B2,                         
00046  g2_B3,                         
00047  g2_B4,                         
00048  g2_B5,                         
00049  g2_B6,                         
00050  g2_B7,                         
00051  g2_B8,                         
00052  g2_B9,                         
00053  g2_B10,                        
00054  g2_Comm_10_Envelope,           
00055  g2_C5_Envelope,                
00056  g2_DL_Envelope,                
00057  g2_Folio,                      
00058  g2_Executive,                  
00059  g2_Letter,                     
00060  g2_Legal,                      
00061  g2_Ledger,                     
00062  g2_Tabloid                     
00063 };
00064 
00065     
00071 enum g2_PS_orientation {
00072     g2_PS_land,                 
00073     g2_PS_port                  
00074 };
00075 
00076 /*
00077  *  g2 Format
00078  */
00079 enum g2_PS_format {
00080     g2_PS_PostScript,                   /* PostScript  */
00081     g2_PS_EPSF,                         /* EPSF format */
00082     g2_PS_EPSF_CLIP                     /* EPSF format with predefined Bounding Box*/
00083 };
00084 
00085 /* Common Library header for DLL and application */
00086 #ifdef WIN32
00087 #ifdef G2DLL
00088 #ifdef MAKEDLL
00089 /* Create DLL */
00090 #define G2L __declspec( dllexport)
00091 #else
00092 /* Use DLL */
00093 #define G2L __declspec( dllimport)
00094 #endif
00095 #else 
00096 /* Use static win32 */
00097 #define G2L
00098 #endif
00099 #else
00100 /* Use non-win32 */
00101 #define G2L
00102 #endif
00103 
00104 
00105 G2L int g2_open_PS(const char *file_name,
00106                    enum g2_PS_paper paper,
00107                    enum g2_PS_orientation orientation);
00108 
00109 G2L int g2_open_EPSF(const char *file_name);
00110 
00111 G2L int g2_open_EPSF_CLIP(const char *file_name,
00112                         long width, long height);
00113 
00114 #if defined(__cplusplus)
00115 } /* end extern "C" */
00116 #endif
00117 
00118 #endif /* _G2_PS_H */

Generated on Thu Apr 8 23:32:49 2004 for g2 by doxygen 1.3.6