Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members

Specify MS Windows GUI drawing environment previewed in MFC window. More...

#include <oofPrnWn.h>

Inheritance diagram for oofRepWinGUIPreviewMFC:
Inheritance graph
Collaboration diagram for oofRepWinGUIPreviewMFC:
Collaboration graph

Public Types

enum  { eRenderType ='Win ' }

Public Member Functions

virtual unsigned long calcPageHeight ()
virtual unsigned long calcPageWidth ()
virtual bool canDraw ()
virtual void changeTextStyle (oofRepTextStyle *)
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
 oofRepWinGUIPreviewMFC (PAGESETUPDLG *pageSetup=NULL)
virtual oofRectpageRectPts ()
oofRepPageListpages ()
void parentWindow (CWnd *)
CWndparentWindow () const
virtual bool preprocessesPageHeadersAndFooters () const
unsigned long previewPageOrdinal () const
virtual oofRepRenderT renderType () const
virtual void resumeBandOverPage ()
void setPageSetup (PAGESETUPDLG *pageSetup)
virtual void splitBandOverPage ()
void start ()
virtual void startEnvironment ()
virtual void startSection ()
 ~oofRepWinGUIPreviewMFC ()

Static Public Member Functions

static SIZE getTextExtent (const oofRepTextStyle *textStyle, const OOF_String &text)
static void initDefaultPageSetup (PAGESETUPDLG *)

Protected Member Functions

void endPage ()
void startPage ()

Detailed Description

Specify MS Windows GUI drawing environment previewed in MFC window.

Definition at line 34 of file oofPrnWn.h.

Constructor & Destructor Documentation

oofRepWinGUIPreviewMFC::oofRepWinGUIPreviewMFC ( PAGESETUPDLG *  pageSetup = NULL)

Definition at line 32 of file oofPrnWn.cpp.

References initDefaultPageSetup(), and setPageSetup().

oofRepWinGUIPreviewMFC::~oofRepWinGUIPreviewMFC ( )

Definition at line 51 of file oofPrnWn.cpp.

References finish().

Member Function Documentation

unsigned long oofRepWinGUIPreviewMFC::calcPageHeight ( )

Implements oofRepEnvironment.

Definition at line 231 of file oofPrnWn.cpp.

References oofRect::height().

unsigned long oofRepWinGUIPreviewMFC::calcPageWidth ( )

Implements oofRepEnvironment.

Definition at line 237 of file oofPrnWn.cpp.

References oofRect::width().

bool oofRepEnvironment::canDraw ( )

Reimplemented in oofRepStreamEnv.

Definition at line 1225 of file oofrep2.cpp.

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

void oofRepWinGUIPreviewMFC::changeTextStyle ( oofRepTextStyle inStyle)
void oofRepWinGUIPreviewMFC::drawPage ( HDC  inDC,
unsigned long  pageIndex,
oofRect  inRect 
void oofRepWinGUIPreviewMFC::drawPageBorder ( long  top,
long  left,
long  bottom,
long  right 

Reimplemented from oofRepEnvironment.

Definition at line 254 of file oofPrnWn.cpp.

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

void oofRepWinGUIPreviewMFC::drawPageBreak ( )

Implements oofRepEnvironment.

Definition at line 165 of file oofPrnWn.cpp.

References endPage(), and startPage().

void oofRepEnvironment::drawSectionBreak ( )

Definition at line 1273 of file oofrep2.cpp.

References oofRepEnvironment::drawPageBreak().

Referenced by oofRepSection::drawSection().

void oofRepWinGUIPreviewMFC::drawWithTextStyle ( oofRepTextStyle style)

Definition at line 203 of file oofPrnWn.cpp.

References oofRepTextStyle::color(), and oofRepTextStyle::fontSize().

Referenced by changeTextStyle().

void oofRepEnvironment::endEnvironment ( )
void oofRepWinGUIPreviewMFC::endPage ( )

Definition at line 152 of file oofPrnWn.cpp.

References oofRepPageList::appendPage(), and changeTextStyle().

Referenced by drawPageBreak(), and finish().

void oofRepWinGUIPreviewMFC::finish ( )

Definition at line 137 of file oofPrnWn.cpp.

References endPage().

Referenced by oofRepWinPrint::print(), and ~oofRepWinGUIPreviewMFC().

oofRect* oofRepWinGUIPreviewMFC::getMargin ( )

Definition at line 50 of file oofPrnWn.h.

unsigned long oofRepWinGUIPreviewMFC::getNumPages ( ) const
SIZE oofRepWinEnv::getTextExtent ( const oofRepTextStyle textStyle,
const OOF_String text 

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)

Implements oofRepEnvironment.

Definition at line 56 of file oofrpWin.cpp.

References oofRepTextStyle::fontSize().

void oofRepWinGUIPreviewMFC::initDefaultPageSetup ( PAGESETUPDLG *  ps)

Definition at line 61 of file oofPrnWn.cpp.

References oofRepWinPrint::getPaperSize().

Referenced by oofRepWinGUIPreviewMFC().

bool oofRepEnvironment::isPrintingEnvironment ( ) const
virtual void oofRepEnvironment::makeRender ( )

Definition at line 420 of file oofrep.h.

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

void oofRepWinEnv::makeRenderDispatch ( oofRepDrawable drawable) const

Implements oofRepEnvironment.

Definition at line 27 of file oofrpWin.cpp.

References oofRepDrawable::makeRender().

void oofRepWinEnv::makeRenderDispatch ( oofAdorner drawable) const

Implements oofRepEnvironment.

Definition at line 45 of file oofrpWin.cpp.

References oofAdorner::makeRender().

virtual oofRect* oofRepWinGUIPreviewMFC::pageRectPts ( )

Definition at line 51 of file oofPrnWn.h.

Referenced by drawPage().

oofRepPageList & oofRepWinGUIPreviewMFC::pages ( )

Definition at line 146 of file oofPrnWn.h.

void oofRepWinGUIPreviewMFC::parentWindow ( CWnd inWnd)

Definition at line 167 of file oofPrnWn.h.

CWnd * oofRepWinGUIPreviewMFC::parentWindow ( ) const

Definition at line 174 of file oofPrnWn.h.

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

Definition at line 160 of file oofPrnWn.h.

oofRepRenderT oofRepWinEnv::renderType ( ) const

Implements oofRepEnvironment.

Definition at line 50 of file oofrpWin.cpp.

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

Definition at line 91 of file oofPrnWn.cpp.

References hienglish2pts(), and himetric2pts().

Referenced by oofRepWinGUIPreviewMFC().

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

Definition at line 130 of file oofPrnWn.cpp.

References startPage().

Referenced by oofRepWinPrint::oofRepWinPrint().

void oofRepWinEnv::startEnvironment ( )

Reimplemented from oofRepEnvironment.

Definition at line 119 of file oofrpWin.cpp.

void oofRepWinGUIPreviewMFC::startPage ( )

Definition at line 144 of file oofPrnWn.cpp.

Referenced by drawPageBreak(), and start().

void oofRepEnvironment::startSection ( )

Reimplemented in oofRepXMLEnv, and oofRepRTFEnv.

Definition at line 1253 of file oofrep2.cpp.

Referenced by oofRepSection::drawSection().

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