00001
00060 #ifndef INC_MI32_MPLAYOUT_H
00061 #define INC_MI32_MPLAYOUT_H
00062
00063 #ifndef INC_MI32_PRINTGAMMA_H
00064 #include <mi32/printgamma.h>
00065 #endif
00066
00067 #ifndef INC_MI32_COLORBAL_H
00068 #include <mi32/colorbal.h>
00069 #endif
00070
00071 #ifndef INC_MI32_MG2CMS_H
00072 #include <mi32/mg2cms.h>
00073 #endif
00074
00075
00076 #ifndef GENERATING_DOXYGEN_OUTPUT
00077
00078 namespace GRE {
00079 class LAYOUT;
00080 }
00081 #endif
00082
00083
00085 struct LAYOUTPARMS {
00086
00087 LAYOUTPARMS();
00088 ~LAYOUTPARMS();
00089 LAYOUTPARMS(const LAYOUTPARMS&);
00090
00091 LAYOUTPARMS& operator=(const LAYOUTPARMS&);
00092
00093 static const SERIALIZERITEM* GetSerialItemDef();
00094
00096 ERRVALUE ReadDefault();
00097
00099 ERRVALUE WriteDefault();
00100
00101 double FullHeight;
00102 double FullWidth;
00103 double FullPrintableHeight;
00104 double FullPrintableWidth;
00105 double PrintableHeight;
00106 double PrintableWidth;
00107 double LeftMargin;
00108 double TopMargin;
00109 double Scale;
00110 double Zoom;
00111 double dpi;
00112 INT32 flags;
00113 char printer[64];
00114 MIUNICODE paper[64];
00115 char rpattern[32];
00116 char vpattern[32];
00117 double contrast;
00118 double brightness;
00119 CBPARMS cbparms;
00120 PRINTGAMMA gamma[3];
00121 double DotGain[4];
00122 double ScreenAngle[4];
00123 double ScreenFreq;
00124 MGD::PROFILEPARMS_PRINTER ProfileParms;
00125 };
00126
00127 #ifndef GENERATING_DOXYGEN_OUTPUT
00128 PREVENT_MEMFUNC(LAYOUTPARMS)
00129 #endif
00130
00131 #define MAPLAYOUT_SetupDone (0x00000001)
00132 #define MAPLAYOUT_UserCBal (0x00000008)
00133 #define MAPLAYOUT_UserGamma (0x00000010)
00134 #define MAPLAYOUT_Landscape (0x00000200)
00135 #define MAPLAYOUT_ScaleToPage (0x00000400)
00136 #define MAPLAYOUT_Anaglyph (0x00001000)
00137
00138
00139
00140
00141
00142 #define PRSETUP_FromRast 0x00000001
00143 #define PRSETUP_PRF 0x00000002
00144 #define PRSETUP_NoPrint 0x00000004
00145 #define PRSETUP_NoManage 0x00000008
00146 #define PRSETUP_Snapshot 0x00000010
00147
00148
00149
00150
00151
00152 #ifndef GENERATING_DOXYGEN_OUTPUT
00153 struct PRINTERDRIVER;
00154 struct PRINTEROPTIONS;
00155 #endif
00156
00157 extern "C" {
00158
00160 int MxReadDefaultLayout (
00161 LAYOUTPARMS *parms
00162 );
00163
00165 int MxWriteDefaultLayout (
00166 LAYOUTPARMS *parms
00167 );
00168
00194 int MprintTestStripDialog (
00195 Widget parent,
00196 Widget *RetWidget,
00197 GRE::LAYOUT *layout,
00198 CBPARMS *cbal,
00199 PRINTGAMMA *cont,
00200 void (*cbfunc)(void *, CBPARMS *, PRINTGAMMA *),
00201 void *cbdata,
00202 PRINTERDRIVER *PrinterDriver,
00203 PRINTEROPTIONS *PrinterParms,
00204 int mode
00205 );
00206
00208 int MprintPageSetup (
00209 Widget parent,
00210 GRE::LAYOUT *layout,
00211 int (*TestStripFunc)(Widget, Widget*, GRE::LAYOUT*, CBPARMS*,PRINTGAMMA*,
00212 void (*func)(void*, CBPARMS*, PRINTGAMMA*),void*, PRINTERDRIVER *PrinterDriver,
00213 PRINTEROPTIONS *PrinterParms, int) = 0,
00214 UINT32 flags = 0
00215 );
00216
00218 int MprintLayoutSetup (
00219 Widget parent,
00220 GRE::LAYOUT *layout,
00221 UINT32 flags
00222 );
00223
00224 }
00225
00226 #endif // INC_MI32_MPLAYOUT_H