54#ifndef SO_XT_PRINT_DIALOG_
55#define SO_XT_PRINT_DIALOG_
57#include <X11/Intrinsic.h>
146 const char *name = NULL,
154 const char *name = NULL,
207 void *userData = NULL);
216 void *userData = NULL);
230 virtual SbString getDefaultWidgetName()
const;
231 virtual SbString getDefaultTitle()
const;
232 virtual SbString getDefaultIconTitle()
const;
239 SbBool printerOutput, postScriptOutput;
242 SoWidget messageWidget, printButton, quitButton;
243 SoWidget messageLabelWidget, fileFormatWidget;
244 SoWidget toPrinterWidget, toPostScriptFileWidget, toRGBFileWidget;
245 SoWidget printerHorizSize, printerVertSize;
246 SoWidget postScriptHorizSize, postScriptVertSize;
248 SoWidget printerDPIField, postScriptDPIField;
249 SoWidget rgbFilenameWidget, postScriptFilenameWidget;
251 char *defaultPrinter;
259 void getPrinterList();
260 void printToPostScript(
SoNode *,
char *,
int,
int );
263 void buildToPrinterWidget(
SoWidget parent );
264 void buildToPostScriptFileWidget(
SoWidget parent );
265 void buildToRGBFileWidget(
SoWidget parent );
267 void buildRadioButton(
char *,
char *,
char *,
int,
int,
270 XtCallbackProc, XtCallbackProc );
272 void updateTextports();
317 void constructorCommon(
SbBool buildNow);
#define TRUE
Possible value of SbBool.
#define XmAnyCallbackStruct
void setAfterPrintCallback(SoWinPrintDialogCB *f, void *userData=NULL)
void setBeforePrintCallback(SoWinPrintDialogCB *f, void *userData=NULL)
#define SoXtPrintDialogCB
void SoXtPrintDialogCB(void *userData, SoXtPrintDialog *dialog)
List of generic (void *) pointers.
Class for smart character strings.
Manages a list of callbacks and associated data.
void addCallback(SoCallbackListCB *f, void *userData=NULL)
Adds a function to the list of callback functions.
void clearCallbacks()
Clears all callback functions from the list.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Abstract base class for all Open Inventor components.
Dialog box for controlling printing.
SoGLRenderAction * getGLRenderAction()
Gets the render action to be used when printing.
void setAfterPrintCallback(SoXtPrintDialogCB *f, void *userData=NULL)
Two callbacks are maintained, one which gets called just before a print is executed,...
void setPrintSize(const SbVec2f &inches)
Sets the size of the printed image in inches.
SoPath * getSceneGraphPath()
Gets the path to nodes to be used for printing.
void setBeforePrintCallback(SoXtPrintDialogCB *f, void *userData=NULL)
Two callbacks are maintained, one which gets called just before a print is executed,...
SoXtPrintDialog(SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
Constructor.
void setGLRenderAction(const SoGLRenderAction *act)
Sets the render action to be used when printing.
void setPrintSize(const SbVec2s &pixels)
Sets the size of the printed image in pixels.
~SoXtPrintDialog()
Destructor.
SoXtPrintDialog(SoGLRenderAction *act, SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
Constructor that takes a render action.
SoNode * getSceneGraph()
Gets the root node to be used for printing.
void setSceneGraph(SoNode *root)
Sets the root node to be used for printing.
void setSceneGraph(SoPath *path)
Sets the path to nodes to be used for printing.
void SoCallbackListCB(void *userData, void *callbackData)