2.8.5 PlcBteChpx

The PlcBteChpx structure is a PLC that maps the offsets of text in the WordDocument stream to the character properties of that text. Where most PLCs map CPs to data, the PlcBteChpx maps stream offsets to data instead. A PlcBteChpx MUST NOT contain duplicate stream offsets.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

aFC (variable)

...

aPnBteChpx (variable)

...

aFC (variable): An array of unsigned integers. Each element in this array specifies an offset in the WordDocument stream where text begins. The end of each range is the beginning of the next range. As with all PLCs, the elements of aFC MUST be sorted in ascending order.

aPnBteChpx (variable): An array of PnFkpChpx (4 bytes each).  Each element of this array specifies the location in the WordDocument stream of a ChpxFkp. That ChpxFkp contains the character properties for the text at the corresponding offset in aFC.