![]() |
![]() |
![]() |
![]() |
PrintViewer
Synopsis
group+OPort GDoutput_templ {
int type; /* used to specify unique virtual functions */
};#ifdef MSDOS
/* Printing on PC does not have a dependency on the AG kit. */
GDoutput_templ GDprt_output_templ<disabled =>
Templates.CONFIG.gd_prt_disabled> {
#else
GDoutput_templ GDprt_output_templ<disabled=>
(Templates.CONFIG.gd_prt_disabled | Templates.CONFIG.ag_kit_disabled)> {
#endif
string+read file<NEportLevels={0,2}>;
int format<NEportLevels={0,2}>; // 0=PS, 1=ColPS, 2=PS2,
// 3=CGMbin, 4=CGMclt, 5=CGMchar
#ifdef MSDOS
int color<NEportLevels={0,2}>;
// 0=monochrome(only PS lev1) 1=color
#endif
int backgroundType<NEportLevels={0,2}>;
// 0=white, 1=black, 2=keep
int orientation<NEportLevels={0,2}>;
// 0=landscape 1=portrait
int size<NEportLevels={0,2}>;
// 0=User(EPS) 1=A 2=B 3=A4 4=A3 5=A0
float widthMM<NEportLevels={0,2}>;
float heightMM<NEportLevels={0,2}>;
int resolution<NEportLevels={0,2}>;
// number of pixels for 3D image
float fromRatio;
// aspect ratio of the view to make print from
int fromWidth; // width of visible view
int fromHeight;// height of visible view
float sizeX<NEportLevels={0,2}>;
// actual size used by printer
float sizeY<NEportLevels={0,2}>;
// actual size used by printer
#ifdef MSDOS
ptr+IPort2 devMode;
ptr+IPort2 devNames;
#endif
ptr+nonotify+write local_ptr<NEvisible=0>;
method+notify_inst init = "GDprt_output_create";
method+notify_deinst delete() = "GDprt_output_delete";
method+notify_val update = "GDprt_output_update";
};GDprt_output_templ GDprt_output;
#ifdef MSDOS
/* Printing on PC does not have a dependency on the AG kit. */
group OutputPrintFuncs
![]() |
![]() |
![]() |
![]() |