OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
oofBorderAdorner Class Reference

Base for adorners specifying borders for grids. More...

#include <oofadorn.h>

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

Public Types

enum  AdornerCellCode { startStop, startContinue, continueStop, continueContinue }
 
enum  AdornerContextCode { drawBefore, drawAfter, drawDuring }
 
enum  BorderCode {
  oneThin, twoThin, threeThin, oneThinOneThick,
  oneThickoneThin, oneThinOneThickOneThin
}
 

Public Member Functions

BorderCode borderType () const
 
void borderType (BorderCode inType)
 
void bottomStyle (oofBorderAdorner::BorderCode inBorderType)
 
oofBorderAdorner::BorderCode bottomStyle ()
 
virtual oofAdornerclone () const
 
virtual void draw (oofRepDrawable *drawable, unsigned long height, unsigned long width)
 
virtual void drawcell (int x, int y, OOF_mixColumnarBand *drawable, unsigned long height, unsigned long width, AdornerCellCode overrunCode=startStop)
 
AdornerContextCode drawWhen ()
 
void leftStyle (oofBorderAdorner::BorderCode inBorderType)
 
oofBorderAdorner::BorderCode leftStyle ()
 
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 &)
 
 oofBorderAdorner (BorderCode borderType, oofAdorner::AdornerContextCode whenCode=oofAdorner::drawBefore)
 
 oofBorderAdorner (const oofBorderAdorner &rhs)
 
void rightStyle (oofBorderAdorner::BorderCode inBorderType)
 
oofBorderAdorner::BorderCode rightStyle ()
 
virtual oofString serialize () const
 
virtual oofString signature () const
 
void topStyle (oofBorderAdorner::BorderCode inBorderType)
 
oofBorderAdorner::BorderCode topStyle ()
 
virtual ~oofBorderAdorner ()
 

Static Public Member Functions

static oofSerializablemakeAdorner (const oofString &)
 
static oofString makeSerializableElement (oofSerializable *, const char *tag, oofIDfactory *idFactory, bool writeID=false, const char *otherAttributes=0)
 
static void registerSerializable ()
 

Protected Attributes

oofAdornerRendermRender
 
enum AdornerContextCode mWhenCode
 

Detailed Description

Base for adorners specifying borders for grids.

In future would be used with other resizable bands.

See also
oofRepViewBand

Definition at line 140 of file oofadorn.h.

Constructor & Destructor Documentation

oofBorderAdorner::oofBorderAdorner ( BorderCode  borderType,
oofAdorner::AdornerContextCode  whenCode = oofAdorner::drawBefore 
)

Definition at line 225 of file oofadorn.cpp.

References oofAdorner::mWhenCode.

Referenced by clone(), and makeAdorner().

oofBorderAdorner::oofBorderAdorner ( const oofBorderAdorner rhs)

Definition at line 235 of file oofadorn.cpp.

References oofAdorner::mWhenCode.

virtual oofBorderAdorner::~oofBorderAdorner ( )
inlinevirtual

Definition at line 147 of file oofadorn.h.

Member Function Documentation

BorderCode oofBorderAdorner::borderType ( ) const
inline

Definition at line 150 of file oofadorn.h.

void oofBorderAdorner::borderType ( BorderCode  inType)
inline

Definition at line 151 of file oofadorn.h.

void oofBorderAdorner::bottomStyle ( oofBorderAdorner::BorderCode  inBorderType)
inline

Definition at line 163 of file oofadorn.h.

oofBorderAdorner::BorderCode oofBorderAdorner::bottomStyle ( )
inline

Definition at line 164 of file oofadorn.h.

oofAdorner * oofBorderAdorner::clone ( ) const
virtual

Implements oofAdorner.

Definition at line 248 of file oofadorn.cpp.

References oofBorderAdorner().

void oofAdorner::draw ( oofRepDrawable drawable,
unsigned long  height,
unsigned long  width 
)
virtualinherited

Definition at line 147 of file oofadorn.cpp.

References oofAdornerRender::draw(), and oofAdorner::mRender.

Referenced by oofRepDrawable::draw().

void oofAdorner::drawcell ( int  x,
int  y,
OOF_mixColumnarBand drawable,
unsigned long  height,
unsigned long  width,
AdornerCellCode  overrunCode = startStop 
)
virtualinherited
AdornerContextCode oofAdorner::drawWhen ( )
inlineinherited
void oofBorderAdorner::leftStyle ( oofBorderAdorner::BorderCode  inBorderType)
inline

Definition at line 154 of file oofadorn.h.

oofBorderAdorner::BorderCode oofBorderAdorner::leftStyle ( )
inline

Definition at line 155 of file oofadorn.h.

oofSerializable * oofBorderAdorner::makeAdorner ( const oofString inData)
static
void oofBorderAdorner::makeRender ( const oofRepMacEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 106 of file oofadCon.cpp.

void oofBorderAdorner::makeRender ( const oofRepWinEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 30 of file oofadCon.cpp.

void oofBorderAdorner::makeRender ( const oofRepTextEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 30 of file oofadTxt.cpp.

void oofBorderAdorner::makeRender ( const oofRepRTFEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 31 of file oofadRTF.cpp.

void oofBorderAdorner::makeRender ( const oofRepHTMLEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 30 of file oofadHTM.cpp.

void oofBorderAdorner::makeRender ( const oofRepCSVEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 21 of file oofadCSV.cpp.

References oofAdorner::mRender.

void oofBorderAdorner::makeRender ( const oofRepTSVEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 31 of file oofadTSV.cpp.

void oofBorderAdorner::makeRender ( const oofRepXMLEnv )
virtual

Reimplemented from oofAdorner.

Definition at line 31 of file oofadXML.cpp.

oofString oofSerializable::makeSerializableElement ( oofSerializable inSer,
const char *  tag,
oofIDfactory idFactory,
bool  writeID = false,
const char *  otherAttributes = 0 
)
staticinherited
void oofBorderAdorner::registerSerializable ( )
static
void oofBorderAdorner::rightStyle ( oofBorderAdorner::BorderCode  inBorderType)
inline

Definition at line 157 of file oofadorn.h.

oofBorderAdorner::BorderCode oofBorderAdorner::rightStyle ( )
inline

Definition at line 158 of file oofadorn.h.

oofString oofBorderAdorner::serialize ( ) const
virtual

Reimplemented from oofSerializable.

Definition at line 284 of file oofadorn.cpp.

References kBorderAdorner_serializationMask, and oofAdorner::mWhenCode.

oofString oofBorderAdorner::signature ( ) const
virtual

Implements oofSerializable.

Definition at line 255 of file oofadorn.cpp.

void oofBorderAdorner::topStyle ( oofBorderAdorner::BorderCode  inBorderType)
inline

Definition at line 160 of file oofadorn.h.

oofBorderAdorner::BorderCode oofBorderAdorner::topStyle ( )
inline

Definition at line 161 of file oofadorn.h.

Member Data Documentation

oofAdornerRender* oofAdorner::mRender
protectedinherited
enum AdornerContextCode oofAdorner::mWhenCode
protectedinherited

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