PrintPatchInfo Class Reference

This class encapsulates all the info required to print the next patch on the current piece of paper. More...

#include <printctl.h>

List of all members.

Public Member Functions

 PrintPatchInfo ()
 Default constructor.
 ~PrintPatchInfo ()
 Default deconstructor.
DocRect GetClipRect (BOOL AddBleed=FALSE, BOOL AddCropArea=FALSE) const
void InflateRectBy (DocRect *pRect, BOOL AddBleed=FALSE, BOOL AddCropArea=FALSE) const
void InflateRectBy (OilRect *pRect, BOOL AddBleed=FALSE, BOOL AddCropArea=FALSE) const
void DeflateRectBy (DocRect *pRect, BOOL AddBleed=FALSE, BOOL AddCropArea=FALSE) const
MILLIPOINT GetBleed () const
MILLIPOINT GetCropArea () const

Public Attributes

FIXED16 Scale
MILLIPOINT XTrans
MILLIPOINT YTrans
BOOL Rotate
BOOL SelectedOnly
BOOL VisibleLayers
BOOL EmulsionDown
SpreadpSpread
MILLIPOINT PaperWidth
MILLIPOINT PaperHeight
INT32 ScaledWidth
INT32 ScaledHeight
INT32 PaperNumber
INT32 MaxPaperNumber
INT32 PatchNumber
INT32 MaxPatchNumber
INT32 PALeftMargin
INT32 PATopMargin

Private Attributes

DocRect ClipRect
MILLIPOINT Bleed
MILLIPOINT CropArea

Friends

class PrintControl


Detailed Description

This class encapsulates all the info required to print the next patch on the current piece of paper.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/95
See also:
PrintControl::GetNextPatch()

Definition at line 558 of file printctl.h.


Constructor & Destructor Documentation

PrintPatchInfo::PrintPatchInfo  ) 
 

Default constructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 2649 of file printctl.cpp.

02650 {
02651     Scale           = FIXED16(100);
02652     XTrans          = 0;
02653     YTrans          = 0;
02654     ClipRect        = DocRect(0,0,0,0);
02655     Rotate          = FALSE;
02656     SelectedOnly    = FALSE;
02657     EmulsionDown    = FALSE;
02658     VisibleLayers   = TRUE;
02659     pSpread         = NULL;
02660     PaperWidth      = 0;
02661     PaperHeight     = 0;
02662 
02663 
02664     PaperNumber     = 0;
02665     MaxPaperNumber  = 0;
02666     PatchNumber     = 0;
02667     MaxPatchNumber  = 0;
02668 };

PrintPatchInfo::~PrintPatchInfo  ) 
 

Default deconstructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/4/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
PrintPatchInfo()PrintPatchInfo()

Definition at line 2685 of file printctl.cpp.

02686 {
02687     // Does nowt as yet
02688 }


Member Function Documentation

void PrintPatchInfo::DeflateRectBy DocRect pRect,
BOOL  AddBleed = FALSE,
BOOL  AddCropArea = FALSE
const
 

Definition at line 2734 of file printctl.cpp.

02735 {
02736     if (AddBleed)
02737         pRect->Inflate(-Bleed);
02738     if (AddCropArea)
02739         pRect->Inflate(-CropArea);
02740 }

MILLIPOINT PrintPatchInfo::GetBleed  )  const
 

Definition at line 2742 of file printctl.cpp.

02743 {
02744     return Bleed;
02745 }

DocRect PrintPatchInfo::GetClipRect BOOL  AddBleed = FALSE,
BOOL  AddCropArea = FALSE
const
 

Author : Mike Created : 11/6/95 Inputs : AddBleed = Inflate the output clip rectangle by the bleed value AddCropArea = Inflate the output clip rectangle by the crop area Returns : A clip rectangle. Purpose : Return the value of the clip rectangle held in this structure. The clip rectangle is defined to fit snuggly around a page. No other inflations should or do occur around this clip rectangle. However the printing mechanism needs to know about bleed sizes and cropmark areas in order to render and clip objects correctly so it uses inflated rectangles on occasions. It should not and cannot inflate rectangles itself however because this would assume knowledge of patch positioning which only the printcontrol class knows anything about.

Definition at line 2711 of file printctl.cpp.

02712 {
02713     DocRect Temp = ClipRect;
02714     InflateRectBy(&Temp, AddBleed, AddCropArea);
02715     return Temp;
02716 }

MILLIPOINT PrintPatchInfo::GetCropArea  )  const
 

Definition at line 2747 of file printctl.cpp.

02748 {
02749     return CropArea;
02750 }

void PrintPatchInfo::InflateRectBy OilRect pRect,
BOOL  AddBleed = FALSE,
BOOL  AddCropArea = FALSE
const
 

Definition at line 2726 of file printctl.cpp.

02727 {
02728     if (AddBleed)
02729         pRect->Inflate(Bleed);
02730     if (AddCropArea)
02731         pRect->Inflate(CropArea);
02732 }

void PrintPatchInfo::InflateRectBy DocRect pRect,
BOOL  AddBleed = FALSE,
BOOL  AddCropArea = FALSE
const
 

Definition at line 2718 of file printctl.cpp.

02719 {
02720     if (AddBleed)
02721         pRect->Inflate(Bleed);
02722     if (AddCropArea)
02723         pRect->Inflate(CropArea);
02724 }


Friends And Related Function Documentation

friend class PrintControl [friend]
 

Definition at line 562 of file printctl.h.


Member Data Documentation

MILLIPOINT PrintPatchInfo::Bleed [private]
 

Definition at line 598 of file printctl.h.

DocRect PrintPatchInfo::ClipRect [private]
 

Definition at line 597 of file printctl.h.

MILLIPOINT PrintPatchInfo::CropArea [private]
 

Definition at line 599 of file printctl.h.

BOOL PrintPatchInfo::EmulsionDown
 

Definition at line 583 of file printctl.h.

INT32 PrintPatchInfo::MaxPaperNumber
 

Definition at line 590 of file printctl.h.

INT32 PrintPatchInfo::MaxPatchNumber
 

Definition at line 592 of file printctl.h.

INT32 PrintPatchInfo::PALeftMargin
 

Definition at line 593 of file printctl.h.

MILLIPOINT PrintPatchInfo::PaperHeight
 

Definition at line 586 of file printctl.h.

INT32 PrintPatchInfo::PaperNumber
 

Definition at line 589 of file printctl.h.

MILLIPOINT PrintPatchInfo::PaperWidth
 

Definition at line 585 of file printctl.h.

INT32 PrintPatchInfo::PatchNumber
 

Definition at line 591 of file printctl.h.

INT32 PrintPatchInfo::PATopMargin
 

Definition at line 594 of file printctl.h.

Spread* PrintPatchInfo::pSpread
 

Definition at line 584 of file printctl.h.

BOOL PrintPatchInfo::Rotate
 

Definition at line 580 of file printctl.h.

FIXED16 PrintPatchInfo::Scale
 

Definition at line 577 of file printctl.h.

INT32 PrintPatchInfo::ScaledHeight
 

Definition at line 588 of file printctl.h.

INT32 PrintPatchInfo::ScaledWidth
 

Definition at line 587 of file printctl.h.

BOOL PrintPatchInfo::SelectedOnly
 

Definition at line 581 of file printctl.h.

BOOL PrintPatchInfo::VisibleLayers
 

Definition at line 582 of file printctl.h.

MILLIPOINT PrintPatchInfo::XTrans
 

Definition at line 578 of file printctl.h.

MILLIPOINT PrintPatchInfo::YTrans
 

Definition at line 579 of file printctl.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:00:05 2007 for Camelot by  doxygen 1.4.4