Disable all code related to libXp
deprecated and mostly no longer included on current OSes
This commit is contained in:
@@ -220,15 +220,17 @@ _DtHelpCreatePrintArea(Widget parent,
|
||||
extern AppPrintData * l_AppPrintData;
|
||||
DtHelpDispAreaStruct * DisplayArea;
|
||||
String string_resolution;
|
||||
int resolution;
|
||||
int resolution = 0;
|
||||
|
||||
// get print resolution from default-printer-resolution
|
||||
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
string_resolution =
|
||||
XpGetOneAttribute(XtDisplay(parent), l_AppPrintData->f_print_data->print_context,
|
||||
XPDocAttr, (char*)"default-printer-resolution");
|
||||
resolution = atoi(string_resolution);
|
||||
XFree(string_resolution);
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
// if not printing, or default-printer-resolution not defined, calcuate from
|
||||
// the X screen resolution
|
||||
|
||||
@@ -149,7 +149,7 @@ static WXmToggleButton f_print_hierarchy;
|
||||
|
||||
static Boolean print_hierarchy; // keep track of hierarchy vs section
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
static void PrintEverything(AppPrintData *p);
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
@@ -435,7 +435,7 @@ PdmNotifyCB(Widget pr_shell, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
RCS_DEBUG("PdmNotifyCB called.\n");
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
char *msg;
|
||||
|
||||
XmPrintShellCallbackStruct* pr_cbs =
|
||||
@@ -469,7 +469,7 @@ CreatePrintShell(Widget widget, AppPrintData* p)
|
||||
{
|
||||
RCS_DEBUG("CreatePrintShell called.\n");
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
char buf[BUFSIZ];
|
||||
|
||||
/*
|
||||
@@ -529,7 +529,7 @@ PrintSetupCB(Widget print_dialog, XtPointer client_data, XtPointer call_data)
|
||||
{
|
||||
RCS_DEBUG("PrintSetupCB called.\n");
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
char *msg;
|
||||
|
||||
AppPrintData *p = (AppPrintData*)client_data;
|
||||
@@ -770,9 +770,9 @@ QuickPrintCB(Widget pr_button, XtPointer client_data, XtPointer call_data)
|
||||
* App-specific print data holder allocate function.
|
||||
*
|
||||
*/
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
void
|
||||
FinishPrintToFile(Display *display,
|
||||
XPContext context,
|
||||
XPGetDocStatus status,
|
||||
XPointer client_data)
|
||||
{
|
||||
@@ -800,6 +800,7 @@ FinishPrintToFile(Display *display,
|
||||
return;
|
||||
|
||||
}
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
@@ -814,7 +815,7 @@ FinishPrintToFile(Display *display,
|
||||
void
|
||||
DoPrint(Widget widget, AppPrintData * p)
|
||||
{
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
int save_data = XPSpool;
|
||||
char *msg;
|
||||
|
||||
@@ -825,7 +826,7 @@ DoPrint(Widget widget, AppPrintData * p)
|
||||
|
||||
RCS_DEBUG("DoPrint called.\n");
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
// create print shell, if not done yet
|
||||
CreatePrintShell(widget, p);
|
||||
|
||||
@@ -928,7 +929,7 @@ DoPrint(Widget widget, AppPrintData * p)
|
||||
|
||||
}
|
||||
|
||||
#if defined(PRINTING_SUPPORTED)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Name: PrintEverything
|
||||
@@ -980,12 +981,14 @@ PrintOneUASCommon(UAS_Pointer<UAS_Common> &doc, Widget pshell, int *cur_pageP)
|
||||
|
||||
// set print orientation to either landscape or portrait (if set)
|
||||
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
if (f_printOrientation != NULL) {
|
||||
snprintf(buf, sizeof(buf),
|
||||
"*content-orientation: %s\n", f_printOrientation);
|
||||
XpSetAttributes(XtDisplay(pshell), XpGetContext(XtDisplay(pshell)),
|
||||
XPPageAttr, buf, XPAttrMerge);
|
||||
}
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
for (gHelpDisplayArea->firstVisible = gHelpDisplayArea->nextNonVisible = 0;
|
||||
gHelpDisplayArea->nextNonVisible >= 0;
|
||||
@@ -993,7 +996,9 @@ PrintOneUASCommon(UAS_Pointer<UAS_Common> &doc, Widget pshell, int *cur_pageP)
|
||||
{
|
||||
(*cur_pageP)++;
|
||||
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
XpStartPage(XtDisplay(pshell), XtWindow(pshell));
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
snprintf(buf, sizeof(buf), "%d", *cur_pageP);
|
||||
label = XmStringCreateLocalized(buf);
|
||||
@@ -1008,7 +1013,9 @@ PrintOneUASCommon(UAS_Pointer<UAS_Common> &doc, Widget pshell, int *cur_pageP)
|
||||
|
||||
// _DtHelpCleanAndDrawWholeCanvas((XtPointer)gHelpDisplayArea);
|
||||
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
XpEndPage(XtDisplay(pshell));
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
}
|
||||
|
||||
// Print chidren if appropriate
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
*/
|
||||
|
||||
#include <Xm/XmAll.h>
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
#include <Xm/Print.h>
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
#include <Dt/Print.h>
|
||||
|
||||
#include "UAS.hh"
|
||||
@@ -77,7 +79,9 @@ void customizePrintSetupBox(AppPrintData * p);
|
||||
void DoPrint(Widget widget, AppPrintData * p);
|
||||
void Print(AppPrintData *p);
|
||||
void PrintCloseDisplayCB(Widget, XtPointer, XtPointer);
|
||||
void FinishPrintToFile(Display*, XPContext, XPGetDocStatus, XPointer);
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
void FinishPrintToFile(Display*, XPointer);
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
void CreatePrintShell(Widget, AppPrintData*);
|
||||
void CreatePrintSetup(Widget parent, AppPrintData* p);
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@ GraphicsMgr::get_graphic (UAS_Pointer<Graphic> &gr)
|
||||
|
||||
// if printing, get print resolution from default-printer-resolution
|
||||
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
if (window_system().printing()) {
|
||||
string_resolution = XpGetOneAttribute(window_system().printDisplay(),
|
||||
l_AppPrintData->f_print_data->print_context,
|
||||
@@ -116,6 +117,7 @@ GraphicsMgr::get_graphic (UAS_Pointer<Graphic> &gr)
|
||||
resolution = atoi(string_resolution);
|
||||
XFree(string_resolution);
|
||||
}
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
|
||||
// if not printing, or default-printer-resolution not defined, calcuate from
|
||||
// the X screen resolution
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#define _AppPrintData_hh
|
||||
|
||||
#include <Xm/XmAll.h>
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
#include <Xm/Print.h>
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
#include <Dt/Print.h>
|
||||
|
||||
#include "UAS.hh"
|
||||
|
||||
Reference in New Issue
Block a user