Table Cell Descriptors (TC)

The TC is a substructure of the TAP.

b10

b16

field

type

size

bitfield

comments

0

0

rgf

short

0

0

fFirstMerged

short

:1

0001

set to 1 when cell is first cell of a range of cells that have been merged. When a cell is merged, the display areas of the merged cells are consolidated and the text within the cells is interpreted as belonging to one text stream for purposes of calculating line breaks.

fMerged

short

:1

0002

set to 1 when cell has been merged with preceding cell.

fVertical

short

:1

0004

set to 1 when cell has vertical text flow

fBackward

short

:1

0008

for a vertical table cell, text flow is bottom to top when 1 and is bottom to top when 0.

fRotateFont

short

:1

0010

set to 1 when cell has rotated characters (i.e. uses @font)

fVertMerge

short

:1

0020

set to 1 when cell is vertically merged with the cell(s) above and/or below. When cells are vertically merged, the display area of the merged cells are consolidated. The consolidated area is used to display the contents of the first vertically merged cell (the cell with fVertRestart set to 1), and all other vertically merged cells (those with fVertRestart set to 0) must be empty. Cells can only be merged vertically if their left and right boundaries are (nearly) identical (i.e. if corresponding entries in rgdxaCenter of the table rows differ by at most 3).

fVertRestart

short

:1

0040

set to 1 when the cell is the first of a set of vertically merged cells. The contents of a cell with fVertStart set to 1 are displayed in the consolidated area belonging to the entire set of vertically merged cells. Vertically merged cells with fVertRestart set to 0 must be empty.

vertAlign

short

:2

0180

specifies the alignment of the cell contents relative to text flow (e.g. in a cell with bottom to top text flow and bottom vertical alignment, the text is shifted horizontally to match the cell's right boundary):
0 top
1 center
2 bottom

fUnused

short

:7

FE00

reserved

2

2

wUnused

uns short

reserved

4

4

rgbrc

BRC[cbrcTc]

notational convenience for referring to brcTop, brcLeft, etc. fields.

4

4

brcTop

BRC

specification of the top border of a table cell

8

8

brcLeft

BRC

specification of left border of table row

12

12

brcBottom

BRC

specification of bottom border of table row

16

16

brcRight

BRC

specification of right border of table row.


cbTC (count of bytes of TC) is 20(decimal), 14(hex).