C# Class PurplePen.CoursePrinting

Inheritance: BasicPrinting
Mostra file Open project: petergolde/PurplePen

Public Methods

Method Description
CoursePrinting ( EventDB eventDB, SymbolDB symbolDB, Controller controller, MapDisplay mapDisplay, CoursePrintSettings coursePrintSettings, CourseAppearance appearance ) : System

Protected Methods

Method Description
ChangePageSettings ( int pageNumber, bool &landscape, System.Drawing.Printing.PaperSize &paperSize, System.Drawing.Printing.Margins margins ) : void
DrawPage ( IGraphicsTarget graphicsTarget, int pageNumber, SizeF printArea, float dpi ) : void
LayoutPages ( System.Drawing.Printing.PageSettings pageSettings, SizeF printArea ) : int
PausePrintingAfterPage ( int pageNumber, string &pauseMessage ) : bool

Private Methods

Method Description
AdjustDpi ( float dpi ) : float
BandPageToLimitBitmapSize ( CoursePage page, float dpi, long maxPixels ) : List
GetPrintableArea ( System.Drawing.Printing.PageSettings pageSettings ) : RectangleF
PausePrintingMessage ( int pageNumber ) : string
PushRectangleClip ( IGraphicsTarget graphicsTarget, RectangleF rect ) : void

Method Details

ChangePageSettings() protected method

protected ChangePageSettings ( int pageNumber, bool &landscape, System.Drawing.Printing.PaperSize &paperSize, System.Drawing.Printing.Margins margins ) : void
pageNumber int
landscape bool
paperSize System.Drawing.Printing.PaperSize
margins System.Drawing.Printing.Margins
return void

CoursePrinting() public method

public CoursePrinting ( EventDB eventDB, SymbolDB symbolDB, Controller controller, MapDisplay mapDisplay, CoursePrintSettings coursePrintSettings, CourseAppearance appearance ) : System
eventDB EventDB
symbolDB SymbolDB
controller Controller
mapDisplay MapDisplay
coursePrintSettings CoursePrintSettings
appearance CourseAppearance
return System

DrawPage() protected method

protected DrawPage ( IGraphicsTarget graphicsTarget, int pageNumber, SizeF printArea, float dpi ) : void
graphicsTarget IGraphicsTarget
pageNumber int
printArea System.Drawing.SizeF
dpi float
return void

LayoutPages() protected method

protected LayoutPages ( System.Drawing.Printing.PageSettings pageSettings, SizeF printArea ) : int
pageSettings System.Drawing.Printing.PageSettings
printArea System.Drawing.SizeF
return int

PausePrintingAfterPage() protected method

protected PausePrintingAfterPage ( int pageNumber, string &pauseMessage ) : bool
pageNumber int
pauseMessage string
return bool