2.9.253 Spa

The Spa structure specifies information about the shapes and drawings that the document contains.


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

lid

rca (16 bytes)

...

...

A

bx

by

wr

wrk

B

C

D

cTxbx

...

lid (4 bytes):  An integer that specifies the identifier of a shape that is contained in the OfficeArtDggContainer structure. This value corresponds to the spid field of an OfficeArtFSP structure that specifies the data for this shape. OfficeArtDggContainer and OfficeArtFSP are specified in [MS-ODRAW] sections 2.2.12 and 2.2.40, respectively.

rca (16 bytes):  An Rca structure that specifies the rectangle where the drawing exists. The coordinates of rca are in twips.

A - fHdr (1 bit):  This bit is undefined and MUST be ignored.

bx (2 bits):  An unsigned integer that specifies the horizontal position of the origin that is used to calculate the rca. This MUST be one of the following values.

Value

Meaning

0

Anchored at the leading margin of the page.

1

Anchored at the leading edge of the page.

2

Anchored at the leading edge of the column.

by (2 bits):  An unsigned integer that specifies the vertical position of the origin that is used to calculate the rca. This MUST be one of the following values.

Value

Meaning

0

Anchored at the top margin of the page.

1

Anchored at the top edge of the page.

2

Anchored at the top edge of the paragraph.

wr (4 bits):  An unsigned integer that specifies the style of text wrapping around this shape. This MUST be one of the following values.

Value

Meaning

0

Wrap text around the object.

1

No text wrapping around the object. No text appears on either side of the shape (top and bottom wrapping).

2

Wrap text around an absolutely positioned object (square wrapping).

3

Display as if the shape is not there. The shape appears either in front of or behind the text, based on fBelowText.

4

Wrap text tightly around this shape, following its contour only on the left and right sides (tight wrapping).

5

Wrap text tightly around this shape, following its contour on all sides (through wrapping).

wrk (4 bits):  An unsigned integer that specifies the details of the text wrapping around this shape. This field MUST be ignored when wr is 1 or 3. This MUST be one of the following values.

Value

Meaning

0

Allow text wrapping on both sides of the shape.

1

Allow text wrapping only on the left side of the shape.

2

Allow text wrapping only on the right side of the shape.

3

Allow text wrapping only on the largest side of the shape.

B - fRcaSimple (1 bit): MUST be zero.

C - fBelowText (1 bit):  An unsigned integer that specifies whether this shape is behind the text. A value of 1 specifies that the shape appears behind the paragraph. A value of 0 specifies that the shape appears in front of the text and obscures it. If wr is not 3, this field MUST be ignored.

D - fAnchorLock (1 bit):  An unsigned integer that specifies whether the anchor of the shape is locked to its current paragraph.

cTxbx (4 bytes):  This value is undefined and MUST be ignored.