Examples of CTTextBody


Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

        nvSpPr.addNewNvPr();
        CTShapeProperties spPr = ct.addNewSpPr();
        CTPresetGeometry2D prst = spPr.addNewPrstGeom();
        prst.setPrst(STShapeType.RECT);
        prst.addNewAvLst();
        CTTextBody txBody = ct.addNewTxBody();
        txBody.addNewBodyPr();
        txBody.addNewLstStyle();

        return ct;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

    }

    @Override
    protected CTTextBody getTextBody(boolean create){
        CTTableCell cell = getXmlObject();
        CTTextBody txBody = cell.getTxBody();
        if (txBody == null && create) {
            txBody = cell.addNewTxBody();
            txBody.addNewBodyPr();
            txBody.addNewLstStyle();
        }
        return txBody;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

    private void extractShapeContent(CTGroupShape gs, XHTMLContentHandler xhtml)
            throws SAXException {
        CTShape[] shapes = gs.getSpArray();
        for (CTShape shape : shapes) {
            CTTextBody textBody = shape.getTxBody();
            if (textBody != null) {
                CTTextParagraph[] paras = textBody.getPArray();
                for (CTTextParagraph textParagraph : paras) {
                    CTRegularTextRun[] textRuns = textParagraph.getRArray();
                    for (CTRegularTextRun textRun : textRuns) {
                        xhtml.element("p", textRun.getT());
                    }
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

  }
 
  private void extractText(CTGroupShape gs, StringBuffer text) {
    CTShape[] shapes = gs.getSpArray();
    for (int i = 0; i < shapes.length; i++) {
      CTTextBody textBody =
        shapes[i].getTxBody();
      if(textBody != null) {
        CTTextParagraph[] paras =
          textBody.getPArray();
        for (int j = 0; j < paras.length; j++) {
          CTRegularTextRun[] textRuns =
            paras[j].getRArray();
          for (int k = 0; k < textRuns.length; k++) {
            text.append( textRuns[k].getT() );
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

  }
 
  private void extractText(CTGroupShape gs, StringBuffer text) {
    CTShape[] shapes = gs.getSpArray();
    for (int i = 0; i < shapes.length; i++) {
      CTTextBody textBody =
        shapes[i].getTxBody();
      if(textBody != null) {
        CTTextParagraph[] paras =
          textBody.getPArray();
        for (int j = 0; j < paras.length; j++) {
                    XmlCursor c = paras[j].newCursor();
                    c.selectPath("./*");
                    while (c.toNextSelection()) {
                        XmlObject o = c.getObject();
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

    }

    private void processShape(CTGroupShape gs, List<DrawingParagraph> out) {
        CTShape[] shapes = gs.getSpArray();
        for (int i = 0; i < shapes.length; i++) {
            CTTextBody ctTextBody = shapes[i].getTxBody();
            if (ctTextBody==null) {
                continue;
            }

            DrawingTextBody textBody = new DrawingTextBody(ctTextBody);
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

  }
 
  private void extractText(CTGroupShape gs, StringBuffer text) {
    CTShape[] shapes = gs.getSpArray();
    for (int i = 0; i < shapes.length; i++) {
      CTTextBody textBody =
        shapes[i].getTxBody();
      if(textBody != null) {
        CTTextParagraph[] paras =
          textBody.getPArray();
        for (int j = 0; j < paras.length; j++) {
          CTRegularTextRun[] textRuns =
            paras[j].getRArray();
          for (int k = 0; k < textRuns.length; k++) {
            text.append( textRuns[k].getT() );
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

    private void extractShapeContent(CTGroupShape gs, XHTMLContentHandler xhtml)
            throws SAXException {
        CTShape[] shapes = gs.getSpArray();
        for (CTShape shape : shapes) {
            CTTextBody textBody = shape.getTxBody();
            if (textBody != null) {
                CTTextParagraph[] paras = textBody.getPArray();
                for (CTTextParagraph textParagraph : paras) {
                    CTRegularTextRun[] textRuns = textParagraph.getRArray();
                    for (CTRegularTextRun textRun : textRuns) {
                        xhtml.element("p", textRun.getT());
                    }
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

    }

    private void processShape(CTGroupShape gs, List<DrawingParagraph> out) {
        List<CTShape> shapes = gs.getSpList();
        for (int i = 0; i < shapes.size(); i++) {
            CTTextBody ctTextBody = shapes.get(i).getTxBody();
            if (ctTextBody==null) {
                continue;
            }

            DrawingTextBody textBody = new DrawingTextBody(ctTextBody);
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody

            CTFontReference fontRef = style.addNewFontRef();
            fontRef.setIdx(STFontCollectionIndex.MINOR);
            fontRef.addNewSchemeClr().setVal(STSchemeColorVal.LT_1);

            CTTextBody body = shape.addNewTxBody();
            CTTextBodyProperties bodypr = body.addNewBodyPr();
            bodypr.setAnchor(STTextAnchoringType.CTR);
            bodypr.setRtlCol(false);
            CTTextParagraph p = body.addNewP();
            p.addNewPPr().setAlgn(STTextAlignType.CTR);
            CTTextCharacterProperties endPr = p.addNewEndParaRPr();
            endPr.setLang("en-US");
            endPr.setSz(1100);

            body.addNewLstStyle();

            prototype = shape;
        }
        return prototype;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.