#include <oofsize.h>
Inheritance diagram for oofColSizer:


Fixed widths can be specified as points or percentages. Columns left unspecified have widths calculated varying on data type. It tries hard to create a reasonable looking set of widths, to be used in a report or GUI multi-column browser.
Public Types | |
| enum | colAlignT { alignLeft, alignCentre, alignRight, alignJust, alignNatural } |
| enum | { kNotSet = ULONG_MAX } |
Public Member Functions | |
| oofColSizer (unsigned short numCols) | |
| virtual | ~oofColSizer () |
| virtual oofColSizer * | clone (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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Reimplemented in oofViewFieldDefaultsColSizer. |
|
||||||||||||
|
|
|
|
Reimplemented in oofViewFieldDefaultsColSizer. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.5