} else if (o instanceof org.docx4j.wml.SdtElement) {
return ((org.docx4j.wml.SdtElement) o).getSdtContent().getContent();
} else if (o instanceof org.docx4j.dml.wordprocessingDrawing.Anchor) {
org.docx4j.dml.wordprocessingDrawing.Anchor anchor = (org.docx4j.dml.wordprocessingDrawing.Anchor) o;
List<Object> artificialList = new ArrayList<Object>();
CTNonVisualDrawingProps drawingProps = anchor.getDocPr();
if (drawingProps != null) {
handleCTNonVisualDrawingProps(drawingProps, artificialList);
}
if (anchor.getGraphic() != null) {
log.debug("found a:graphic");
org.docx4j.dml.Graphic graphic = anchor.getGraphic();
if (graphic.getGraphicData() != null) {
artificialList.addAll(handleGraphicData(graphic.getGraphicData()));
}
}
if (!artificialList.isEmpty())
return artificialList;
} else if (o instanceof org.docx4j.dml.wordprocessingDrawing.Inline) {
org.docx4j.dml.wordprocessingDrawing.Inline inline = (org.docx4j.dml.wordprocessingDrawing.Inline) o;
List<Object> artificialList = new ArrayList<Object>();
CTNonVisualDrawingProps drawingProps = inline.getDocPr();
if (drawingProps != null) {
handleCTNonVisualDrawingProps(drawingProps, artificialList);
}
if (inline.getGraphic() != null) {
log.debug("found a:graphic");