NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
NumeRePrintout Class Reference

#include <NumeRePrintout.h>

Inheritance diagram for NumeRePrintout:
Collaboration diagram for NumeRePrintout:

Public Member Functions

 NumeRePrintout (NumeReEditor *edit, Options *options, const wxString &title="")
 constructor More...
 
bool OnPrintPage (int page)
 event handlers More...
 
bool OnBeginDocument (int startPage, int endPage)
 
void OnEndDocument ()
 
bool HasPage (int page)
 print functions More...
 
void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo)
 

Private Member Functions

bool PrintScaling (wxDC *dc)
 

Private Attributes

NumeReEditorm_edit
 
int m_printed
 
wxRect m_pageRect
 
wxRect m_printRect
 
Optionsm_options
 
wxArrayInt m_pages
 

Detailed Description

This class was swiped almost entirely from wxGuide, and only had a couple slight changes made. Basically, it works, and that's all I need to know.

Definition at line 14 of file NumeRePrintout.h.

Constructor & Destructor Documentation

◆ NumeRePrintout()

NumeRePrintout::NumeRePrintout ( NumeReEditor edit,
Options options,
const wxString &  title = "" 
)

constructor

Definition at line 10 of file NumeRePrintout.cpp.

References m_edit, m_options, and m_printed.

Member Function Documentation

◆ GetPageInfo()

void NumeRePrintout::GetPageInfo ( int *  minPage,
int *  maxPage,
int *  selPageFrom,
int *  selPageTo 
)

public GetPageInfo Returns various formatting info needed by wxWidgets

Parameters
minPageint * Filled with some minimum number of pages
maxPageint * Filled with some maximum number of pages
selPageFromint * Filled with something
selPageToint * Filled with something
Returns
void
Author
Mark Erikson
Date
04-23-2004

Definition at line 97 of file NumeRePrintout.cpp.

References g_pageSetupData, m_edit, m_pageRect, m_pages, m_printed, m_printRect, and PrintScaling().

Here is the call graph for this function:

◆ HasPage()

bool NumeRePrintout::HasPage ( int  page)

print functions

public HasPage Checks to see if a given page exists

Parameters
pageint The page number to check
Returns
bool Whether or not the page exists
Author
Mark Erikson
Date
04-23-2004

Definition at line 165 of file NumeRePrintout.cpp.

References m_pages.

◆ OnBeginDocument()

bool NumeRePrintout::OnBeginDocument ( int  startPage,
int  endPage 
)

public OnBeginDocument A setup called by the wxWidgets printing code

Parameters
startPageint The starting page
endPageint The ending page
Returns
bool Whether or not the setup succeeded
Author
Mark Erikson
Date
04-23-2004

Definition at line 59 of file NumeRePrintout.cpp.

References Options::GetLineNumberPrinting(), m_edit, m_options, and m_printed.

Here is the call graph for this function:

◆ OnEndDocument()

void NumeRePrintout::OnEndDocument ( )

Definition at line 213 of file NumeRePrintout.cpp.

References m_edit.

◆ OnPrintPage()

bool NumeRePrintout::OnPrintPage ( int  page)

event handlers

public OnPrintPage Called by the wxWidgets printing code as needed

Parameters
pageint The page to print
Returns
bool Whether or not the print succeeded
Author
Mark Erikson
Date
04-23-2004

Definition at line 28 of file NumeRePrintout.cpp.

References m_edit, m_pageRect, m_pages, m_printed, m_printRect, and PrintScaling().

Here is the call graph for this function:

◆ PrintScaling()

bool NumeRePrintout::PrintScaling ( wxDC *  dc)
private

private PrintScaling Scales the output (for print preview, etc)

Parameters
dcwxDC * The wxDC to use for calculations
Returns
bool Whether or not the function succeeded
Author
Mark Erikson
Date
04-23-2004

Definition at line 181 of file NumeRePrintout.cpp.

Referenced by GetPageInfo(), and OnPrintPage().

Member Data Documentation

◆ m_edit

NumeReEditor* NumeRePrintout::m_edit
private

◆ m_options

Options* NumeRePrintout::m_options
private

Definition at line 36 of file NumeRePrintout.h.

Referenced by NumeRePrintout(), and OnBeginDocument().

◆ m_pageRect

wxRect NumeRePrintout::m_pageRect
private

Definition at line 34 of file NumeRePrintout.h.

Referenced by GetPageInfo(), and OnPrintPage().

◆ m_pages

wxArrayInt NumeRePrintout::m_pages
private

Definition at line 37 of file NumeRePrintout.h.

Referenced by GetPageInfo(), HasPage(), and OnPrintPage().

◆ m_printed

int NumeRePrintout::m_printed
private

Definition at line 33 of file NumeRePrintout.h.

Referenced by GetPageInfo(), NumeRePrintout(), OnBeginDocument(), and OnPrintPage().

◆ m_printRect

wxRect NumeRePrintout::m_printRect
private

Definition at line 35 of file NumeRePrintout.h.

Referenced by GetPageInfo(), and OnPrintPage().


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