NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <NumeRePrintout.h>
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 | |
NumeReEditor * | m_edit |
int | m_printed |
wxRect | m_pageRect |
wxRect | m_printRect |
Options * | m_options |
wxArrayInt | m_pages |
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.
NumeRePrintout::NumeRePrintout | ( | NumeReEditor * | edit, |
Options * | options, | ||
const wxString & | title = "" |
||
) |
constructor
Definition at line 10 of file NumeRePrintout.cpp.
void NumeRePrintout::GetPageInfo | ( | int * | minPage, |
int * | maxPage, | ||
int * | selPageFrom, | ||
int * | selPageTo | ||
) |
public GetPageInfo Returns various formatting info needed by wxWidgets
minPage | int * Filled with some minimum number of pages |
maxPage | int * Filled with some maximum number of pages |
selPageFrom | int * Filled with something |
selPageTo | int * Filled with something |
Definition at line 97 of file NumeRePrintout.cpp.
References g_pageSetupData, m_edit, m_pageRect, m_pages, m_printed, m_printRect, and PrintScaling().
bool NumeRePrintout::HasPage | ( | int | page | ) |
print functions
public HasPage Checks to see if a given page exists
page | int The page number to check |
Definition at line 165 of file NumeRePrintout.cpp.
References m_pages.
bool NumeRePrintout::OnBeginDocument | ( | int | startPage, |
int | endPage | ||
) |
public OnBeginDocument A setup called by the wxWidgets printing code
startPage | int The starting page |
endPage | int The ending page |
Definition at line 59 of file NumeRePrintout.cpp.
References Options::GetLineNumberPrinting(), m_edit, m_options, and m_printed.
void NumeRePrintout::OnEndDocument | ( | ) |
Definition at line 213 of file NumeRePrintout.cpp.
References m_edit.
bool NumeRePrintout::OnPrintPage | ( | int | page | ) |
event handlers
public OnPrintPage Called by the wxWidgets printing code as needed
page | int The page to print |
Definition at line 28 of file NumeRePrintout.cpp.
References m_edit, m_pageRect, m_pages, m_printed, m_printRect, and PrintScaling().
|
private |
private PrintScaling Scales the output (for print preview, etc)
dc | wxDC * The wxDC to use for calculations |
Definition at line 181 of file NumeRePrintout.cpp.
Referenced by GetPageInfo(), and OnPrintPage().
|
private |
Definition at line 32 of file NumeRePrintout.h.
Referenced by GetPageInfo(), NumeRePrintout(), OnBeginDocument(), OnEndDocument(), and OnPrintPage().
|
private |
Definition at line 36 of file NumeRePrintout.h.
Referenced by NumeRePrintout(), and OnBeginDocument().
|
private |
Definition at line 34 of file NumeRePrintout.h.
Referenced by GetPageInfo(), and OnPrintPage().
|
private |
Definition at line 37 of file NumeRePrintout.h.
Referenced by GetPageInfo(), HasPage(), and OnPrintPage().
|
private |
Definition at line 33 of file NumeRePrintout.h.
Referenced by GetPageInfo(), NumeRePrintout(), OnBeginDocument(), and OnPrintPage().
|
private |
Definition at line 35 of file NumeRePrintout.h.
Referenced by GetPageInfo(), and OnPrintPage().