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

oofRepFieldBlock Class Reference
[OOFILE Report writer]

#include <oofrep.h>

Inheritance diagram for oofRepFieldBlock:

Inheritance graph
[legend]
Collaboration diagram for oofRepFieldBlock:

Collaboration graph
[legend]
List of all members.

Detailed Description

Specify a block to draw field contents with some bracketing text in an oofRepLayoutBand.


Public Types

enum  blockAlignT { alignLeft, alignCentre, alignRight }

Public Member Functions

 oofRepFieldBlock (dbField *, oofRepTextStyle *adoptedStyle=0)
 oofRepFieldBlock (const oofString &leadingText, dbField *, oofRepTextStyle *adoptedStyle=0)
 oofRepFieldBlock (const oofString &leadingText, dbField *, const oofString &trailingText, oofRepTextStyle *adoptedStyle=0)
virtual ~oofRepFieldBlock ()
virtual oofRepBlockclone () const
virtual oofString getCellText (bool *outIsEditable=0, oofString *outLocationName=0, long row=0, short col=0) const
virtual void setCellText (const oofString &, long row=0, short col=0)
virtual oofString text () const
oofString leadingText () const
oofString trailingText () const
virtual unsigned int countCells () const
virtual void makeRender (const oofRepMacEnv &env)
virtual void makeRender (const oofRepWinEnv &env)
virtual void makeRender (const oofRepTextEnv &env)
virtual void makeRender (const oofRepRTFEnv &env)
virtual void makeRender (const oofRepHTMLEnv &env)
virtual void makeRender (const oofRepCSVEnv &env)
virtual void makeRender (const oofRepTSVEnv &env)
virtual void makeRender (const oofRepXMLEnv &env)
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!

virtual oofRepTextStyletextStyle () const
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.

blockAlignT align () const
oofRepBlockalign (blockAlignT)
bool moveDownAfter () const
 Indicate if a layout band should start a new row of blocks.

oofRepBlockmoveDownAfter (bool)
 Set the flag to be returned by moveDownAfter().

virtual unsigned long fixedHeight ()
unsigned long fixedWidth ()
oofRepBlockfixedWidth (unsigned long)
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 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.

oofAdornerListadorners ()
bool hasAdorners () const

Protected Member Functions

virtual oofString MiddleText () const

Protected Attributes

oofString mTrailingText
oofString mText
unsigned long mFixedWidth
blockAlignT mAlignment
bool mMoveDownAfter
oofRepRendermRender
oofString mID
oofRepTextStylemStyle


Member Enumeration Documentation

enum oofRepBlock::blockAlignT [inherited]
 

Enumeration values:
alignLeft 
alignCentre 
alignRight 


Constructor & Destructor Documentation

oofRepFieldBlock::oofRepFieldBlock dbField ,
oofRepTextStyle adoptedStyle = 0
 

oofRepFieldBlock::oofRepFieldBlock const oofString leadingText,
dbField ,
oofRepTextStyle adoptedStyle = 0
 

oofRepFieldBlock::oofRepFieldBlock const oofString leadingText,
dbField ,
const oofString trailingText,
oofRepTextStyle adoptedStyle = 0
 

oofRepFieldBlock::~oofRepFieldBlock  )  [virtual]
 


Member Function Documentation

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

oofRepBlock & oofRepBlock::align blockAlignT   )  [inherited]
 

oofRepBlock::blockAlignT oofRepBlock::align  )  const [inline, inherited]
 

void oofRepDrawable::clearID  )  [inline, inherited]
 

oofRepBlock * oofRepFieldBlock::clone  )  const [virtual]
 

Reimplemented from oofRepTextBlock.

unsigned int oofRepBracketedTextBlock::countCells  )  const [virtual, inherited]
 

Reimplemented from oofRepTextBlock.

void oofRepDrawable::describeLayout  )  [virtual, inherited]
 

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, inherited]
 

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, inherited]
 

null base method occasionally overriden

Reimplemented in oofRepGraphBand.

unsigned long oofRepBlock::fixedHeight  )  [inline, virtual, inherited]
 

Reimplemented from oofRepDrawable.

Reimplemented in oofRepPictBlock.

oofRepBlock & oofRepBlock::fixedWidth unsigned  long  )  [inherited]
 

unsigned long oofRepBlock::fixedWidth  )  [inline, inherited]
 

oofString oofRepFieldBlock::getCellText bool *  outIsEditable = 0,
oofString outLocationName = 0,
long  row = 0,
short  col = 0
const [virtual]
 

Reimplemented from oofRepTextBlock.

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

void oofRepDrawable::ID const oofString  )  [inline, inherited]
 

oofString oofRepDrawable::ID  )  const [inline, inherited]
 

oofString oofRepBracketedTextBlock::leadingText  )  const [inline, inherited]
 

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, inherited]
 

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 oofRepTextBlock::makeRender const oofRepEditingEnv inEnv  )  [virtual, inherited]
 

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

Reimplemented from oofRepDrawable.

void oofRepTextBlock::makeRender const oofRepXMLEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

Reimplemented in oofRepPageNoBlock.

void oofRepTextBlock::makeRender const oofRepTSVEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

void oofRepTextBlock::makeRender const oofRepCSVEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

void oofRepTextBlock::makeRender const oofRepHTMLEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

void oofRepTextBlock::makeRender const oofRepRTFEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

Reimplemented in oofRepPageNoBlock.

void oofRepTextBlock::makeRender const oofRepTextEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

void oofRepTextBlock::makeRender const oofRepWinEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

void oofRepTextBlock::makeRender const oofRepMacEnv env  )  [virtual, inherited]
 

Reimplemented from oofRepDrawable.

oofString oofRepFieldBlock::MiddleText  )  const [protected, virtual]
 

Implements oofRepBracketedTextBlock.

oofRepBlock & oofRepBlock::moveDownAfter bool  b  )  [inherited]
 

Set the flag to be returned by moveDownAfter().

Same effect achieved by ending an oofRepTextBlock with a linefeed.

bool oofRepBlock::moveDownAfter  )  const [inline, inherited]
 

Indicate if a layout band should start a new row of blocks.

Returns:
true when this is the last block in the row.

void oofRepFieldBlock::setCellText const oofString ,
long  row = 0,
short  col = 0
[virtual]
 

Reimplemented from oofRepTextBlock.

oofString oofRepBracketedTextBlock::text  )  const [virtual, inherited]
 

Reimplemented from oofRepTextBlock.

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 * oofRepBlock::textStyle  )  const [virtual, inherited]
 

Returns:
text style of this block or whatever's drawing it. Can cope with no currentLayout as may be called when not drawing.
See also:
OOF_repXMLstyleCleanupVisitor::VisitDrawable

Reimplemented from oofRepTextStylable.

oofString oofRepBracketedTextBlock::trailingText  )  const [inline, inherited]
 

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, inherited]
 

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, inherited]
 

Reimplemented in oofRepPictBlock.


Member Data Documentation

blockAlignT oofRepBlock::mAlignment [protected, inherited]
 

unsigned long oofRepBlock::mFixedWidth [protected, inherited]
 

oofString oofRepDrawable::mID [protected, inherited]
 

bool oofRepBlock::mMoveDownAfter [protected, inherited]
 

oofRepRender* oofRepDrawable::mRender [protected, inherited]
 

oofRepTextStyle* oofRepTextStylable::mStyle [protected, inherited]
 

oofString oofRepTextBlock::mText [protected, inherited]
 

oofString oofRepBracketedTextBlock::mTrailingText [protected, inherited]
 


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