Search in sources :

Example 6 with BooleanDefaultTrue

use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.

the class Docx4jStyle_S3 method addBoldStyle.

public void addBoldStyle(RPr runProperties) {
    BooleanDefaultTrue b = new BooleanDefaultTrue();
    b.setVal(true);
    runProperties.setB(b);
}
Also used : BooleanDefaultTrue(org.docx4j.wml.BooleanDefaultTrue)

Example 7 with BooleanDefaultTrue

use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.

the class Docx4jStyle_S3 method setCellNoWrap.

public void setCellNoWrap(Tc tableCell) {
    TcPr tableCellProperties = tableCell.getTcPr();
    if (tableCellProperties == null) {
        tableCellProperties = new TcPr();
        tableCell.setTcPr(tableCellProperties);
    }
    BooleanDefaultTrue b = new BooleanDefaultTrue();
    b.setVal(true);
    tableCellProperties.setNoWrap(b);
}
Also used : TcPr(org.docx4j.wml.TcPr) BooleanDefaultTrue(org.docx4j.wml.BooleanDefaultTrue)

Example 8 with BooleanDefaultTrue

use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.

the class Docx4j_工具类_S3_Test method addRPrShadowStyle.

/**
 * @Description: 设置阴影
 */
public void addRPrShadowStyle(RPr runProperties) {
    BooleanDefaultTrue shadow = new BooleanDefaultTrue();
    shadow.setVal(true);
    runProperties.setShadow(shadow);
}
Also used : BooleanDefaultTrue(org.docx4j.wml.BooleanDefaultTrue)

Example 9 with BooleanDefaultTrue

use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.

the class Docx4j_工具类_S3_Test method setRPrVanishStyle.

/**
 * @Description: 设置隐藏
 */
public void setRPrVanishStyle(RPr runProperties, boolean isVanish) {
    BooleanDefaultTrue vanish = runProperties.getVanish();
    if (vanish != null) {
        vanish.setVal(isVanish);
    } else {
        vanish = new BooleanDefaultTrue();
        vanish.setVal(isVanish);
        runProperties.setVanish(vanish);
    }
}
Also used : BooleanDefaultTrue(org.docx4j.wml.BooleanDefaultTrue)

Example 10 with BooleanDefaultTrue

use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.

the class Docx4j_工具类_S3_Test method addRPrEmbossStyle.

/**
 * @Description: 阳文
 */
public void addRPrEmbossStyle(RPr runProperties) {
    BooleanDefaultTrue emboss = new BooleanDefaultTrue();
    emboss.setVal(true);
    runProperties.setEmboss(emboss);
}
Also used : BooleanDefaultTrue(org.docx4j.wml.BooleanDefaultTrue)

Aggregations

BooleanDefaultTrue (org.docx4j.wml.BooleanDefaultTrue)28 RPr (org.docx4j.wml.RPr)9 Color (org.docx4j.wml.Color)6 HpsMeasure (org.docx4j.wml.HpsMeasure)5 ObjectFactory (org.docx4j.wml.ObjectFactory)5 P (org.docx4j.wml.P)5 R (org.docx4j.wml.R)5 BigInteger (java.math.BigInteger)4 RFonts (org.docx4j.wml.RFonts)4 U (org.docx4j.wml.U)4 File (java.io.File)2 WordprocessingMLPackage (org.docx4j.openpackaging.packages.WordprocessingMLPackage)2 MainDocumentPart (org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart)2 ParaRPr (org.docx4j.wml.ParaRPr)2 TcPr (org.docx4j.wml.TcPr)2 Text (org.docx4j.wml.Text)2 Inline (org.docx4j.dml.wordprocessingDrawing.Inline)1 BinaryPartAbstractImage (org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage)1 CTShd (org.docx4j.wml.CTShd)1 Highlight (org.docx4j.wml.Highlight)1