use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.
the class Docx4j_工具类_S3_Test method addRPrBoldStyle.
/**
* @Description: 加粗
*/
public void addRPrBoldStyle(RPr runProperties) {
BooleanDefaultTrue b = new BooleanDefaultTrue();
b.setVal(true);
runProperties.setB(b);
}
use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.
the class Docx4j_工具类_S3_Test method addRPrItalicStyle.
/**
* @Description: 倾斜
*/
public void addRPrItalicStyle(RPr runProperties) {
BooleanDefaultTrue b = new BooleanDefaultTrue();
b.setVal(true);
runProperties.setI(b);
}
use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.
the class Docx4j_工具类_S3_Test method setParaVanish.
public void setParaVanish(PPr ppr, boolean isVanish) {
ParaRPr parRpr = getParaRPr(ppr);
BooleanDefaultTrue vanish = parRpr.getVanish();
if (vanish != null) {
vanish.setVal(isVanish);
} else {
vanish = new BooleanDefaultTrue();
parRpr.setVanish(vanish);
vanish.setVal(isVanish);
}
}
use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.
the class Docx4j_工具类_S3_Test method addRPrStrikeStyle.
/**
* @Description: 设置删除线样式
*/
public void addRPrStrikeStyle(RPr runProperties, boolean isStrike, boolean isDStrike) {
// 删除线
if (isStrike) {
BooleanDefaultTrue strike = new BooleanDefaultTrue();
strike.setVal(true);
runProperties.setStrike(strike);
}
// 双删除线
if (isDStrike) {
BooleanDefaultTrue dStrike = new BooleanDefaultTrue();
dStrike.setVal(true);
runProperties.setDstrike(dStrike);
}
}
use of org.docx4j.wml.BooleanDefaultTrue in project docx4j-template by vindell.
the class Docx4j_工具类_S3_Test method addRPrImprintStyle.
/**
* @Description: 阴文
*/
public void addRPrImprintStyle(RPr runProperties) {
BooleanDefaultTrue imprint = new BooleanDefaultTrue();
imprint.setVal(true);
runProperties.setImprint(imprint);
}
Aggregations