2.1.473 Part 4 Section 2.15.3.41, shapeLayoutLikeWW8 (Emulate Word 97 Text Wrapping Around Floating Objects)

a.   The standard does not state exactly how to emulate Word 97 text wrapping around floating objects.

In Office, this element specifies that Word will ignore the line wrapping setting specified by a floating object, instead allowing text to be displayed beneath it under the specific set of conditions identified as follows.

Typically, text wrapping around a floating object is dictated by the presence of one of the following as a child element of the object’s anchor element (“[ECMA-376] Part 4 §5.5.2.3; anchor (Anchor for Floating DrawingML Object)”):

wrapNone element (“[ECMA-376] Part 4 §5.5.2.15; wrapNone (No Text Wrapping)”), which specifies no text wrapping

wrapSquare element (“[ECMA-376] Part 4 §5.5.2.17; wrapSquare (Square Wrapping)”), which specifies square text wrapping

wrapThrough element (“[ECMA-376] Part 4 §5.5.2.18; wrapThrough (Through Wrapping)”), which specifies through text wrapping

wrapTight element (“[ECMA-376] Part 4 §5.5.2.19; wrapTight (Tight Wrapping)”), which specifies tight text wrapping

wrapTopAndBottom element (“[ECMA-376] Part 4 §5.5.2.20; wrapTopAndBottom (Top and Bottom Wrapping)”), which specifies top and bottom text wrapping

This element, when present with a val attribute value of true (or equivalent), specifies that Word will allow text to wrap beneath a floating object, ignoring the object’s true wrapping setting, when the following conditions are met:

The floating object has any of the following elements present as a child of the object’s anchor element: wrapSquare, wrapTight, or wrapTopAndBottom.

The floating object has a positionV element (“[ECMA-376] Part 4 §5.5.2.11; positionV (Vertical Positioning)”) with a relativeFrom attribute value of line.

The floating object has a negative value for the child posOffset element (“[ECMA-376] Part 4 §5.5.2.12; posOffset (Absolute Position Offset)”) of the positionV element.

The paragraph containing the anchor element would appear directly after the previous paragraph if the wrapping settings were ignored.

The paragraph containing the anchor element would be pushed to the next page if the wrapping settings were respected.

[Example: Consider a WordprocessingML document containing a DrawingML object that meets these conditions:

 <w:p>
   <w:r>
     <w:t>Sample text. Sample text. Sample text. Sample text. Sample text. Sample text.</w:t>
   </w:r>
   <w:r>
     <w:drawing>
       <wp:anchor … >
     <wp:positionV relativeFrom="line">
       <wp:posOffset>-428914</wp:posOffset>
     </wp:positionV>
     <wp:wrapTopAndBottom />
         … 
       </wp:anchor>
 </w:drawing>
   </w:r>
   <w:r>
     <w:t> Sample text. Sample text. Sample text. Sample text. Sample text. Sample text.</w:t>
   </w:r>
   …
 </w:p>

When the wrapping settings are respected, the shape and its paragraph do not fit on the page, so they are moved to the next page (the paragraph containing the anchor has been highlighted for illustrative purposes):

Equation

If this compatibility setting is turned on:

 <w:compat>
   <w:shapeLayoutLikeWW8 />
 </w:compat>

Then Word will ignore the wrapping setting and allow text to wrap below the object. This behavior results in the following (again, the paragraph containing the anchor has been highlighted for illustrative purposes):

Equation

end example]

This note applies to the following products: 2007, 2007 SP1, 2007 SP2.

Show: