OpenCPN Partial API docs
Loading...
Searching...
No Matches
PrintDialog Class Reference

Handle the print process and dialog. More...

#include <print_dialog.h>

Public Member Functions

 PrintDialog (wxPrintOrientation orientation)=delete
 
PrintDialogoperator= (const PrintDialog &)=delete
 
void Initialize (wxPrintOrientation orientation)
 Initialize the printer with default setup.
 
void EnablePageNumbers (bool enable)
 Print page numbers.
 
void Print (wxWindow *parent, wxPrintout *output)
 Start print process and opens the print dialog.
 

Static Public Member Functions

static PrintDialogGetInstance ()
 Get instance to handle the print process,.
 

Detailed Description

Handle the print process and dialog.

Definition at line 27 of file print_dialog.h.

Member Function Documentation

◆ EnablePageNumbers()

void PrintDialog::EnablePageNumbers ( bool  enable)

Print page numbers.

Parameters
enableEnable or disable page numbers.

Definition at line 43 of file print_dialog.cpp.

◆ GetInstance()

PrintDialog & PrintDialog::GetInstance ( )
static

Get instance to handle the print process,.

Returns
Singleton instance to handle print process.

Definition at line 29 of file print_dialog.cpp.

◆ Initialize()

void PrintDialog::Initialize ( wxPrintOrientation  orientation)

Initialize the printer with default setup.

Parameters
orientationDefault page orientation.

Definition at line 34 of file print_dialog.cpp.

◆ Print()

void PrintDialog::Print ( wxWindow *  parent,
wxPrintout *  output 
)

Start print process and opens the print dialog.

Parameters
parentParent window.
outputPrinter output.

Definition at line 47 of file print_dialog.cpp.


The documentation for this class was generated from the following files: