26#ifndef SO_WIN_PRINT_DIALOG_
27#define SO_WIN_PRINT_DIALOG_
62 const char *name = NULL,
67 const char *name = NULL,
89 void *userData = NULL);
92 void *userData = NULL);
106 virtual SbString getDefaultWidgetName()
const;
107 virtual SbString getDefaultTitle()
const;
108 virtual SbString getDefaultIconTitle()
const;
115 SbBool printerOutput, postScriptOutput;
118 SoWidget messageWidget, printButton, quitButton;
119 SoWidget messageLabelWidget, fileFormatWidget;
120 SoWidget toPrinterWidget, toPostScriptFileWidget, toRGBFileWidget;
121 SoWidget printerHorizSize, printerVertSize;
122 SoWidget postScriptHorizSize, postScriptVertSize;
124 SoWidget printerDPIField, postScriptDPIField;
125 SoWidget rgbFilenameWidget, postScriptFilenameWidget;
127 char *defaultPrinter;
135 void getPrinterList();
136 void printToPostScript(
SoNode *,
char *,
int,
int );
139 void buildToPrinterWidget(
SoWidget parent );
140 void buildToPostScriptFileWidget(
SoWidget parent );
141 void buildToRGBFileWidget(
SoWidget parent );
143 void buildRadioButton(
char *,
char *,
char *,
int,
int,
146 XtCallbackProc, XtCallbackProc );
148 void updateTextports();
193 void constructorCommon(
SbBool buildNow);
199SoWinPrintDialog::setBeforePrintCallback(
208SoWinPrintDialog::setAfterPrintCallback(
#define TRUE
Possible value of SbBool.
virtual void print(FILE *fp) const
Prints element (for debugging).
#define XmAnyCallbackStruct
void setAfterPrintCallback(SoWinPrintDialogCB *f, void *userData=NULL)
SoWinPrintDialog(SoGLRenderAction *act, SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
void SoWinPrintDialogCB(void *userData, SoWinPrintDialog *dialog)
SoGLRenderAction * getGLRenderAction()
void setPrintSize(const SbVec2f &s)
void setSceneGraph(SoPath *path)
void setBeforePrintCallback(SoWinPrintDialogCB *f, void *userData=NULL)
SoPath * getSceneGraphPath()
void setGLRenderAction(const SoGLRenderAction *act)
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.
void SoCallbackListCB(void *userData, void *callbackData)