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);
}
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);
}
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);
}
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);
}
}
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);
}
Aggregations