library: libGui #include "TGTextEditDialogs.h"

# TGPrintDialog

class description - source file - inheritance tree (.pdf)

## class TGPrintDialog : public TGTransientFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

<-

`TGMainFrame`

<-

`TGTransientFrame`

<-

`TGPrintDialog`

        public:

                          TGPrintDialog(const TGWindow* p = 0, const TGWindow* main = 0, UInt_t w = 1, UInt_t h = 1, char** printerName = "0", char** printProg = "0", Int_t* ret_code = 0, UInt_t options = kVerticalFrame)
                          TGPrintDialog(const TGPrintDialog&)
                  virtual ~TGPrintDialog()
           static TClass* Class()
             virtual void CloseWindow()
          virtual TClass* IsA() const
           virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                     char** fPrinter            printer to be used
                     char** fPrintCommand       printer command to be used
          TGCompositeFrame* fF1
          TGCompositeFrame* fF2
          TGCompositeFrame* fF3
          TGCompositeFrame* fF4
          TGCompositeFrame* fF5                 sub frames
             TGLayoutHints* fL1
             TGLayoutHints* fL2
             TGLayoutHints* fL3
             TGLayoutHints* fL5
             TGLayoutHints* fL6                 layout hints
             TGLayoutHints* fL7
             TGLayoutHints* fL21                layout hints
                    TGIcon* fPrinterIcon        printer icon
                  TGButton* fPrintButton        print button
                  TGButton* fCancelButton       cancel button
               TGTextEntry* fPrinterEntry       printer text entry widget
               TGTextEntry* fPrintCommandEntry  command text entry widget
              TGTextBuffer* fBPrinter
              TGTextBuffer* fBPrintCommand      printer and command text buffers
                   TGLabel* fLPrinter
                   TGLabel* fLPrintCommand      printer and command labels
                     Int_t* fRetCode            return code

## Class Description

     TGTextEditDialogs

     This file defines several dialogs that are used by the TGTextEdit
     widget via its associated context popup menu.
     The following dialogs are available: TGSearchDialog, TGGotoDialog
     and TGPrintDialog.

TGPrintDialog(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, char **printerName, char **printProg, Int_t *ret_code, UInt_t options) : TGTransientFrame(p, main, w, h, options)

     Create the printer dialog box. Returns kTRUE in ret_code when
     printerName and printProg have been set and cancel was not pressed,
     kFALSE otherwise.

~TGPrintDialog()

     Clean up print dialog.

void CloseWindow()

     Close the dialog. On close the dialog will be deleted and cannot be
     re-used.

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)

     Process print dialog widget messages.

### Inline Functions

                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
            TGPrintDialog TGPrintDialog(const TGPrintDialog&)

Author: Fons Rademakers 10/7/2000
Last update: root/gui:$Name: $:$Id: TGTextEditDialogs.cxx,v 1.8 2004/12/15 09:27:48 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *