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

Subclass platform preview environment to intercept for editing hooks. More...

#include <oofrepeditx.h>

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

Public Types

enum  { eRenderType ='Mac ' }
 
typedef oofRepMacGUIPreviewPP parentGUIenvT
 

Public Member Functions

virtual unsigned long calcPageHeight ()
 
virtual unsigned long calcPageWidth ()
 
virtual bool canDraw ()
 
virtual void changeTextStyle (oofRepTextStyle *)
 
virtual void drawPageBorder (long top, long left, long bottom, long right)
 
virtual void drawPageBreak ()
 
virtual void drawSectionBreak ()
 
oofRepEditoreditor () const
 
virtual void endEnvironment ()
 we don't delete mAreas here but leave it active now that we've finished drawing the report it maps - the user is using the preview window to possibly interact with the report, mapped through mAreas to oofRepEditLink's. More...
 
void finishConstruction (dbRepPICTs *PICTs, THPrint pageSetup=nil)
 
virtual unsigned short heightOfTextStyle (oofRepTextStyle *)
 
virtual bool isPrintingEnvironment () const
 
virtual void makeRender ()
 
virtual void makeRenderDispatch (oofRepDrawable *) const
 
virtual void makeRenderDispatch (oofAdorner *) const
 
 oofRepEditingEnv (oofRepEditor *)
 
THPrint pageSetup () const
 
void pageSetup (THPrint)
 
void parentCommander (LCommander *)
 
LCommanderparentCommander () const
 
parentGUIenvTparentGUIenv () const
 
virtual bool preprocessesPageHeadersAndFooters () const
 
unsigned long previewPageOrdinal () const
 returns ordinal number, NOT the printable page number which may reset More...
 
Point printableOffset ()
 
virtual oofRepRenderT renderType () const
 
virtual void resumeBandOverPage ()
 
virtual void singleClick (short x, short y)
 interaction in progress More...
 
virtual void splitBandOverPage ()
 Save a copy of the interaction area that we can use to create a new one at the top of the next page. More...
 
virtual void startEnvironment ()
 
virtual void startMonitoringWindowInteractions (LPane *)
 The default interactor will be used by most users but it is possible that in future they will have report objects that create their own interactors. More...
 
virtual void startSection ()
 
virtual ~oofRepEditingEnv ()
 
setup interaction
virtual void addInteractionArea (short inX, short inY, short inCol, long inRow, oofRepEditLink *inEditor, oofRepInteractorStrategy *inInteractor=0, short width=0, short height=0)
 Add entry used in Flyweight pattern to react to clicks, etc. More...
 
virtual void addInteractionArea (const OOF_InteractionArea &)
 
void pageAdoptsEditLink (oofRepEditLink *)
 add edit link entry to page, which implies adoption of link if 1st time added to a page More...
 
void changeAreasToNewLink (long matchingRow, oofRepEditLink *matchingLink, oofRepEditLink *newLink)
 
void startNonEditableArea ()
 

Protected Attributes

oofRepEditormEditor
 
OOF_InteractionPagesmInteractionPages
 owned More...
 
OOF_InteractionAreamLastAreaOnPrevPage
 
THPrint mPrintRecordH
 
GrafPtr mSavedPort
 

Detailed Description

Subclass platform preview environment to intercept for editing hooks.

Definition at line 368 of file oofrepeditx.h.

Member Typedef Documentation

Definition at line 370 of file oofrepeditx.h.

Constructor & Destructor Documentation

oofRepEditingEnv::oofRepEditingEnv ( oofRepEditor theEditor)

Definition at line 61 of file oofrepedit.cpp.

oofRepEditingEnv::~oofRepEditingEnv ( )
virtual

Definition at line 68 of file oofrepedit.cpp.

References mInteractionPages, and mLastAreaOnPrevPage.

Member Function Documentation

void oofRepEditingEnv::addInteractionArea ( short  inX,
short  inY,
short  inCol,
long  inRow,
oofRepEditLink inEditor,
oofRepInteractorStrategy inInteractor = 0,
short  width = 0,
short  height = 0 
)
virtual
void oofRepEditingEnv::addInteractionArea ( const OOF_InteractionArea inArea)
virtual
unsigned long oofRepMacGUIPreviewPP::calcPageHeight ( )
virtualinherited
unsigned long oofRepMacGUIPreviewPP::calcPageWidth ( )
virtualinherited

Implements oofRepEnvironment.

Definition at line 230 of file oofRepPreviewPP.cpp.

bool oofRepEnvironment::canDraw ( )
virtualinherited

Reimplemented in oofRepStreamEnv.

Definition at line 1225 of file oofrep2.cpp.

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

void oofRepEditingEnv::changeAreasToNewLink ( long  matchingRow,
oofRepEditLink matchingLink,
oofRepEditLink newLink 
)
void oofRepMacGUIPreviewPP::changeTextStyle ( oofRepTextStyle S)
virtualinherited
void oofRepMacEnv::drawPageBorder ( long  top,
long  left,
long  bottom,
long  right 
)
virtualinherited

Reimplemented from oofRepEnvironment.

Definition at line 75 of file oofrepMac.cpp.

void oofRepEditingEnv::drawPageBreak ( )
virtual
void oofRepEnvironment::drawSectionBreak ( )
virtualinherited

Definition at line 1273 of file oofrep2.cpp.

References oofRepEnvironment::drawPageBreak().

Referenced by oofRepSection::drawSection().

oofRepEditor * oofRepEditingEnv::editor ( ) const
inline
void oofRepEditingEnv::endEnvironment ( )
virtual

we don't delete mAreas here but leave it active now that we've finished drawing the report it maps - the user is using the preview window to possibly interact with the report, mapped through mAreas to oofRepEditLink's.

Reimplemented from oofRepMacGUIPreviewPP.

Definition at line 108 of file oofrepedit.cpp.

References oofRepMacGUIPreviewPP::endEnvironment(), and mLastAreaOnPrevPage.

void oofRepMacGUIPreviewPP::finishConstruction ( dbRepPICTs PICTs,
THPrint  pageSetup = nil 
)
inherited

Definition at line 28 of file oofRepPreviewPP.cpp.

References oofRepMacEnv::pageSetup().

Referenced by oofRepWindow::CreatePreviewContent().

unsigned short oofRepMacGUIPreviewPP::heightOfTextStyle ( oofRepTextStyle theStyle)
virtualinherited
bool oofRepEnvironment::isPrintingEnvironment ( ) const
virtualinherited
virtual void oofRepEnvironment::makeRender ( )
inlinevirtualinherited

Definition at line 420 of file oofrep.h.

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

void oofRepEditingEnv::makeRenderDispatch ( oofRepDrawable drawable) const
virtual

Reimplemented from oofRepMacEnv.

Definition at line 176 of file oofrepedit.cpp.

References oofRepDrawable::makeRender().

void oofRepEditingEnv::makeRenderDispatch ( oofAdorner drawable) const
virtual

Reimplemented from oofRepMacEnv.

Definition at line 183 of file oofrepedit.cpp.

References oofAdorner::makeRender().

void oofRepEditingEnv::pageAdoptsEditLink ( oofRepEditLink inLink)
inline

add edit link entry to page, which implies adoption of link if 1st time added to a page

Definition at line 439 of file oofrepeditx.h.

Referenced by oofRepLayoutRedirectingRender::draw(), resumeBandOverPage(), and oofRepViewRedirectingRender::startTableBody().

THPrint oofRepMacEnv::pageSetup ( ) const
inlineinherited
void oofRepMacEnv::pageSetup ( THPrint  inPageSetup)
inherited

Definition at line 62 of file oofrepMac.cpp.

References oofRepMacEnv::mPrintRecordH.

void oofRepMacGUIPreviewPP::parentCommander ( LCommander inCommander)
inlineinherited

Definition at line 76 of file oofRepPreviewPP.h.

Referenced by oofRepWindow::CreatePreviewContent().

LCommander * oofRepMacGUIPreviewPP::parentCommander ( ) const
inlineinherited

Definition at line 83 of file oofRepPreviewPP.h.

oofRepEditingEnv::parentGUIenvT * oofRepEditingEnv::parentGUIenv ( ) const
inline
bool oofRepEnvironment::preprocessesPageHeadersAndFooters ( ) const
virtualinherited
unsigned long oofRepMacGUIPreviewPP::previewPageOrdinal ( ) const
inherited

returns ordinal number, NOT the printable page number which may reset

Definition at line 237 of file oofRepPreviewPP.cpp.

References dbTable::recordNumber().

Referenced by oofRepWindow::ReflowReport(), and singleClick().

Point oofRepMacGUIPreviewPP::printableOffset ( )
inlineinherited

Definition at line 69 of file oofRepPreviewPP.h.

Referenced by oofRepWindow::PrintAsPreviewed().

oofRepRenderT oofRepMacEnv::renderType ( ) const
virtualinherited

Implements oofRepEnvironment.

Definition at line 55 of file oofrepMac.cpp.

References oofRepMacEnv::eRenderType.

void oofRepEditingEnv::resumeBandOverPage ( )
virtual

Reimplemented from oofRepEnvironment.

Definition at line 214 of file oofrepedit.cpp.

References OOF_InteractionArea::mEditLink, mLastAreaOnPrevPage, and pageAdoptsEditLink().

void oofRepEditingEnv::singleClick ( short  x,
short  y 
)
virtual
void oofRepEditingEnv::splitBandOverPage ( )
virtual

Save a copy of the interaction area that we can use to create a new one at the top of the next page.

Reimplemented from oofRepEnvironment.

Definition at line 203 of file oofrepedit.cpp.

References OOF_InteractionPageAreas::lastAreaAdded(), OOF_InteractionPages::latestPage(), mInteractionPages, and mLastAreaOnPrevPage.

void oofRepEditingEnv::startEnvironment ( )
virtual
void oofRepEditingEnv::startMonitoringWindowInteractions ( LPane inPane)
virtual

The default interactor will be used by most users but it is possible that in future they will have report objects that create their own interactors.

Here we create a listener that will pass simple clicks to the interactor so WARNING we are implicitly limiting even user overridden interactors.

So, if you are using fancier interactors you will need to override startMonitoringWindowInteractions as well.

In your override, create an LMouseTracker (see LMouseTracker.cp) if you want to respond to mouse movement within the pane. You will probably also need to subclass CHandlePicture to override its MouseWithin method. Alternatively copy LMouseTracker and have it despatch to some other method.

Definition at line 77 of file oofrepeditMac.cpp.

Referenced by oofRepWindow::CreatePreviewContent().

void oofRepEditingEnv::startNonEditableArea ( )
void oofRepEnvironment::startSection ( )
virtualinherited

Reimplemented in oofRepXMLEnv, and oofRepRTFEnv.

Definition at line 1253 of file oofrep2.cpp.

Referenced by oofRepSection::drawSection().

Member Data Documentation

oofRepEditor* oofRepEditingEnv::mEditor
protected

Definition at line 415 of file oofrepeditx.h.

OOF_InteractionPages* oofRepEditingEnv::mInteractionPages
protected
OOF_InteractionArea* oofRepEditingEnv::mLastAreaOnPrevPage
protected
THPrint oofRepMacEnv::mPrintRecordH
protectedinherited
GrafPtr oofRepMacEnv::mSavedPort
protectedinherited

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