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

oofRepDrawable Class Reference

#include <oofrep.h>

Inheritance diagram for oofRepDrawable:

Inheritance graph
[legend]
Collaboration diagram for oofRepDrawable:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract base for anything drawn on report.

Reponsible for redirecting to actual render object. When you add a new oofRepEnvironment you will need to add a makeRender method here


multi-method dispatch to factories for rendering report objects.

one for each environment

Note:
don't use pure virtuals as some subclasses may not implement


virtual void makeRender (const oofRepMacEnv &)
virtual void makeRender (const oofRepWinEnv &)
virtual void makeRender (const oofRepTextEnv &)
virtual void makeRender (const oofRepRTFEnv &)
virtual void makeRender (const oofRepHTMLEnv &)
virtual void makeRender (const oofRepCSVEnv &)
virtual void makeRender (const oofRepTSVEnv &)
virtual void makeRender (const oofRepXMLEnv &)
virtual void makeRender (const oofRepEditingEnv &)
 Just make a renderer for the GUI environment as if not editing because by default most drawables are not editable!


Public Member Functions

 oofRepDrawable (oofRepTextStyle *adoptedStyle=0)
 oofRepDrawable (const oofRepDrawable &rhs)
virtual ~oofRepDrawable ()
virtual void finishConstruction ()
 null base method occasionally overriden

virtual void draw ()
 central default call for drawing, but still able to be overriden in extreme cases.

virtual void describeLayout ()
 central default call like draw() but still able to be overriden in extreme cases.

virtual dbViewview (unsigned short whichView=0) const
 Request a dbView which may be the source of data for the item.

virtual unsigned long fixedHeight ()
virtual unsigned long width ()
virtual oofRepEditLinkmakeEditLink (const oofRepEditingEnv &)
 Make an editor for this drawable - by default return a null link.

oofString ID () const
void ID (const oofString &)
void clearID ()
oofRepTextStylelocalTextStyle () const
 Get style owned by this object.

oofRepTextStyleuniqueTextStyle ()
 Get a style unique to this object, cloning the one we'd normally use if necessary.

void textStyle (oofRepTextStyle *adoptedStyle)
 Set style owned by this object.

void textStyle (const char *fontName, unsigned short fontSize, unsigned char styleNum=0, short leading=0, oofColor color=oofColor::Black)
 Set style owned by this object, creating from the font parameters.

virtual oofRepTextStyletextStyle () const
 Get the text style owned by this object or a default.

oofAdornerListadorners ()
bool hasAdorners () const

Protected Attributes

oofRepRendermRender
oofString mID
oofRepTextStylemStyle


Constructor & Destructor Documentation

oofRepDrawable::oofRepDrawable oofRepTextStyle adoptedStyle = 0  ) 
 

oofRepDrawable::oofRepDrawable const oofRepDrawable rhs  ) 
 

oofRepDrawable::~oofRepDrawable  )  [virtual]
 


Member Function Documentation

oofAdornerList & OOF_mixAdornable::adorners  )  [inline, inherited]
 

void oofRepDrawable::clearID  )  [inline]
 

void oofRepDrawable::describeLayout  )  [virtual]
 

central default call like draw() but still able to be overriden in extreme cases.

Provides a second virtual function for renderers used by backends such as XML which have distinct drawing time and declarative time operations

void oofRepDrawable::draw  )  [virtual]
 

central default call for drawing, but still able to be overriden in extreme cases.

Now that all is factored out to the render objects (Strategy pattern) we shouldn't need to do anything.regarding actual output

Reimplemented in oofRepGraphBand, oofRepLayoutBand, and oofRepViewBand.

void oofRepDrawable::finishConstruction  )  [virtual]
 

null base method occasionally overriden

Reimplemented in oofRepGraphBand.

unsigned long oofRepDrawable::fixedHeight  )  [virtual]
 

Reimplemented in oofRepBand, oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepBlock, oofRepPictBlock, oofRepPictBand, and oofRepFreeImageBand.

bool OOF_mixAdornable::hasAdorners  )  const [inline, inherited]
 

void oofRepDrawable::ID const oofString  )  [inline]
 

oofString oofRepDrawable::ID  )  const [inline]
 

oofRepTextStyle * oofRepTextStylable::localTextStyle  )  const [inline, inherited]
 

Get style owned by this object.

Returns:
may be null indicating use container's style.

oofRepEditLink * oofRepDrawable::makeEditLink const oofRepEditingEnv inEnv  )  [virtual]
 

Make an editor for this drawable - by default return a null link.

Note that this is separated from the making of render wrappers as editing may have its own complexities - a given drawable may therefore provide a subclassed edit link but use standard wrapping.

Reimplemented in oofRepViewBand.

void oofRepDrawable::makeRender const oofRepEditingEnv inEnv  )  [virtual]
 

Just make a renderer for the GUI environment as if not editing because by default most drawables are not editable!

Reimplemented in oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, and oofRepPictBlock.

void oofRepDrawable::makeRender const oofRepXMLEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, oofRepPageNoBlock, and oofRepPictBand.

void oofRepDrawable::makeRender const oofRepTSVEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, and oofRepPictBand.

void oofRepDrawable::makeRender const oofRepCSVEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, and oofRepPictBand.

void oofRepDrawable::makeRender const oofRepHTMLEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, and oofRepPictBand.

void oofRepDrawable::makeRender const oofRepRTFEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, oofRepPageNoBlock, oofRepPictBand, and oofRepFreeImageBand.

void oofRepDrawable::makeRender const oofRepTextEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, and oofRepPictBand.

void oofRepDrawable::makeRender const oofRepWinEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, oofRepPictBand, and oofRepFreeImageBand.

void oofRepDrawable::makeRender const oofRepMacEnv  )  [virtual]
 

Reimplemented in oofRepSpaceBand, oofRepGraphBand, oofRepLineBand, oofRepLayoutBand, oofRepViewBand, oofRepTextBlock, oofRepPictBlock, and oofRepPictBand.

oofRepTextStyle * oofRepTextStylable::textStyle  )  const [virtual, inherited]
 

Get the text style owned by this object or a default.

Returns:
never null, may be from default in report settings.

Reimplemented in oofRepBlock.

void oofRepTextStylable::textStyle const char *  fontName,
unsigned short  fontSize,
unsigned char  styleNum = 0,
short  leading = 0,
oofColor  color = oofColor::Black
[inherited]
 

Set style owned by this object, creating from the font parameters.

void oofRepTextStylable::textStyle oofRepTextStyle adoptedStyle  )  [inherited]
 

Set style owned by this object.

oofRepTextStyle * oofRepTextStylable::uniqueTextStyle  )  [inherited]
 

Get a style unique to this object, cloning the one we'd normally use if necessary.

Return values:
Always returns a style.

dbView * oofRepDrawable::view unsigned short  whichView = 0  )  const [virtual]
 

Request a dbView which may be the source of data for the item.

Parameters:
whichView is zero-based index of views. eg: oofRepGraphBand has more than one view for some graph types.
Returns:
null by default if no band matching index

Reimplemented in oofRepGraphBand, and oofRepViewBand.

unsigned long oofRepDrawable::width  )  [virtual]
 

Reimplemented in oofRepPictBlock.


Member Data Documentation

oofString oofRepDrawable::mID [protected]
 

oofRepRender* oofRepDrawable::mRender [protected]
 

oofRepTextStyle* oofRepTextStylable::mStyle [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 01:11:03 2004 for OOFILE by doxygen 1.3.5