wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
wxPdfPrintPreview Class Reference

Class for managing the print preview process for PDF documents. More...

#include <pdfprint.h>

Inheritance diagram for wxPdfPrintPreview:
[legend]
Collaboration diagram for wxPdfPrintPreview:
[legend]

Public Member Functions

 wxPdfPrintPreview (wxPrintout *printout, wxPrintout *printoutForPrinting)
 Constructor.
 
 wxPdfPrintPreview (wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data)
 Constructor from wxPrintDialogData.
 
 wxPdfPrintPreview (wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data)
 Constructor from wxPrintData.
 
 wxPdfPrintPreview (wxPrintout *printout, wxPrintout *printoutForPrinting, wxPdfPrintData *data)
 Constructor from wxPdfPrintData.
 
virtual ~wxPdfPrintPreview ()
 Destructor.
 
virtual bool SetCurrentPage (int pageNum)
 Set the current page.
 
virtual int GetCurrentPage () const
 Get the current page.
 
virtual void SetPrintout (wxPrintout *printout)
 Set the printout.
 
virtual wxPrintout * GetPrintout () const
 Get the preview printout.
 
virtual wxPrintout * GetPrintoutForPrinting () const
 Get the printing printout.
 
virtual void SetFrame (wxFrame *frame)
 Set the frame.
 
virtual void SetCanvas (wxPreviewCanvas *canvas)
 Set the canvas.
 
virtual wxFrame * GetFrame () const
 Get the frame.
 
virtual wxPreviewCanvas * GetCanvas () const
 Get the canvas.
 
virtual bool PaintPage (wxPreviewCanvas *canvas, wxDC &dc)
 Paint the page.
 
virtual bool UpdatePageRendering ()
 Update page rendering.
 
virtual bool DrawBlankPage (wxPreviewCanvas *canvas, wxDC &dc)
 Draw a blank page.
 
virtual void AdjustScrollbars (wxPreviewCanvas *canvas)
 Adjust scrollbars.
 
virtual bool RenderPage (int pageNum)
 Render the page.
 
virtual void SetZoom (int percent)
 Set the zoom factor.
 
virtual int GetZoom () const
 Get the zoom factor.
 
virtual bool Print (bool interactive)
 Print the document.
 
virtual void DetermineScaling ()
 Determine scaling.
 
virtual wxPrintDialogData & GetPrintDialogData ()
 Get the print dialog data.
 
virtual int GetMaxPage () const
 Get the maximum page number.
 
virtual int GetMinPage () const
 Get the minimum page number.
 
virtual bool Ok () const
 Check whether the preview is valid.
 
virtual bool IsOk () const
 Check whether the preview is valid.
 
virtual void SetOk (bool ok)
 Set the preview valid flag.
 

Detailed Description

Class for managing the print preview process for PDF documents.

Constructor & Destructor Documentation

◆ wxPdfPrintPreview() [1/4]

wxPdfPrintPreview::wxPdfPrintPreview ( wxPrintout *  printout,
wxPrintout *  printoutForPrinting 
)

Constructor.

Parameters
printoutThe printout to preview
printoutForPrintingThe printout to use for printing

◆ wxPdfPrintPreview() [2/4]

wxPdfPrintPreview::wxPdfPrintPreview ( wxPrintout *  printout,
wxPrintout *  printoutForPrinting,
wxPrintDialogData *  data 
)

Constructor from wxPrintDialogData.

Parameters
printoutThe printout to preview
printoutForPrintingThe printout to use for printing
dataThe print dialog data

◆ wxPdfPrintPreview() [3/4]

wxPdfPrintPreview::wxPdfPrintPreview ( wxPrintout *  printout,
wxPrintout *  printoutForPrinting,
wxPrintData *  data 
)

Constructor from wxPrintData.

Parameters
printoutThe printout to preview
printoutForPrintingThe printout to use for printing
dataThe print data

◆ wxPdfPrintPreview() [4/4]

wxPdfPrintPreview::wxPdfPrintPreview ( wxPrintout *  printout,
wxPrintout *  printoutForPrinting,
wxPdfPrintData *  data 
)

Constructor from wxPdfPrintData.

Parameters
printoutThe printout to preview
printoutForPrintingThe printout to use for printing
dataThe PDF print data

Member Function Documentation

◆ AdjustScrollbars()

void wxPdfPrintPreview::AdjustScrollbars ( wxPreviewCanvas *  canvas)
virtual

Adjust scrollbars.

Parameters
canvasThe canvas

◆ DrawBlankPage()

bool wxPdfPrintPreview::DrawBlankPage ( wxPreviewCanvas *  canvas,
wxDC &  dc 
)
virtual

Draw a blank page.

Parameters
canvasThe canvas
dcThe device context
Returns
true if successful, false otherwise

◆ GetCanvas()

wxPreviewCanvas * wxPdfPrintPreview::GetCanvas ( ) const
virtual

Get the canvas.

Returns
The canvas

◆ GetCurrentPage()

int wxPdfPrintPreview::GetCurrentPage ( ) const
virtual

Get the current page.

Returns
The current page number

◆ GetFrame()

wxFrame * wxPdfPrintPreview::GetFrame ( ) const
virtual

Get the frame.

Returns
The frame

◆ GetMaxPage()

int wxPdfPrintPreview::GetMaxPage ( ) const
virtual

Get the maximum page number.

Returns
The maximum page number

◆ GetMinPage()

int wxPdfPrintPreview::GetMinPage ( ) const
virtual

Get the minimum page number.

Returns
The minimum page number

◆ GetPrintDialogData()

wxPrintDialogData & wxPdfPrintPreview::GetPrintDialogData ( )
virtual

Get the print dialog data.

Returns
The print dialog data

◆ GetPrintout()

wxPrintout * wxPdfPrintPreview::GetPrintout ( ) const
virtual

Get the preview printout.

Returns
The preview printout

◆ GetPrintoutForPrinting()

wxPrintout * wxPdfPrintPreview::GetPrintoutForPrinting ( ) const
virtual

Get the printing printout.

Returns
The printing printout

◆ GetZoom()

int wxPdfPrintPreview::GetZoom ( ) const
virtual

Get the zoom factor.

Returns
The zoom factor in percent

◆ IsOk()

bool wxPdfPrintPreview::IsOk ( ) const
virtual

Check whether the preview is valid.

Returns
true if valid, false otherwise

◆ Ok()

virtual bool wxPdfPrintPreview::Ok ( ) const
inlinevirtual

Check whether the preview is valid.

Returns
true if valid, false otherwise

◆ PaintPage()

bool wxPdfPrintPreview::PaintPage ( wxPreviewCanvas *  canvas,
wxDC &  dc 
)
virtual

Paint the page.

Parameters
canvasThe canvas
dcThe device context
Returns
true if successful, false otherwise

◆ Print()

bool wxPdfPrintPreview::Print ( bool  interactive)
virtual

Print the document.

Parameters
interactivetrue to show the print dialog, false otherwise
Returns
true if successful, false otherwise

◆ RenderPage()

bool wxPdfPrintPreview::RenderPage ( int  pageNum)
virtual

Render the page.

Parameters
pageNumThe page number
Returns
true if successful, false otherwise

◆ SetCanvas()

void wxPdfPrintPreview::SetCanvas ( wxPreviewCanvas *  canvas)
virtual

Set the canvas.

Parameters
canvasThe canvas

◆ SetCurrentPage()

bool wxPdfPrintPreview::SetCurrentPage ( int  pageNum)
virtual

Set the current page.

Parameters
pageNumThe page number
Returns
true if successful, false otherwise

◆ SetFrame()

void wxPdfPrintPreview::SetFrame ( wxFrame *  frame)
virtual

Set the frame.

Parameters
frameThe frame

◆ SetOk()

void wxPdfPrintPreview::SetOk ( bool  ok)
virtual

Set the preview valid flag.

Parameters
oktrue if valid, false otherwise

◆ SetPrintout()

void wxPdfPrintPreview::SetPrintout ( wxPrintout *  printout)
virtual

Set the printout.

Parameters
printoutThe printout

◆ SetZoom()

void wxPdfPrintPreview::SetZoom ( int  percent)
virtual

Set the zoom factor.

Parameters
percentThe zoom factor in percent

◆ UpdatePageRendering()

bool wxPdfPrintPreview::UpdatePageRendering ( )
virtual

Update page rendering.

Returns
true if successful, false otherwise

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