Examples of CTSdtContentRun


Examples of org.docx4j.wml.CTSdtContentRun

    sdtPr.setDataBinding(ctDataBinding);
    ctDataBinding.setXpath("/oda:answers/oda:answer[@id='" + key +"']");
    ctDataBinding.setPrefixMappings("xmlns:oda='http://opendope.org/answers'");
    ctDataBinding.setStoreItemID(storeItemID);
         
    CTSdtContentRun sdtContent = Context.getWmlObjectFactory().createCTSdtContentRun();     
    sdtRun.setSdtContent(sdtContent);

    R rnew = new R();
    rnew.setRPr( rPr ); // point at old rPr, if any
    Text text = Context.getWmlObjectFactory().createText();
    text.setValue(key);
    rnew.getContent().add(text);
   
    sdtContent.getContent().add(rnew);
  }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

             for(CTR r : link.getRList()) {
                runs.add(new XWPFHyperlinkRun(link, r, this));
             }
          }
          if(o instanceof CTSdtRun) {
             CTSdtContentRun run = ((CTSdtRun)o).getSdtContent();
             for(CTR r : run.getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTRunTrackChange) {
             for(CTR r : ((CTRunTrackChange)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTSimpleField) {
             for(CTR r : ((CTSimpleField)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
       }

       c.dispose();
      
       // Look for bits associated with the runs
       for(XWPFRun run : runs) {
          CTR r = run.getCTR();
         
          // Check for bits that only apply when
          //  attached to a core document
          // TODO Make this nicer by tracking the XWPFFootnotes directly
          if(document != null) {
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

      // Not sure quite what these are, but they hold
      // more text runs
      CTSdtRun[] sdts = paragraph.getSdtArray();
      for (int i = 0; i < sdts.length; i++) {
    CTSdtContentRun run = sdts[i].getSdtContent();
    tmp = run.getRArray();
    for (int j = 0; j < tmp.length; j++) {
        rs.add(tmp[j]);
    }
      }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

            // to directly find all the CTRs, in the right order
            ArrayList<CTR> rs = new ArrayList<CTR>();
            rs.addAll(Arrays.asList(paragraph.getRArray()));

            for (CTSdtRun sdt : paragraph.getSdtArray()) {
                CTSdtContentRun run = sdt.getSdtContent();
                rs.addAll(Arrays.asList(run.getRArray()));
            }
            for (CTRunTrackChange c : paragraph.getDelArray()) {
                rs.addAll(Arrays.asList(c.getRArray()));
            }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

             for(CTR r : link.getRList()) {
                runs.add(new XWPFHyperlinkRun(link, r, this));
             }
          }
          if(o instanceof CTSdtRun) {
             CTSdtContentRun run = ((CTSdtRun)o).getSdtContent();
             for(CTR r : run.getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTRunTrackChange) {
             for(CTR r : ((CTRunTrackChange)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTSimpleField) {
             for(CTR r : ((CTSimpleField)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
       }
      
       // Look for bits associated with the runs
       for(XWPFRun run : runs) {
          CTR r = run.getCTR();
         
          // Check for bits that only apply when
          //  attached to a core document
          // TODO Make this nicer by tracking the XWPFFootnotes directly
          if(document != null) {
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

      // Not sure quite what these are, but they hold
      // more text runs
      CTSdtRun[] sdts = paragraph.getSdtArray();
      for (int i = 0; i < sdts.length; i++) {
    CTSdtContentRun run = sdts[i].getSdtContent();
    tmp = run.getRArray();
    for (int j = 0; j < tmp.length; j++) {
        rs.add(tmp[j]);
    }
      }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

      // to directly find all the CTRs, in the right order
      ArrayList<CTR> rs = new ArrayList<CTR>();
      rs.addAll( Arrays.asList(paragraph.getRArray()) );
     
      for (CTSdtRun sdt : paragraph.getSdtArray()) {
          CTSdtContentRun run = sdt.getSdtContent();
          rs.addAll( Arrays.asList(run.getRArray()) );
      }
      for (CTRunTrackChange c : paragraph.getDelArray()) {
          rs.addAll( Arrays.asList(c.getRArray()) );
      }
      for (CTRunTrackChange c : paragraph.getInsArray()) {
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

             for(CTR r : link.getRList()) {
                runs.add(new XWPFHyperlinkRun(link, r, this));
             }
          }
          if(o instanceof CTSdtRun) {
             CTSdtContentRun run = ((CTSdtRun)o).getSdtContent();
             for(CTR r : run.getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTRunTrackChange) {
             for(CTR r : ((CTRunTrackChange)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTSimpleField) {
             for(CTR r : ((CTSimpleField)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
       }
      
       // Look for bits associated with the runs
       for(XWPFRun run : runs) {
          CTR r = run.getCTR();
         
          // Check for bits that only apply when
          //  attached to a core document
          // TODO Make this nicer by tracking the XWPFFootnotes directly
          if(document != null) {
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

             for(CTR r : link.getRList()) {
                runs.add(new XWPFHyperlinkRun(link, r, this));
             }
          }
          if(o instanceof CTSdtRun) {
             CTSdtContentRun run = ((CTSdtRun)o).getSdtContent();
             for(CTR r : run.getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTRunTrackChange) {
             for(CTR r : ((CTRunTrackChange)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
          if(o instanceof CTSimpleField) {
             for(CTR r : ((CTSimpleField)o).getRList()) {
                runs.add(new XWPFRun(r, this));
             }
          }
       }

       c.dispose();
      
       // Look for bits associated with the runs
       for(XWPFRun run : runs) {
          CTR r = run.getCTR();
         
          // Check for bits that only apply when
          //  attached to a core document
          // TODO Make this nicer by tracking the XWPFFootnotes directly
          if(document != null) {
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSdtContentRun

      // to directly find all the CTRs, in the right order
      ArrayList<CTR> rs = new ArrayList<CTR>();
      rs.addAll( paragraph.getRList() );
     
      for (CTSdtRun sdt : paragraph.getSdtList()) {
          CTSdtContentRun run = sdt.getSdtContent();
          rs.addAll( run.getRList() );
      }
      for (CTRunTrackChange c : paragraph.getDelList()) {
          rs.addAll( c.getRList() );
      }
      for (CTRunTrackChange c : paragraph.getInsList()) {
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.