Data Structures | |
struct | _prn_tray |
struct | _media_size |
struct | _media_type |
struct | _prn_mode |
struct | _prn_entry |
struct | _dither_mode |
struct | DRV_INFO |
struct | _drv_entry |
struct | PDLG_HNDL_args |
struct | _pdlg_sub |
struct | _prn_settings |
Defines | |
#define | PRN_STD_SUBS 0x0001 |
#define | PRN_FSM_SUBS 0x0002 |
#define | PRN_QD_SUBS 0x0004 |
#define | PDLG_CHG_SUB 0x80000000L |
#define | PDLG_IS_BUTTON 0x40000000L |
#define | PDLG_PREBUTTON 0x20000000L |
#define | PDLG_PB_OK 1 |
#define | PDLG_PB_CANCEL 2 |
#define | PDLG_PB_DEVICE 3 |
#define | PDLG_BUT_OK (PDLG_PREBUTTON + PDLG_PB_OK) |
#define | PDLG_BUT_CNCL (PDLG_PREBUTTON + PDLG_PB_CANCEL) |
#define | PDLG_BUT_DEV (PDLG_PREBUTTON + PDLG_PB_DEVICE) |
#define | CC_MONO 0x0001 |
#define | CC_4_GREY 0x0002 |
#define | CC_8_GREY 0x0004 |
#define | CC_16_GREY 0x0008 |
#define | CC_256_GREY 0x0010 |
#define | CC_32K_GREY 0x0020 |
#define | CC_65K_GREY 0x0040 |
#define | CC_16M_GREY 0x0080 |
#define | CC_2_COLOR 0x0100 |
#define | CC_4_COLOR 0x0200 |
#define | CC_8_COLOR 0x0400 |
#define | CC_16_COLOR 0x0800 |
#define | CC_256_COLOR 0x1000 |
#define | CC_32K_COLOR 0x2000 |
#define | CC_65K_COLOR 0x4000 |
#define | CC_16M_COLOR 0x8000 |
#define | NO_CC_BITS 16 |
#define | DC_NONE 0 |
#define | DC_FLOYD 1 |
#define | NO_DC_BITS 1 |
#define | PC_FILE 0x0001 |
#define | PC_SERIAL 0x0002 |
#define | PC_PARALLEL 0x0004 |
#define | PC_ACSI 0x0008 |
#define | PC_SCSI 0x0010 |
#define | PC_BACKGROUND 0x0080 |
#define | PC_SCALING 0x0100 |
#define | PC_COPIES 0x0200 |
#define | MC_PORTRAIT 0x0001 |
#define | MC_LANDSCAPE 0x0002 |
#define | MC_REV_PTRT 0x0004 |
#define | MC_REV_LNDSCP 0x0008 |
#define | MC_ORIENTATION 0x000f |
#define | MC_SLCT_CMYK 0x0400 |
#define | MC_CTRST_BRGHT 0x0800 |
#define | PLANE_BLACK 0x0001 |
#define | PLANE_YELLOW 0x0002 |
#define | PLANE_MAGENTA 0x0004 |
#define | PLANE_CYAN 0x0008 |
#define | DM_BG_PRINTING 0x0001 |
#define | PG_EVEN_PAGES 0x0001 |
#define | PG_ODD_PAGES 0x0002 |
#define | PG_MIN_PAGE 1 |
#define | PG_MAX_PAGE 9999 |
#define | PG_UNKNOWN 0x0000 |
#define | PG_PORTRAIT 0x0001 |
#define | PG_LANDSCAPE 0x0002 |
#define | PDLG_3D 0x0001 |
#define | PDLG_PREFS 0x0000 |
#define | PDLG_PRINT 0x0001 |
#define | PDLG_ALWAYS_COPIES 0x0010 |
#define | PDLG_ALWAYS_ORIENT 0x0020 |
#define | PDLG_ALWAYS_SCALE 0x0040 |
#define | PDLG_EVENODD 0x0100 |
#define | PDLG_CANCEL 1 |
#define | PDLG_OK 2 |
Typedefs | |
typedef void * | PRN_DIALOG |
typedef _prn_tray | PRN_TRAY |
typedef _media_size | MEDIA_SIZE |
typedef _media_type | MEDIA_TYPE |
typedef _prn_mode | PRN_MODE |
typedef _prn_entry | PRN_ENTRY |
typedef _dither_mode | DITHER_MODE |
typedef _drv_entry | DRV_ENTRY |
typedef _pdlg_sub | PDLG_SUB |
typedef _prn_settings | PRN_SETTINGS |
typedef long __CDECL(* | PRN_SWITCH )(DRV_ENTRY *drivers, PRN_SETTINGS *settings, PRN_ENTRY *old_printer, PRN_ENTRY *new_printer) |
typedef long __CDECL(* | PDLG_INIT )(PRN_SETTINGS *settings, PDLG_SUB *sub) |
typedef long __CDECL(* | PDLG_HNDL )(struct PDLG_HNDL_args) |
typedef long __CDECL(* | PDLG_RESET )(PRN_SETTINGS *settings, PDLG_SUB *sub) |
Functions | |
short | mt_pdlg_add_printers (PRN_DIALOG *prn_dialog, DRV_INFO *drv_info, short *global) |
short | mt_pdlg_add_sub_dialogs (PRN_DIALOG *prn_dialog, PDLG_SUB *sub_dialogs, short *global) |
short | mt_pdlg_close (PRN_DIALOG *prn_dialog, short *x, short *y, short *global) |
PRN_DIALOG * | mt_pdlg_create (short dialog_flags, short *global) |
short | mt_pdlg_delete (PRN_DIALOG *prn_dialog, short *global) |
short | mt_pdlg_dflt_settings (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, short *global) |
short | mt_pdlg_do (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, char *document_name, short option_flags, short *global) |
short | mt_pdlg_evnt (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, EVNT *events, short *button, short *global) |
short | mt_pdlg_free_settings (PRN_SETTINGS *settings, short *global) |
long | mt_pdlg_get_setsize (short *global) |
PRN_SETTINGS * | mt_pdlg_new_settings (PRN_DIALOG *prn_dialog, short *global) |
short | mt_pdlg_open (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, char *document_name, short option_flags, short x, short y, short *global) |
short | mt_pdlg_remove_printers (PRN_DIALOG *prn_dialog, short *global) |
short | mt_pdlg_remove_sub_dialogs (PRN_DIALOG *prn_dialog, short *global) |
short | mt_pdlg_save_default_settings (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, short *global) |
short | mt_pdlg_update (PRN_DIALOG *prn_dialog, char *document_name, short *global) |
short | mt_pdlg_use_settings (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, short *global) |
short | mt_pdlg_validate_settings (PRN_DIALOG *prn_dialog, PRN_SETTINGS *settings, short *global) |
This Printer Dialog library availability can be found calling mt_appl_getinfo(7). Bit 4 of ap_gout1
, if equal to 1, says that mt_pdlg_xx() functions are available.
|
16 Farben |
|
16 Grautne |
|
16777216 Farben |
|
16777216 Farben in Grautne wandeln |
|
256 Farben |
|
256 Grautne |
|
2 Farben |
|
32768 Farben |
|
32768 Farben in Grautne wandeln |
|
4 Farben |
|
4 Grautne |
|
65536 Farben |
|
65536 Farben in Grautne wandeln |
|
8 Farben |
|
8 Grautne |
|
2 Grautne |
|
einfacher Floyd-Steinberg |
|
keine Rasterverfahren |
|
Flag fr Hintergrunddruck |
|
Treiber kann Kontrast und Helligkeit verndern |
|
Seite kann im Querformat ausgegeben werden |
|
TODO |
|
Seite kann im Hochformat ausgegeben werden |
|
Seite kann um 180 Grad gedreht im Querformat ausgegeben werden |
|
Seite kann um 180 Grad gedreht im Hochformat ausgegeben werden |
|
Treiber kann bestimmte Farbebenen ausgeben |
|
TODO |
|
TODO |
|
Drucker kann auf der ACSI-Schnittstelle ausgeben |
|
Treiber kann im Hintergrund ausdrucken |
|
Treiber kann Kopien einer Seite erstellen |
|
Drucker kann ber GEMDOS-Dateien angesprochen werden |
|
Drucker kann auf der parallelen Schnittstelle angesteuert werden |
|
Treiber kann Seite skalieren |
|
Drucker kann auf der SCSI-Schnittstelle ausgeben |
|
Drucker kann auf der seriellen Schnittstelle angesteuert werden |
|
Use 3D-look |
|
Always offer No. of copies |
|
Always offer landscape format |
|
Always offer scaling |
|
TODO |
|
TODO |
|
TODO |
|
"Abbruch" wurde angewhlt |
|
TODO |
|
Offer option for even and odd pages |
|
TODO |
|
"OK" wurde gedrckt |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
Display settings dialog |
|
Display print dialog |
|
Only output pages with even page numbers |
|
Output page in landscape format |
|
TODO |
|
TODO |
|
Only output pages with odd page numbers |
|
Output page in portrait format |
|
Orientation unknown and not adjustable |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
Standard-Unterdialoge fr FSM-Drucker |
|
Standard-Unterdialoge fr QuickDraw-Drucker |
|
Standard-Unterdialoge fr NVDI-Drucker |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
TODO |
|
old_printer can also be 0L |
|
TODO |
|
Add application's printers
|
|
Add application's sub-dialogs
|
|
closes the window of the print dialog
|
|
initialises the print dialog
|
|
releases the memory for the print dialog
|
|
Initialises the structure to which
|
|
is the counterpart to mt_pdlg_open()/mt_pdlg_evnt()/mt_pdlg_close(). This function opens a modal dialog and only returns to the caller when one of the exit buttons has been activated ("Cancel", "OK" ).
|
|
evaluates the passed EVNT structure and calls mt_wdlg_evnt() internally.
button . If the dialog was confirmed, then the new printer settings are returned in settings . |
|
Releases the memory allocated with mt_pdlg_new_settings().
|
|
returns the length of the PRN_SETTINGS structure
|
|
Memory for printer settings is allocated, the structure is initialised and returned
|
|
opens a window with the print dialog
settings contains the printer settings, which should be saved with each document. If no settings exist for a document yet, one can either create them with mt_pdlg_new_settings() (the memory block belongs to the system) or the application can call Malloc() and subsequently mt_pdlg_dflt_settings() to initialise the memory.
|
|
removes the printers installed with mt_pdlg_add_printers() from the binding.
|
|
removes the application's custom sub-dialogs
|
|
|
|
This function sets a new window name. It should be called when the window dialog lies in the background and the user tops a new document window.
|
|
This function should be called if a program wants to print immediately and it is not possible to call mt_pdlg_do() or mt_pdlg_open() and mt_pdlg_evnt() (e.g. Calamus-print dialogs).
|
|
Validate the printer settings and if necessary correct the structure contents.
|