dtmail: stub out XmPrint stuff if there is no XmPrint support.
This commit is contained in:
@@ -310,6 +310,7 @@ DmxPrintJob::execute (void)
|
|||||||
void
|
void
|
||||||
DmxPrintJob::createPrintShell (void)
|
DmxPrintJob::createPrintShell (void)
|
||||||
{
|
{
|
||||||
|
#if defined(PRINTING_SUPPORTED)
|
||||||
DtMailEnv dmxenv;
|
DtMailEnv dmxenv;
|
||||||
DtMail::Session *d_session = theRoamApp.session()->session();
|
DtMail::Session *d_session = theRoamApp.session()->session();
|
||||||
|
|
||||||
@@ -377,6 +378,8 @@ DmxPrintJob::createPrintShell (void)
|
|||||||
&DmxPrintJob::pdmNotificationCB,
|
&DmxPrintJob::pdmNotificationCB,
|
||||||
(XtPointer) this);
|
(XtPointer) this);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* PRINTING_SUPPORTED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -456,6 +459,7 @@ ok_cb(DtMailGenDialog *genDialog)
|
|||||||
void
|
void
|
||||||
DmxPrintJob::doPrint (void)
|
DmxPrintJob::doPrint (void)
|
||||||
{
|
{
|
||||||
|
#if defined(PRINTING_SUPPORTED)
|
||||||
DtMailEnv dmxenv;
|
DtMailEnv dmxenv;
|
||||||
DtMail::Session *d_session = theRoamApp.session()->session();
|
DtMail::Session *d_session = theRoamApp.session()->session();
|
||||||
XPSaveData dest = XPSpool;
|
XPSaveData dest = XPSpool;
|
||||||
@@ -558,6 +562,7 @@ DmxPrintJob::doPrint (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* PRINTING_SUPPORTED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -665,6 +670,7 @@ DmxPrintJob::printOnePageCB(
|
|||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
XtPointer call_data)
|
XtPointer call_data)
|
||||||
{
|
{
|
||||||
|
#if defined(PRINTING_SUPPORTED)
|
||||||
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
|
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
|
||||||
|
|
||||||
XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
|
XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
|
||||||
@@ -810,6 +816,7 @@ DmxPrintJob::printOnePageCB(
|
|||||||
if (thisJob->_spool_npages_done >= thisJob->_spool_npages_total)
|
if (thisJob->_spool_npages_done >= thisJob->_spool_npages_total)
|
||||||
pscbs->last_page = TRUE;
|
pscbs->last_page = TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* PRINTING_SUPPORTED */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1062,6 +1069,7 @@ DmxPrintJob::pdmNotificationCB(
|
|||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
XtPointer call_data)
|
XtPointer call_data)
|
||||||
{
|
{
|
||||||
|
#if defined(PRINTING_SUPPORTED)
|
||||||
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
|
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
|
||||||
XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
|
XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
|
||||||
char *message = NULL;
|
char *message = NULL;
|
||||||
@@ -1095,6 +1103,7 @@ DmxPrintJob::pdmNotificationCB(
|
|||||||
NULL);
|
NULL);
|
||||||
delete genDialog;
|
delete genDialog;
|
||||||
}
|
}
|
||||||
|
#endif /* PRINTING_SUPPORTED */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1109,6 +1118,7 @@ DmxPrintJob::pdmSetupCB(
|
|||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
XtPointer call_data)
|
XtPointer call_data)
|
||||||
{
|
{
|
||||||
|
#if defined(PRINTING_SUPPORTED)
|
||||||
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
|
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
|
||||||
DtPrintSetupCallbackStruct *pbs = (DtPrintSetupCallbackStruct *) call_data;
|
DtPrintSetupCallbackStruct *pbs = (DtPrintSetupCallbackStruct *) call_data;
|
||||||
|
|
||||||
@@ -1125,8 +1135,9 @@ DmxPrintJob::pdmSetupCB(
|
|||||||
if (shell)
|
if (shell)
|
||||||
XmPrintPopupPDM(thisJob->_pshell, shell);
|
XmPrintPopupPDM(thisJob->_pshell, shell);
|
||||||
else
|
else
|
||||||
fprintf(stderr, "Internal Error %s: Missing XmPrintShell\n");
|
fprintf(stderr, "Internal Error: Missing XmPrintShell\n");
|
||||||
}
|
}
|
||||||
|
#endif /* PRINTING_SUPPORTED */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user