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 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 |