+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
/* $TOG: DmxPrintJob.C /main/30 1998/07/23 18:11:50 mgreess $ */
/*
#include <X11/Shell.h>
#include <Xm/Xm.h>
#include <Xm/PushB.h>
+#if 0 && defined(PRINTING_SUPPORTED)
#include <Xm/Print.h>
+#endif /* PRINTING_SUPPORTED */
#include "Dmx.h"
#include "DmxPrintJob.h"
#include "DmxPrintOptions.h"
void
DmxPrintJob::createPrintShell (void)
{
+#if 0 && defined(PRINTING_SUPPORTED)
DtMailEnv dmxenv;
DtMail::Session *d_session = theRoamApp.session()->session();
&DmxPrintJob::pdmNotificationCB,
(XtPointer) this);
#endif
+
+#endif /* PRINTING_SUPPORTED */
}
void
DmxPrintJob::doPrint (void)
{
+#if 0 && defined(PRINTING_SUPPORTED)
DtMailEnv dmxenv;
DtMail::Session *d_session = theRoamApp.session()->session();
XPSaveData dest = XPSpool;
}
}
#endif
+#endif /* PRINTING_SUPPORTED */
}
_print_output->appendNewLine();
XtFree(buffer);
- if (NULL != separator_string)
- free((void*) separator_string);
+ free((void*) separator_string);
break;
}
XtPointer client_data,
XtPointer call_data)
{
+#if 0 && defined(PRINTING_SUPPORTED)
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
if (thisJob->_print_output == NULL)
{
- Dimension width, height;
+ XtArgVal /* Dimension */ width, height;
width = 0; height=0;
XtVaGetValues(
if (thisJob->_spool_npages_done >= thisJob->_spool_npages_total)
pscbs->last_page = TRUE;
#endif
+#endif /* PRINTING_SUPPORTED */
}
* Name: DmxPrintJob::finishedPrintToFile
* Description:
*/
+#if 0 && defined(PRINTING_SUPPORTED)
void
DmxPrintJob::finishedPrintToFile(
Display *display,
}
thisJob->cancel();
}
+#endif /* PRINTING_SUPPORTED */
/*
* Name: DmxPrintJob::cancelCB
XtPointer client_data,
XtPointer call_data)
{
+#if 0 && defined(PRINTING_SUPPORTED)
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
char *message = NULL;
NULL);
delete genDialog;
}
+#endif /* PRINTING_SUPPORTED */
}
/*
XtPointer client_data,
XtPointer call_data)
{
+#if 0 && defined(PRINTING_SUPPORTED)
DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
DtPrintSetupCallbackStruct *pbs = (DtPrintSetupCallbackStruct *) call_data;
if (shell)
XmPrintPopupPDM(thisJob->_pshell, shell);
else
- fprintf(stderr, "Internal Error %s: Missing XmPrintShell\n");
+ fprintf(stderr, "Internal Error: Missing XmPrintShell\n");
}
+#endif /* PRINTING_SUPPORTED */
}
/*