Package org.docx4j.wml

Examples of org.docx4j.wml.BooleanDefaultTrue


            characterspacing.setVal(org.docx4j.wml.STCharacterSpacing.COMPRESS_PUNCTUATION);
        // Create object for compat
        CTCompat compat = wmlObjectFactory.createCTCompat();
        settings.setCompat(compat);
            // Create object for balanceSingleByteDoubleByteWidth
            BooleanDefaultTrue booleandefaulttrue = wmlObjectFactory.createBooleanDefaultTrue();
            compat.setBalanceSingleByteDoubleByteWidth(booleandefaulttrue);
           
        // <w:themeFontLang w:val="en-US" w:eastAsia="zh-CN"/>
        // Create object for themeFontLang
        CTLanguage language = wmlObjectFactory.createCTLanguage();
View Full Code Here


  public Strike(BooleanDefaultTrue val) {
    this.setObject(val);
  }
 
  public Strike(CSSValue value) {
        BooleanDefaultTrue bdt = Context.getWmlObjectFactory().createBooleanDefaultTrue();
        if (!(value.getCssText().toLowerCase().equals("line-through")
                || value.getCssText().toLowerCase().equals("[line-through]"))) {
      bdt.setVal(Boolean.FALSE);
    }
        this.setObject( bdt  );
  }
View Full Code Here

           
            if (hasBreakBefore(effPPr)) {
              // insert a p containing a break
              P newP = new P();
              newP.setPPr(new PPr());
              newP.getPPr().setPageBreakBefore(new BooleanDefaultTrue());
              newContent.add(newP);
             
              // turn off PageBreakBefore in this p
              PPr pPr = p.getPPr();
              if (pPr == null) {
                pPr = Context.getWmlObjectFactory().createPPr();
                p.setPPr(pPr);
              }
              BooleanDefaultTrue val = new BooleanDefaultTrue();
              val.setVal(Boolean.FALSE);
              pPr.setPageBreakBefore(val);
            }
          } else {
            // inList still false; // now continue
          }
View Full Code Here

        if (tr.getTrPr() == null) {
          trpr = Context.getWmlObjectFactory().createTrPr();
            tr.setTrPr(trpr);
        }
            // Create object for tblHeader (wrapped in JAXBElement)
            BooleanDefaultTrue booleandefaulttrue = Context.getWmlObjectFactory().createBooleanDefaultTrue();
            JAXBElement<org.docx4j.wml.BooleanDefaultTrue> booleandefaulttrueWrapped
              = Context.getWmlObjectFactory().createCTTrPrBaseTblHeader(booleandefaulttrue);
            trpr.getCnfStyleOrDivIdOrGridBefore().add( booleandefaulttrueWrapped);          
      }
    }
View Full Code Here

 
  protected boolean isHeaderRow(Tr tr) {
   
    List<JAXBElement<?>> cnfStyleOrDivIdOrGridBefore = (tr.getTrPr() != null ? tr.getTrPr().getCnfStyleOrDivIdOrGridBefore() : null);
    JAXBElement element = getElement(cnfStyleOrDivIdOrGridBefore, "tblHeader");
    BooleanDefaultTrue boolVal = (element != null ? (BooleanDefaultTrue)element.getValue() : null);
    return (boolVal != null ? boolVal.isVal() : false);
  }
View Full Code Here

  public Italics(BooleanDefaultTrue val) {
    this.setObject(val);
  }
 
  public Italics(CSSValue value) {
        BooleanDefaultTrue bdt = Context.getWmlObjectFactory().createBooleanDefaultTrue();
    if (!value.getCssText().toLowerCase().equals("italic")) {
      bdt.setVal(Boolean.FALSE);
    }
        this.setObject( bdt  );
  }
View Full Code Here

  public Bold(BooleanDefaultTrue val) {
    this.setObject(val);
  }
 
  public Bold(CSSValue value) { 
        BooleanDefaultTrue bdt = Context.getWmlObjectFactory().createBooleanDefaultTrue();
   
    if (!value.getCssText().toLowerCase().equals("bold")) {
      bdt.setVal(Boolean.FALSE);
    }

        this.setObject( bdt );
  }
View Full Code Here

  protected static final QName CANT_SPLIT = new QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "cantSplit");
 
  public TrCantSplit() {
   
    JAXBElement<BooleanDefaultTrue> cantSplit = Context.getWmlObjectFactory().createCTTrPrBaseCantSplit(new BooleanDefaultTrue());
   
    setObject(cantSplit);
  }
View Full Code Here

  @Override
  public String getCssProperty() {

    JAXBElement<?> cantSplit = (JAXBElement<?>)getObject();     
    if (cantSplit!=null) {
      BooleanDefaultTrue val = (BooleanDefaultTrue)XmlUtils.unwrap(cantSplit);
      if (val.isVal()) {
        return composeCss(getCssName(), "avoid");
      }
    }
    return null;
  }
View Full Code Here

  @Override
  public void setXslFO(Element foElement) {

    JAXBElement<?> cantSplit = (JAXBElement<?>)getObject();     
    if (cantSplit!=null) {
      BooleanDefaultTrue val = (BooleanDefaultTrue)XmlUtils.unwrap(cantSplit);
      if (val.isVal()) {
        foElement.setAttribute(FO_NAME, "always");
       
      }
    }
   
View Full Code Here

TOP

Related Classes of org.docx4j.wml.BooleanDefaultTrue

Copyright © 2018 www.massapicom. 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.