OOFILE  1.9
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members

Specify MS Windows GUI drawing environment being printed. More...

#include <oofPrnWn.h>

Inheritance diagram for oofRepWinPrint:
Inheritance graph
[legend]
Collaboration diagram for oofRepWinPrint:
Collaboration graph
[legend]

Classes

struct  paperSizeLookupTag
 

Public Types

enum  { eRenderType ='Win ' }
 

Public Member Functions

virtual unsigned long calcPageHeight ()
 
virtual unsigned long calcPageWidth ()
 
virtual bool canDraw ()
 
virtual void changeTextStyle (oofRepTextStyle *)
 
void disablePrinting ()
 
void drawPage (HDC, unsigned long pageIndex, oofRect)
 
virtual void drawPageBorder (long top, long left, long bottom, long right)
 
virtual void drawPageBreak ()
 
virtual void drawSectionBreak ()
 
void drawWithTextStyle (oofRepTextStyle *)
 
virtual void endEnvironment ()
 
void finish ()
 
oofRectgetMargin ()
 
unsigned long getNumPages () const
 
virtual unsigned short heightOfTextStyle (oofRepTextStyle *theStyle)
 
virtual bool isPrintingEnvironment () const
 
virtual void makeRender ()
 
virtual void makeRenderDispatch (oofRepDrawable *drawable) const
 
virtual void makeRenderDispatch (oofAdorner *drawable) const
 
 oofRepWinPrint (const char *docStr=NULL, LPPAGESETUPDLG pageSetup=NULL, LPPRINTDLG printDlg=NULL)
 
virtual oofRectpageRectPts ()
 
oofRepPageListpages ()
 
void parentWindow (CWnd *)
 
CWndparentWindow () const
 
virtual bool preprocessesPageHeadersAndFooters () const
 
unsigned long previewPageOrdinal () const
 
void print ()
 
virtual oofRepRenderT renderType () const
 
virtual void resumeBandOverPage ()
 
void setPageSetup (PAGESETUPDLG *pageSetup)
 
virtual void splitBandOverPage ()
 
void start ()
 
virtual void startEnvironment ()
 
virtual void startSection ()
 
 ~oofRepWinPrint ()
 

Static Public Member Functions

static BOOL getPaperSize (HANDLE hDevNames, HANDLE hDevMode, LPPOINT paperSize)
 
static BOOL getPaperSizeFromSymbolicValue (short paperSizeID, LPPOINT paperSize)
 
static SIZE getTextExtent (const oofRepTextStyle *textStyle, const OOF_String &text)
 
static void initDefaultPageSetup (PAGESETUPDLG *)
 
static BOOL setPrinterMappingMode (CDC *pDC)
 
static BOOL setPrinterMappingMode (HDC hDC)
 

Protected Types

typedef struct oofRepWinPrint::paperSizeLookupTag paperSizeLookup
 

Protected Member Functions

void endPage ()
 
void FillInPrintDlg (LPPRINTDLG printDlg) const
 
void GetLogicalPageRect (LPRECT rect, HDC dc) const
 
void PrintPage (unsigned long pageNo, const LPRECT pageRect, LPPRINTDLG pd)
 
void startPage ()
 

Protected Attributes

const char * mDefaultPrintStr
 
DOCINFO mDocInfo
 
LPPRINTDLG mPrintDlg
 
bool mPrinted
 

Detailed Description

Specify MS Windows GUI drawing environment being printed.

Definition at line 86 of file oofPrnWn.h.

Member Typedef Documentation

Constructor & Destructor Documentation

oofRepWinPrint::oofRepWinPrint ( const char *  docStr = NULL,
LPPAGESETUPDLG  pageSetup = NULL,
LPPRINTDLG  printDlg = NULL 
)
oofRepWinPrint::~oofRepWinPrint ( )

Definition at line 341 of file oofPrnWn.cpp.

References mPrinted, and print().

Member Function Documentation

unsigned long oofRepWinGUIPreviewMFC::calcPageHeight ( )
virtualinherited

Implements oofRepEnvironment.

Definition at line 231 of file oofPrnWn.cpp.

References oofRect::height().

unsigned long oofRepWinGUIPreviewMFC::calcPageWidth ( )
virtualinherited

Implements oofRepEnvironment.

Definition at line 237 of file oofPrnWn.cpp.

References oofRect::width().

bool oofRepEnvironment::canDraw ( )
virtualinherited

Reimplemented in oofRepStreamEnv.

Definition at line 1225 of file oofrep2.cpp.

Referenced by oofRep::draw(), and oofRepMulti::draw().

void oofRepWinGUIPreviewMFC::changeTextStyle ( oofRepTextStyle inStyle)
virtualinherited
void oofRepWinPrint::disablePrinting ( )
inline

Definition at line 183 of file oofPrnWn.h.

References mPrinted.

void oofRepWinGUIPreviewMFC::drawPage ( HDC  inDC,
unsigned long  pageIndex,
oofRect  inRect 
)
inherited
void oofRepWinGUIPreviewMFC::drawPageBorder ( long  top,
long  left,
long  bottom,
long  right 
)
virtualinherited

Reimplemented from oofRepEnvironment.

Definition at line 254 of file oofPrnWn.cpp.

References oofWinRectDE::recordElement(), and oofRect::set().

void oofRepWinGUIPreviewMFC::drawPageBreak ( )
virtualinherited
void oofRepEnvironment::drawSectionBreak ( )
virtualinherited

Definition at line 1273 of file oofrep2.cpp.

References oofRepEnvironment::drawPageBreak().

Referenced by oofRepSection::drawSection().

void oofRepWinGUIPreviewMFC::drawWithTextStyle ( oofRepTextStyle style)
inherited
void oofRepEnvironment::endEnvironment ( )
virtualinherited
void oofRepWinGUIPreviewMFC::endPage ( )
protectedinherited
void oofRepWinPrint::FillInPrintDlg ( LPPRINTDLG  printDlg) const
protected

Definition at line 347 of file oofPrnWn.cpp.

References oofRepWinGUIPreviewMFC::getNumPages().

Referenced by print().

void oofRepWinGUIPreviewMFC::finish ( )
inherited
void oofRepWinPrint::GetLogicalPageRect ( LPRECT  rect,
HDC  dc 
) const
protected

Definition at line 451 of file oofPrnWn.cpp.

Referenced by print().

oofRect* oofRepWinGUIPreviewMFC::getMargin ( )
inlineinherited

Definition at line 50 of file oofPrnWn.h.

unsigned long oofRepWinGUIPreviewMFC::getNumPages ( ) const
inlineinherited

Definition at line 153 of file oofPrnWn.h.

References OOF_ExpandableLongArray::count().

Referenced by oofRepWinGUIPreviewMFC::drawPage(), FillInPrintDlg(), and print().

BOOL oofRepWinPrint::getPaperSize ( HANDLE  hDevNames,
HANDLE  hDevMode,
LPPOINT  paperSize 
)
static
BOOL oofRepWinPrint::getPaperSizeFromSymbolicValue ( short  paperSizeID,
LPPOINT  paperSize 
)
static
SIZE oofRepWinEnv::getTextExtent ( const oofRepTextStyle textStyle,
const OOF_String text 
)
staticinherited

Definition at line 86 of file oofrpWin.cpp.

References oofRepTextStyle::fontSize(), and oofString::length().

Referenced by oofRepTextBlock_WinRender::width().

unsigned short oofRepWinEnv::heightOfTextStyle ( oofRepTextStyle theStyle)
virtualinherited

Implements oofRepEnvironment.

Definition at line 56 of file oofrpWin.cpp.

References oofRepTextStyle::fontSize().

void oofRepWinGUIPreviewMFC::initDefaultPageSetup ( PAGESETUPDLG *  ps)
staticinherited

Definition at line 61 of file oofPrnWn.cpp.

References getPaperSize().

Referenced by oofRepWinGUIPreviewMFC::oofRepWinGUIPreviewMFC().

bool oofRepWinPrint::isPrintingEnvironment ( ) const
inlinevirtual

Reimplemented from oofRepEnvironment.

Definition at line 189 of file oofPrnWn.h.

virtual void oofRepEnvironment::makeRender ( )
inlinevirtualinherited

Definition at line 420 of file oofrep.h.

Referenced by oofRep::draw(), and oofRepMulti::draw().

void oofRepWinEnv::makeRenderDispatch ( oofRepDrawable drawable) const
virtualinherited

Implements oofRepEnvironment.

Definition at line 27 of file oofrpWin.cpp.

References oofRepDrawable::makeRender().

void oofRepWinEnv::makeRenderDispatch ( oofAdorner drawable) const
virtualinherited

Implements oofRepEnvironment.

Definition at line 45 of file oofrpWin.cpp.

References oofAdorner::makeRender().

virtual oofRect* oofRepWinGUIPreviewMFC::pageRectPts ( )
inlinevirtualinherited

Definition at line 51 of file oofPrnWn.h.

Referenced by oofRepWinGUIPreviewMFC::drawPage().

oofRepPageList & oofRepWinGUIPreviewMFC::pages ( )
inlineinherited

Definition at line 146 of file oofPrnWn.h.

void oofRepWinGUIPreviewMFC::parentWindow ( CWnd inWnd)
inlineinherited

Definition at line 167 of file oofPrnWn.h.

CWnd * oofRepWinGUIPreviewMFC::parentWindow ( ) const
inlineinherited

Definition at line 174 of file oofPrnWn.h.

bool oofRepEnvironment::preprocessesPageHeadersAndFooters ( ) const
virtualinherited
unsigned long oofRepWinGUIPreviewMFC::previewPageOrdinal ( ) const
inlineinherited

Definition at line 160 of file oofPrnWn.h.

void oofRepWinPrint::print ( )
void oofRepWinPrint::PrintPage ( unsigned long  pageNo,
const LPRECT  pageRect,
LPPRINTDLG  pd 
)
protected

Definition at line 419 of file oofPrnWn.cpp.

References oofRepWinGUIPreviewMFC::drawPage(), and setPrinterMappingMode().

Referenced by print().

oofRepRenderT oofRepWinEnv::renderType ( ) const
virtualinherited

Implements oofRepEnvironment.

Definition at line 50 of file oofrpWin.cpp.

virtual void oofRepEnvironment::resumeBandOverPage ( )
inlinevirtualinherited
void oofRepWinGUIPreviewMFC::setPageSetup ( PAGESETUPDLG *  pageSetup)
inherited

Definition at line 91 of file oofPrnWn.cpp.

References hienglish2pts(), and himetric2pts().

Referenced by oofRepWinGUIPreviewMFC::oofRepWinGUIPreviewMFC().

BOOL oofRepWinPrint::setPrinterMappingMode ( CDC *  pDC)
static

Definition at line 461 of file oofPrnWn.cpp.

References getPaperSize().

Referenced by PrintPage(), and setPrinterMappingMode().

BOOL oofRepWinPrint::setPrinterMappingMode ( HDC  hDC)
static

Definition at line 497 of file oofPrnWn.cpp.

References setPrinterMappingMode().

virtual void oofRepEnvironment::splitBandOverPage ( )
inlinevirtualinherited
void oofRepWinGUIPreviewMFC::start ( )
inherited

Definition at line 130 of file oofPrnWn.cpp.

References oofRepWinGUIPreviewMFC::startPage().

Referenced by oofRepWinPrint().

void oofRepWinEnv::startEnvironment ( )
virtualinherited

Reimplemented from oofRepEnvironment.

Definition at line 119 of file oofrpWin.cpp.

void oofRepWinGUIPreviewMFC::startPage ( )
protectedinherited
void oofRepEnvironment::startSection ( )
virtualinherited

Reimplemented in oofRepXMLEnv, and oofRepRTFEnv.

Definition at line 1253 of file oofrep2.cpp.

Referenced by oofRepSection::drawSection().

Member Data Documentation

const char* oofRepWinPrint::mDefaultPrintStr
protected

Definition at line 136 of file oofPrnWn.h.

Referenced by oofRepWinPrint().

DOCINFO oofRepWinPrint::mDocInfo
protected

Definition at line 135 of file oofPrnWn.h.

Referenced by oofRepWinPrint(), and print().

LPPRINTDLG oofRepWinPrint::mPrintDlg
protected

Definition at line 137 of file oofPrnWn.h.

Referenced by print().

bool oofRepWinPrint::mPrinted
protected

Definition at line 138 of file oofPrnWn.h.

Referenced by disablePrinting(), print(), and ~oofRepWinPrint().


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