## class Printer

> class for printing and postscript generation.

### Public Classes

  enum | OutputType

### Public Methods

  | Printer (Config *c, Document *d) constructor.
  virtual | ~Printer ()
  void | Print () print document as postscript to current printer.
  void | ShowPrintPreview () show print preview in separate window.
  void | ExportAs () show popup dialog for exporting to file.
  void | ShowPrinterQueue () show dialog containing printer queue incl.'lprm' option.
  void | Name () popup dialog for new printer name.
  void | Copies () popup dialog for new number of copies.
  void | PrintCommand () popup dialog for setting printer command.
  void | PrinterQueueCommand () popup dialog for setting printer queue command.
  void | PrinterRemoveCommand () popup dialog for setting printer remove command.
  void | PreviewCommand () popup dialog for setting preview command.
  void | SetName (const string *name)
  void | SetCopies (int copies)
  void | SetPrintCommand (const string *command)
  void | SetPageOrientation (int num) set page orientation to portrait or landscape.
  void | SetPageNumbering (bool b) set page numbering on/off.
  int | GetPageOrientation ()
  void | SetShowPageBoundary (bool set) set showing of page boundary.
  void | ShowInfo (int type)
  void | SetPageSize (PageSize::Type ps) set pagesize to num.
  PageSize::Type | GetPageSize () return page-size (A4 etc).
  void | GetPageSize (double &width, double &height) return page size (pixels).
  void | GetSizePages (Point &topLeft, Point &bottomRight) get area of used pages.
  void | SetBannerPage (int num) set bannerpage to num.
  int | GetBannerPage () return page-size (DEF\_BANNER etc).
  bool | SavePostScript (const string *file, bool TcmBanner) actually save as postscript to the file.
  bool | SaveEPS (const string *file) actually save as encapsulated postscript to the file.
  bool | SaveFig (const string *file, bool latexfonts=False) actually save as Fig format to the file.
  bool | SavePNG (const string *file) actually save as PNG format to the file.
  void | DoSaveAsPS (const string *file)
  void | DoSaveAsEPS (const string *file)
  void | DoSaveAsFigTex (const string *file)
  void | DoSaveAsFigPS (const string *file)
  void | DoSaveAsPNG (const string *file)
  void | UpdateFSFiles ()
  void | SetPreviewCommand (const string *newCommand)
  void | SetDefaultFont (int f, int s, int p)
  void | SetPrintColors (bool b)
  void | SetDuplex (bool b)
  void | SetTumble (bool b)
  void | Draw () draw page boundaries, page numbers, header and footer.
  void | Undraw ()
  FileSelectionDialog* | GetFileSelectionDialog ()
  PromptDialog* | GetPromptDialog ()
  ScaleDialog* | GetScaleDialog ()
  Config* | GetConfig ()
  void | SetStatus (const string *msg)
  void | SetStatus (const char *msg)
  void | SetViewer (Viewer *v)
  void | Save (OutputFile *f) Save page attributes to file.
  bool | Load (InputFile *f, double format) Load page attributes from file.
  bool | Check (InputFile *f, double format) Check but not load page attributes from file.

## Documentation

> class for printing and postscript generation.

`Printer(Config *c, Document *d)`
  constructor.

`virtual ~Printer()`

`enum OutputType`

`void Print()`
  print document as postscript to current printer.

`void ShowPrintPreview()`
  show print preview in separate window.

`void ExportAs()`
  show popup dialog for exporting to file.

`void ShowPrinterQueue()`
  show dialog containing printer queue incl.'lprm' option.

`void Name()`
  popup dialog for new printer name.

`void Copies()`
  popup dialog for new number of copies.

`void PrintCommand()`
  popup dialog for setting printer command.

`void PrinterQueueCommand()`
  popup dialog for setting printer queue command.

`void PrinterRemoveCommand()`
  popup dialog for setting printer remove command.

`void PreviewCommand()`
  popup dialog for setting preview command.

`void SetName(const string *name)`

`void SetCopies(int copies)`

`void SetPrintCommand(const string *command)`

`void SetPageOrientation(int num)`
  set page orientation to portrait or landscape.

`void SetPageNumbering(bool b)`
  set page numbering on/off.

`int GetPageOrientation()`

`void SetShowPageBoundary(bool set)`
  set showing of page boundary.

`void ShowInfo(int type)`

`void SetPageSize(PageSize::Type ps)`
  set pagesize to num.

`PageSize::Type GetPageSize()`
  return page-size (A4 etc).

`void GetPageSize(double &width, double &height)`
  return page size (pixels).

`void GetSizePages(Point &topLeft, Point &bottomRight)`
  get area of used pages.

`void SetBannerPage(int num)`
  set bannerpage to num.

`int GetBannerPage()`
  return page-size (DEF\_BANNER etc).

`bool SavePostScript(const string *file, bool TcmBanner)`
  actually save as postscript to the file.

`bool SaveEPS(const string *file)`
  actually save as encapsulated postscript to the file.

`bool SaveFig(const string *file, bool latexfonts=False)`
  actually save as Fig format to the file.

`bool SavePNG(const string *file)`
  actually save as PNG format to the file.

`void DoSaveAsPS(const string *file)`

`void DoSaveAsEPS(const string *file)`

`void DoSaveAsFigTex(const string *file)`

`void DoSaveAsFigPS(const string *file)`

`void DoSaveAsPNG(const string *file)`

`void UpdateFSFiles()`

`void SetPreviewCommand(const string *newCommand)`

`void SetDefaultFont(int f, int s, int p)`

`void SetPrintColors(bool b)`

`void SetDuplex(bool b)`

`void SetTumble(bool b)`

`void Draw()`
  draw page boundaries, page numbers, header and footer.

`void Undraw()`

`FileSelectionDialog* GetFileSelectionDialog()`

`PromptDialog* GetPromptDialog()`

`ScaleDialog* GetScaleDialog()`

`Config* GetConfig()`

`void SetStatus(const string *msg)`

`void SetStatus(const char *msg)`

`void SetViewer(Viewer *v)`

`void Save(OutputFile *f)`
  Save page attributes to file.

`bool Load(InputFile *f, double format)`
  Load page attributes from file.

`bool Check(InputFile *f, double format)`
  Check but not load page attributes from file.

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de