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

oofViewFieldDefaultsColSizer Class Reference
[OOFILE utility classes and functions.]

#include <oofsize.h>

Inheritance diagram for oofViewFieldDefaultsColSizer:

Inheritance graph
[legend]
Collaboration diagram for oofViewFieldDefaultsColSizer:

Collaboration graph
[legend]
List of all members.

Detailed Description

Calculate a set of column widths from field types in a view.

Tries to make an esthetic set based on data types (don't wrap dates or numbers) and the widths assigned to fixed text fields.


Public Types

enum  colAlignT {
  alignLeft, alignCentre, alignRight, alignJust,
  alignNatural
}
enum  { kNotSet = ULONG_MAX }

Public Member Functions

 oofViewFieldDefaultsColSizer (const dbView *)
 oofViewFieldDefaultsColSizer (const oofViewFieldDefaultsColSizer &, const dbView *)
virtual ~oofViewFieldDefaultsColSizer ()
virtual oofColSizerclone (OOF_mixColSizable *newOwner) const
virtual void calculateWidths (unsigned long widthToDivide, unsigned short colSepWidth=0)
unsigned long width (unsigned short colNum)
unsigned long fixedWidth (unsigned short colNum) const
unsigned long fixedPercentage (unsigned short colNum) const
oofColSizer::colAlignT alignment (unsigned short colNum) const
void setFixedWidth (unsigned short colNum, unsigned long)
void setFixedPercentage (unsigned short colNum, unsigned long)
void setAlignment (unsigned short colNum, colAlignT)

Static Public Member Functions

oofColSizer::colAlignT naturalAlignmentForField (OOF_fieldTypes)

Protected Member Functions

virtual void CalculateDefaultWidths (unsigned long widthToDivide, unsigned int numberNotSet)

Protected Attributes

const unsigned short mNumCols
OOF_ExpandableLongArray mColFixedWidths
OOF_ExpandableLongArray mColPercentages
OOF_ExpandableLongArray mColCalcWidths
OOF_ExpandableLongArray mColAlignments
bool mHaveCalculatedWidth


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumeration values:
kNotSet 

enum oofColSizer::colAlignT [inherited]
 

Enumeration values:
alignLeft 
alignCentre 
alignRight 
alignJust 
alignNatural 


Constructor & Destructor Documentation

oofViewFieldDefaultsColSizer::oofViewFieldDefaultsColSizer const dbView  ) 
 

oofViewFieldDefaultsColSizer::oofViewFieldDefaultsColSizer const oofViewFieldDefaultsColSizer ,
const dbView
 

oofViewFieldDefaultsColSizer::~oofViewFieldDefaultsColSizer  )  [virtual]
 


Member Function Documentation

oofColSizer::colAlignT oofColSizer::alignment unsigned short  colNum  )  const [inherited]
 

void oofViewFieldDefaultsColSizer::CalculateDefaultWidths unsigned long  widthToDivide,
unsigned int  numberNotSet
[protected, virtual]
 

Reimplemented from oofColSizer.

void oofColSizer::calculateWidths unsigned long  widthToDivide,
unsigned short  colSepWidth = 0
[virtual, inherited]
 

oofColSizer * oofViewFieldDefaultsColSizer::clone OOF_mixColSizable newOwner  )  const [virtual]
 

Reimplemented from oofColSizer.

unsigned long oofColSizer::fixedPercentage unsigned short  colNum  )  const [inherited]
 

unsigned long oofColSizer::fixedWidth unsigned short  colNum  )  const [inherited]
 

oofColSizer::colAlignT oofColSizer::naturalAlignmentForField OOF_fieldTypes   )  [static, inherited]
 

void oofColSizer::setAlignment unsigned short  colNum,
colAlignT 
[inherited]
 

void oofColSizer::setFixedPercentage unsigned short  colNum,
unsigned  long
[inherited]
 

void oofColSizer::setFixedWidth unsigned short  colNum,
unsigned  long
[inherited]
 

unsigned long oofColSizer::width unsigned short  colNum  )  [inherited]
 


Member Data Documentation

OOF_ExpandableLongArray oofColSizer::mColAlignments [protected, inherited]
 

OOF_ExpandableLongArray oofColSizer::mColCalcWidths [protected, inherited]
 

OOF_ExpandableLongArray oofColSizer::mColFixedWidths [protected, inherited]
 

OOF_ExpandableLongArray oofColSizer::mColPercentages [protected, inherited]
 

bool oofColSizer::mHaveCalculatedWidth [protected, inherited]
 

const unsigned short oofColSizer::mNumCols [protected, inherited]
 


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