shapetype.setVmlId( "_x0000_t202");
shapetype.setHralign(org.docx4j.vml.officedrawing.STHrAlign.LEFT);
shapetype.setPath( "m,l,21600r21600,l21600,xe");
// Create object for shape (wrapped in JAXBElement)
CTShape shape = vmlObjectFactory.createCTShape();
JAXBElement<org.docx4j.vml.CTShape> shapeWrapped = vmlObjectFactory.createShape(shape);
pict.getAnyAndAny().add( shapeWrapped);
shape.setStyle( style);
shape.setSpid( "_x0000_s1026");
shape.setInsetmode(org.docx4j.vml.officedrawing.STInsetMode.CUSTOM);
shape.setConnectortype(org.docx4j.vml.officedrawing.STConnectorType.STRAIGHT);
// Create object for textbox (wrapped in JAXBElement)
CTTextbox textbox = vmlObjectFactory.createCTTextbox();
JAXBElement<org.docx4j.vml.CTTextbox> textboxWrapped = vmlObjectFactory.createTextbox(textbox);
shape.getPathOrFormulasOrHandles().add( textboxWrapped);
textbox.setStyle( "mso-fit-shape-to-text:t");
textbox.setInsetmode(org.docx4j.vml.officedrawing.STInsetMode.CUSTOM);
// Create object for txbxContent
CTTxbxContent txbxcontent = wmlObjectFactory.createCTTxbxContent();
textbox.setTxbxContent(txbxcontent);
txbxcontent.getContent().add( textboxContent);
if (w10WrapEl) {
// Add <w10:wrap type="square"/>
// org.docx4j.vml.wordprocessingDrawing.CTWrap w10CTWrap = w10ObjectFactory.createCTWrap();
// w10CTWrap.setType(STWrapType.SQUARE);
// JAXBElement<org.docx4j.vml.wordprocessingDrawing.CTWrap> w10Wrap = w10ObjectFactory.createWrap(w10CTWrap);
// shape.getPathOrFormulasOrHandles().add( w10Wrap);
org.docx4j.vml.wordprocessingDrawing.ObjectFactory vmlwordprocessingDrawingObjectFactory = new org.docx4j.vml.wordprocessingDrawing.ObjectFactory();
// Create object for wrap (wrapped in JAXBElement)
CTWrap wrap = vmlwordprocessingDrawingObjectFactory.createCTWrap();
JAXBElement<org.docx4j.vml.wordprocessingDrawing.CTWrap> wrapWrapped = vmlwordprocessingDrawingObjectFactory.createWrap(wrap);
shape.getPathOrFormulasOrHandles().add( wrapWrapped);
wrap.setType(org.docx4j.vml.wordprocessingDrawing.STWrapType.TOP_AND_BOTTOM);
}
shape.setVmlId( "Text Box 2");
shape.setHralign(org.docx4j.vml.officedrawing.STHrAlign.LEFT);
shape.setType( "#_x0000_t202");
// <w10:wrap type="topAndBottom"/>
return pictWrapped;
}