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

Convenient mixin if your band is rendered in columns with custom drawing. More...

#include <oofrep.h>

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

Public Member Functions

virtual oofRepDrawabledrawableContainingColumns ()=0
 
 OOF_mixColumnarBand ()
 
 OOF_mixColumnarBand (const OOF_mixColumnarBand &)
 
virtual ~OOF_mixColumnarBand ()
 
customDrawer control
oofRepCustomViewDrawercustomDrawer (unsigned short col)
 
void customDrawer (unsigned short col, oofRepCustomViewDrawer *adoptedDrawer)
 
bool hasCustomViewDrawers () const
 
fieldEditing control
bool fieldIsNonEditable (unsigned short col) const
 
void setFieldNonEditable (unsigned short col)
 
methods for the adorners to use to detect the edges of the tables
virtual int numCols () const =0
 
virtual bool lastRow (unsigned long row)=0
 
virtual bool lastCol (unsigned long col)=0
 

Protected Attributes

OOF_Dictionary mCustomDrawers
 
bool * mNonEditableFields
 owned More...
 

Detailed Description

Convenient mixin if your band is rendered in columns with custom drawing.

Warning
if you mix this in, implement asColumnarBand() and numCols().

Definition at line 980 of file oofrep.h.

Constructor & Destructor Documentation

OOF_mixColumnarBand::OOF_mixColumnarBand ( )

Definition at line 149 of file oofrep2.cpp.

OOF_mixColumnarBand::~OOF_mixColumnarBand ( )
virtual

Definition at line 154 of file oofrep2.cpp.

References mNonEditableFields.

OOF_mixColumnarBand::OOF_mixColumnarBand ( const OOF_mixColumnarBand rhs)

Definition at line 160 of file oofrep2.cpp.

References mNonEditableFields, and numCols().

Member Function Documentation

oofRepCustomViewDrawer * OOF_mixColumnarBand::customDrawer ( unsigned short  col)
void OOF_mixColumnarBand::customDrawer ( unsigned short  col,
oofRepCustomViewDrawer adoptedDrawer 
)

Definition at line 184 of file oofrep2.cpp.

References mCustomDrawers.

virtual oofRepDrawable* OOF_mixColumnarBand::drawableContainingColumns ( )
pure virtual

Implemented in oofRepViewBand.

Referenced by oofAdornerRender::drawcell().

bool OOF_mixColumnarBand::fieldIsNonEditable ( unsigned short  col) const
inline

Definition at line 2158 of file oofrep.h.

References mNonEditableFields.

Referenced by oofRepViewEditLink::getCellText().

bool OOF_mixColumnarBand::hasCustomViewDrawers ( ) const
inline

Definition at line 2151 of file oofrep.h.

References OOF_Dictionary::count(), and mCustomDrawers.

Referenced by oofRepViewEditLink::hasCustomViewDrawers().

virtual bool OOF_mixColumnarBand::lastCol ( unsigned long  col)
pure virtual
virtual bool OOF_mixColumnarBand::lastRow ( unsigned long  row)
pure virtual
virtual int OOF_mixColumnarBand::numCols ( ) const
pure virtual

Implemented in oofRepViewBand.

Referenced by OOF_mixColumnarBand(), and setFieldNonEditable().

void OOF_mixColumnarBand::setFieldNonEditable ( unsigned short  col)

Definition at line 191 of file oofrep2.cpp.

References mNonEditableFields, and numCols().

Referenced by OOF_repEditSetupVisitor::VisitIterableBandBody().

Member Data Documentation

OOF_Dictionary OOF_mixColumnarBand::mCustomDrawers
protected

Definition at line 1012 of file oofrep.h.

Referenced by customDrawer(), and hasCustomViewDrawers().

bool* OOF_mixColumnarBand::mNonEditableFields
protected

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