dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / DmxPrintJob.C
index c5b058b0f54ff8cd61f155cde7a9ae944424888c..14ae8ec0f1c37ad2b5e668f60209d5890bdab2f4 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * 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
  */
@@ -82,7 +82,9 @@
 #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"
@@ -310,6 +312,7 @@ DmxPrintJob::execute (void)
 void
 DmxPrintJob::createPrintShell (void)
 {
+#if 0 && defined(PRINTING_SUPPORTED)
     DtMailEnv          dmxenv;
     DtMail::Session    *d_session = theRoamApp.session()->session();
 
@@ -377,6 +380,8 @@ DmxPrintJob::createPrintShell (void)
                 &DmxPrintJob::pdmNotificationCB,
                 (XtPointer) this);
 #endif
+
+#endif  /* PRINTING_SUPPORTED */
 }
 
 
@@ -456,6 +461,7 @@ ok_cb(DtMailGenDialog *genDialog)
 void
 DmxPrintJob::doPrint (void)
 {
+#if 0 && defined(PRINTING_SUPPORTED)
     DtMailEnv          dmxenv;
     DtMail::Session    *d_session = theRoamApp.session()->session();
     XPSaveData         dest = XPSpool;
@@ -558,6 +564,7 @@ DmxPrintJob::doPrint (void)
         }
     }
 #endif
+#endif  /* PRINTING_SUPPORTED */
 }
 
 
@@ -623,8 +630,7 @@ DmxPrintJob::loadOutputWidgets(void)
                _print_output->appendNewLine();
 
                XtFree(buffer);
-               if (NULL != separator_string)
-                 free((void*) separator_string);
+               free((void*) separator_string);
                
                break;
            }
@@ -665,6 +671,7 @@ DmxPrintJob::printOnePageCB(
                        XtPointer client_data,
                        XtPointer call_data)
 {
+#if 0 && defined(PRINTING_SUPPORTED)
     DmxPrintJob                *thisJob = (DmxPrintJob *) client_data;
 
     XmPrintShellCallbackStruct *pscbs = (XmPrintShellCallbackStruct*)call_data;
@@ -674,7 +681,7 @@ DmxPrintJob::printOnePageCB(
     if (thisJob->_print_output == NULL)
     {
         
-       Dimension       width, height;
+       XtArgVal /* Dimension */        width, height;
 
         width = 0; height=0;
         XtVaGetValues(
@@ -810,6 +817,7 @@ DmxPrintJob::printOnePageCB(
     if (thisJob->_spool_npages_done >= thisJob->_spool_npages_total)
       pscbs->last_page = TRUE;
 #endif
+#endif  /* PRINTING_SUPPORTED */
 }
 
 
@@ -971,6 +979,7 @@ DmxPrintJob::getPageHeaderString(
  * Name: DmxPrintJob::finishedPrintToFile
  * Description:
  */
+#if 0 && defined(PRINTING_SUPPORTED)
 void
 DmxPrintJob::finishedPrintToFile(
                        Display         *display,
@@ -1016,6 +1025,7 @@ DmxPrintJob::finishedPrintToFile(
     }
     thisJob->cancel();
 }
+#endif /* PRINTING_SUPPORTED */
 
 /*
  * Name: DmxPrintJob::cancelCB
@@ -1062,6 +1072,7 @@ DmxPrintJob::pdmNotificationCB(
                        XtPointer client_data,
                        XtPointer call_data)
 {
+#if 0 && defined(PRINTING_SUPPORTED)
     DmxPrintJob                        *thisJob = (DmxPrintJob *) client_data;
     XmPrintShellCallbackStruct  *pscbs = (XmPrintShellCallbackStruct*)call_data;
     char                       *message = NULL;
@@ -1095,6 +1106,7 @@ DmxPrintJob::pdmNotificationCB(
                             NULL);
         delete genDialog;
     }
+#endif  /* PRINTING_SUPPORTED */
 }
 
 /*
@@ -1109,6 +1121,7 @@ DmxPrintJob::pdmSetupCB(
                XtPointer client_data,
                XtPointer call_data)
 {
+#if 0 && defined(PRINTING_SUPPORTED)
     DmxPrintJob *thisJob = (DmxPrintJob *) client_data;
     DtPrintSetupCallbackStruct *pbs = (DtPrintSetupCallbackStruct *) call_data;
 
@@ -1125,8 +1138,9 @@ DmxPrintJob::pdmSetupCB(
        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 */
 }
 
 /*