#ifndef _XAW_PRINTSP_H
#define _XAW_PRINTSP_H 1
#include <X11/CoreP.h>
#include <X11/ShellP.h>
_XFUNCPROTOBEGIN
typedef struct {
XtPointer extension;
} XawPrintShellClassPart;
typedef struct XawPrintShellClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
ShellClassPart shell_class;
WMShellClassPart wm_shell_class;
VendorShellClassPart vendor_shell_class;
TopLevelShellClassPart top_level_shell_class;
ApplicationShellClassPart application_shell_class;
XawPrintShellClassPart print_shell_class;
} XawPrintShellClassRec;
extern XawPrintShellClassRec xawPrintShellClassRec;
typedef struct {
XtCallbackList start_job_callback,
end_job_callback,
doc_setup_callback,
page_setup_callback;
XtEnum layoutmode;
unsigned short page_width,
page_height;
Dimension min_x,
min_y,
max_x,
max_y;
unsigned int curr_doc_num_in_job,
curr_page_num_in_doc,
curr_page_num_in_job;
unsigned short default_pixmap_resolution;
long print_resolution;
Boolean last_page_in_doc;
Boolean last_page_in_job;
} XawPrintShellPart;
typedef struct XawPrintShellRec {
CorePart core;
CompositePart composite;
ShellPart shell;
WMShellPart wm;
VendorShellPart vendor;
TopLevelShellPart topLevel;
ApplicationShellPart application;
XawPrintShellPart print;
} XawPrintShellRec;
extern WidgetClass xawPrintShellWidgetClass;
#define PS_StartJobCallback(w) \
(((XawPrintShellWidget) (w))->print.start_job_callback)
#define PS_EndJobCallback(w) \
(((XawPrintShellWidget) (w))->print.end_job_callback)
#define PS_DocSetupCallback(w) \
(((XawPrintShellWidget) (w))->print.doc_setup_callback)
#define PS_PageSetupCallback(w) \
(((XawPrintShellWidget) (w))->print.page_setup_callback)
#define PS_LayoutMode(w) \
(((XawPrintShellWidget) (w))->print.layoutmode)
#define PS_PageWidth(w) \
(((XawPrintShellWidget) (w))->print.page_width)
#define PS_PageHeight(w) \
(((XawPrintShellWidget) (w))->print.page_height)
#define PS_MinX(w) \
(((XawPrintShellWidget) (w))->print.min_x)
#define PS_MinY(w) \
(((XawPrintShellWidget) (w))->print.min_y)
#define PS_MaxX(w) \
(((XawPrintShellWidget) (w))->print.max_x)
#define PS_MaxY(w) \
(((XawPrintShellWidget) (w))->print.max_y)
#define PS_CurrDocNumInJob(w) \
(((XawPrintShellWidget) (w))->print.curr_doc_num_in_job)
#define PS_CurrPageNumInDoc(w) \
(((XawPrintShellWidget) (w))->print.curr_page_num_in_doc)
#define PS_CurrPageNumInJob(w) \
(((XawPrintShellWidget) (w))->print.curr_page_num_in_job)
#define PS_DefaultPixmapResolution(w) \
(((XawPrintShellWidget) (w))->print.default_pixmap_resolution)
#define PS_PrintResolution(w) \
(((XawPrintShellWidget) (w))->print.print_resolution)
#define PS_LastPageInDoc(w) \
(((XawPrintShellWidget) (w))->print.last_page_in_doc)
#define PS_LastPageInJob(w) \
(((XawPrintShellWidget) (w))->print.last_page_in_job)
_XFUNCPROTOEND
#endif