Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofRepEditingEnv Class Reference
[Report Editing supportMac Specific]

#include <oofrepeditx.h>

Inheritance diagram for oofRepEditingEnv:

Inheritance graph
[legend]
Collaboration diagram for oofRepEditingEnv:

Collaboration graph
[legend]
List of all members.

Detailed Description

Subclass platform preview environment to intercept for editing hooks.


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.

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

void changeAreasToNewLink (long matchingRow, oofRepEditLink *matchingLink, oofRepEditLink *newLink)
void startNonEditableArea ()

Public Types

typedef oofRepMacGUIPreviewPP parentGUIenvT
enum  { eRenderType = 'Mac ' }

Public Member Functions

 oofRepEditingEnv (oofRepEditor *)
virtual ~oofRepEditingEnv ()
virtual void startEnvironment ()
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.

parentGUIenvTparentGUIenv () const
oofRepEditoreditor () const
virtual void makeRenderDispatch (oofRepDrawable *) const
virtual void makeRenderDispatch (oofAdorner *) const
virtual void drawPageBreak ()
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.

virtual void resumeBandOverPage ()
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.

virtual void singleClick (short x, short y)
 interaction in progress

void finishConstruction (dbRepPICTs *PICTs, THPrint pageSetup=nil)
virtual void changeTextStyle (oofRepTextStyle *)
virtual unsigned short heightOfTextStyle (oofRepTextStyle *)
virtual unsigned long calcPageHeight ()
virtual unsigned long calcPageWidth ()
Point printableOffset ()
void parentCommander (LCommander *)
LCommanderparentCommander () const
unsigned long previewPageOrdinal () const
 returns ordinal number, NOT the printable page number which may reset

THPrint pageSetup () const
void pageSetup (THPrint)
virtual oofRepRenderT renderType () const
virtual void drawPageBorder (long top, long left, long bottom, long right)
virtual void drawSectionBreak ()
virtual void startSection ()
virtual bool canDraw ()
virtual bool isPrintingEnvironment () const
virtual void makeRender ()
virtual bool preprocessesPageHeadersAndFooters () const

Protected Attributes

oofRepEditormEditor
OOF_InteractionAreamLastAreaOnPrevPage
OOF_InteractionPagesmInteractionPages
 owned

THPrint mPrintRecordH
GrafPtr mSavedPort


Member Typedef Documentation

typedef oofRepMacGUIPreviewPP oofRepEditingEnv::parentGUIenvT
 


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumeration values:
eRenderType 


Constructor & Destructor Documentation

oofRepEditingEnv::oofRepEditingEnv oofRepEditor  ) 
 

oofRepEditingEnv::~oofRepEditingEnv  )  [virtual]
 


Member Function Documentation

void oofRepEditingEnv::addInteractionArea const OOF_InteractionArea  )  [virtual]
 

void oofRepEditingEnv::addInteractionArea short  inX,
short  inY,
short  inCol,
long  inRow,
oofRepEditLink inEditor,
oofRepInteractorStrategy inInteractor = 0,
short  inWidth = 0,
short  inHeight = 0
[virtual]
 

Add entry used in Flyweight pattern to react to clicks, etc.

unsigned long oofRepMacGUIPreviewPP::calcPageHeight  )  [virtual, inherited]
 

Implements oofRepEnvironment.

unsigned long oofRepMacGUIPreviewPP::calcPageWidth  )  [virtual, inherited]
 

Implements oofRepEnvironment.

bool oofRepEnvironment::canDraw  )  [virtual, inherited]
 

Reimplemented in oofRepStreamEnv.

void oofRepEditingEnv::changeAreasToNewLink long  matchingRow,
oofRepEditLink matchingLink,
oofRepEditLink newLink
 

void oofRepMacGUIPreviewPP::changeTextStyle oofRepTextStyle  )  [virtual, inherited]
 

Implements oofRepEnvironment.

void oofRepMacEnv::drawPageBorder long  top,
long  left,
long  bottom,
long  right
[virtual, inherited]
 

Reimplemented from oofRepEnvironment.

void oofRepEditingEnv::drawPageBreak  )  [virtual]
 

Reimplemented from oofRepMacGUIPreviewPP.

void oofRepEnvironment::drawSectionBreak  )  [virtual, inherited]
 

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.

void oofRepMacGUIPreviewPP::finishConstruction dbRepPICTs PICTs,
THPrint  pageSetup = nil
[inherited]
 

unsigned short oofRepMacGUIPreviewPP::heightOfTextStyle oofRepTextStyle  )  [virtual, inherited]
 

Implements oofRepEnvironment.

bool oofRepEnvironment::isPrintingEnvironment  )  const [virtual, inherited]
 

Reimplemented in oofMacCarbonPrint, oofRepWinPrint, and oofRepMacPrint.

virtual void oofRepEnvironment::makeRender  )  [inline, virtual, inherited]
 

void oofRepEditingEnv::makeRenderDispatch oofAdorner  )  const [virtual]
 

Reimplemented from oofRepMacEnv.

void oofRepEditingEnv::makeRenderDispatch oofRepDrawable  )  const [virtual]
 

Reimplemented from oofRepMacEnv.

void oofRepEditingEnv::pageAdoptsEditLink oofRepEditLink  )  [inline]
 

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

void oofRepMacEnv::pageSetup THPrint   )  [inherited]
 

THPrint oofRepMacEnv::pageSetup  )  const [inline, inherited]
 

LCommander * oofRepMacGUIPreviewPP::parentCommander  )  const [inline, inherited]
 

void oofRepMacGUIPreviewPP::parentCommander LCommander  )  [inline, inherited]
 

oofRepEditingEnv::parentGUIenvT * oofRepEditingEnv::parentGUIenv  )  const [inline]
 

bool oofRepEnvironment::preprocessesPageHeadersAndFooters  )  const [virtual, inherited]
 

Reimplemented in oofRepCSVEnv, oofRepRTFEnv, oofRepTSVEnv, and oofRepXMLEnv.

unsigned long oofRepMacGUIPreviewPP::previewPageOrdinal  )  const [inherited]
 

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

Point oofRepMacGUIPreviewPP::printableOffset  )  [inline, inherited]
 

oofRepRenderT oofRepMacEnv::renderType  )  const [virtual, inherited]
 

Implements oofRepEnvironment.

void oofRepEditingEnv::resumeBandOverPage  )  [virtual]
 

Reimplemented from oofRepEnvironment.

void oofRepEditingEnv::singleClick short  x,
short  y
[virtual]
 

interaction in progress

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.

void oofRepEditingEnv::startEnvironment  )  [virtual]
 

Reimplemented from oofRepMacGUIPreviewPP.

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.

void oofRepEditingEnv::startNonEditableArea  ) 
 

void oofRepEnvironment::startSection  )  [virtual, inherited]
 

Reimplemented in oofRepRTFEnv, and oofRepXMLEnv.


Member Data Documentation

oofRepEditor* oofRepEditingEnv::mEditor [protected]
 

OOF_InteractionPages* oofRepEditingEnv::mInteractionPages [protected]
 

owned

OOF_InteractionArea* oofRepEditingEnv::mLastAreaOnPrevPage [protected]
 

THPrint oofRepMacEnv::mPrintRecordH [protected, inherited]
 

GrafPtr oofRepMacEnv::mSavedPort [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:47:49 2004 for OOFILE by doxygen 1.3.5