Search in sources :

Example 11 with CTTextBody

use of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody in project poi by apache.

the class XSLFAutoShape method getTextBody.

protected CTTextBody getTextBody(boolean create) {
    CTShape shape = (CTShape) getXmlObject();
    CTTextBody txBody = shape.getTxBody();
    if (txBody == null && create) {
        txBody = shape.addNewTxBody();
        initTextBody(txBody);
    }
    return txBody;
}
Also used : CTShape(org.openxmlformats.schemas.presentationml.x2006.main.CTShape) CTTextBody(org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody)

Aggregations

CTTextBody (org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody)9 CTTextParagraph (org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph)3 CTTextBodyProperties (org.openxmlformats.schemas.drawingml.x2006.main.CTTextBodyProperties)2 CTShape (org.openxmlformats.schemas.presentationml.x2006.main.CTShape)2 VerticalAlignment (org.apache.poi.sl.usermodel.VerticalAlignment)1 CTTitle (org.openxmlformats.schemas.drawingml.x2006.chart.CTTitle)1 CTTx (org.openxmlformats.schemas.drawingml.x2006.chart.CTTx)1 CTRegularTextRun (org.openxmlformats.schemas.drawingml.x2006.main.CTRegularTextRun)1 CTTableCell (org.openxmlformats.schemas.drawingml.x2006.main.CTTableCell)1 CTTextCharacterProperties (org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties)1 CTTextField (org.openxmlformats.schemas.drawingml.x2006.main.CTTextField)1 CTShape (org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape)1 CTShapeNonVisual (org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShapeNonVisual)1 CTApplicationNonVisualDrawingProps (org.openxmlformats.schemas.presentationml.x2006.main.CTApplicationNonVisualDrawingProps)1