27 #ifndef __TableTypes__ 28 #define __TableTypes__ 32 #include "IPMStream.h" 34 #include "ParcelKey.h" 40 inline void UNUSED(
const volatile T&) {}
55 typedef int32 GridCoord;
59 enum ECellEdge {eLeft, eRight, eTop, eBottom};
61 enum ERowColumn { eRow, eColumn };
65 enum ERelativePosition { eBefore, eAfter };
80 enum ESelectionSides {
91 enum ERowStartAtValue {
96 eStartNextOddPage = 5,
97 eStartNextEvenPage = 6
100 enum EHeaderFootersBreakValues {
101 eStartEachTextColumn = 0,
102 eStartEachTextFrame = 1,
106 enum EStrokeDrawingOrder {
110 eInDesign2Compatibility = 3
113 enum EDirection {eLTR, eRTL};
115 inline ESelectionSides operator|(ESelectionSides first, ESelectionSides second)
117 ASSERT(first >= eNoSides && first <= eAllSides);
118 ASSERT(second >= eNoSides && second <= eAllSides);
120 ESelectionSides result = (ESelectionSides)((uint32)first | (uint32)second);
122 ASSERT(result >= eNoSides && result <= eAllSides);
135 extern const GridID kInvalidGridID;
137 extern const GridCoord kBadCoord;
138 extern const GridArea kZeroGridArea;
140 extern const CellType kNoContentType;
194 void Set(GridCoord inRow, GridCoord inCol) {
row = inRow;
col = inCol;}
310 explicit GridID(uint32
id = 0) : fGridID(id) {}
314 operator uint32()
const {
return fGridID;}
867 bool16 operator ==(
const CellParcelAddr& rhs)
const {
return cellAddr == rhs.cellAddr && parcelKey == rhs.parcelKey; }
868 bool16 operator !=(
const CellParcelAddr& rhs)
const {
return !(*
this == rhs); }
879 bottomRow(kBadCoord),
903 bottomRow(tl.row + span.height),
904 rightCol(tl.col + span.width)
911 bottomRow(rows.End()),
916 inline void GridArea::Set(GridCoord t, GridCoord l, GridCoord b, GridCoord r)
937 #endif // __TableTypes__