![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Public Member Functions | |
TSLWin32PrintContext (HDC dc) | |
virtual | ~TSLWin32PrintContext () |
virtual bool | clearClipRectangle () |
virtual void * | drawable (bool rastersPossible) |
virtual bool | drawToSurface (double uux1, double uuy1, double uux2, double uuy2, bool clear) |
virtual double | duPerMetre () const |
virtual void | endPage () |
virtual double | pixelScaling () const |
virtual bool | printableArea (TSLEnvelope &area) const |
virtual void | printingComplete () |
virtual bool | setClipRectangle (const TSLEnvelope &clip) |
virtual void | startPage () |
virtual TSLDrawingSurface * | surface () |
![]() | |
virtual | ~TSLPrintContext ()=0 |
Protected Attributes | |
HDC | m_dc |
int | m_dcStack |
HRGN | m_hrgn |
TSLNTSurface * | m_surface |
bool | m_rastersPossible |
|
inline |
Constructor for the Win32 specific implementation of the print context.
dc | Device context to bind to. |
Class TSLWin32PrintContext
|
inlinevirtual |
Destructor.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
This method should clear the current clip rectangle.
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Query for the drawable associated with the context.
rastersPossible | True if the display potentially contains rasters - some printers have issues with this. |
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Draw the specified area of the surface.
uux1,uuy1,uux2,uuy2 | Corners of area to draw |
clear | If true, clear area before drawing. |
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Query the number of device units per metre, of the associated device. This is used when printing to a particular scale.
Returns number of device units per metre.
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Sends an end page message to printer.
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Queries for the pixel scaling factor when in anisotropic mode - adjusts for print preview to screen. This is required since LeadTools is unable to handle anisotropic mode and so we must render into a bitmap, but adjust pixel based dimensions accordingly.
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Query for the printable device unit area.
area | Storage for printable area, in device units. |
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Indicates that printing is complete
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
This method should set the specified clip rectangle to compensate for any logical->physical mapping that may be in effect.
clip | Clip rectangle to set |
This is particularly required to handle print preview under MFC.
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Sends a start page message to printer.
Implements TSLPrintContext.
|
inlinevirtual |
NOTE : This method is used by the TSLPrintHelper and should NOT be called by user code.
Query for the bound drawing surface.
Implements TSLPrintContext.
|
protected |
Data Members for Class Attributes This is the DC associated with the printer.
|
protected |
Private attribute storing the ID of the DC. Used to avoid contaminating the DC passed in.
|
protected |
Private attribute, used to provide clipping for TSLPrintItems.
|
protected |
|
protected |
Private attribute storing temporary Drawing Surface used during printing.