@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setRight( (CTBorder)this.getObject() ); }
@Override public void set(TblPr tblPr) { tblPr.setTblInd( (TblWidth)this.getObject() ); }
@Override public void apply(Tbl table, Object parent, List<Object> siblings) { if (table.getTblPr()!=null && table.getTblPr().getTblStyle()!=null && !allowedStyleNames.contains(sdp.getNameForStyleID(table.getTblPr().getTblStyle().getVal()))) { table.getTblPr().setTblStyle(null); } } }
public void ensureMargin(TblPr tblPr) { if (tblPr.getTblCellMar() == null) { tblPr.setTblCellMar(Context.getWmlObjectFactory().createCTTblCellMar()); } }
tblpr.setJc(jc); jc.setVal(JcEnumeration.LEFT); tblpr.setTblStyle(tblStyle); tblStyle.setVal(tableStyle); tblpr.setTblW(tblwidth); if (tablePreferredWidthPct == 0) { tblwidth.setType("auto"); tblpr.setTblInd(tblInd); tblInd.setType("dxa"); final BigInteger tableInd = BigInteger.valueOf(tableLeftIndent).add(docx.getHelper().safeIndLeft(pPr.getInd())); tblpr.setTblBorders(tblborders); tblpr.setTblCellMar(tblcellmar); tblpr.setTblLook(tbllook); tbllook.setVal("04a0"); tbllook.setLastRow(org.docx4j.sharedtypes.STOnOff.ZERO);
borders.setInsideH( createBorderStyle(STBorder.NONE, null, null) ); borders.setInsideV( createBorderStyle(STBorder.NONE, null, null) ); tblPr.setTblBorders(borders); spacingWidth.setType(TblWidth.TYPE_DXA); tblPr.setTblCellSpacing(spacingWidth); if (importer.getListHelper().getDepth()>0 ) { TblWidth tblInd = tblPr.getTblInd(); if (tblInd==null) { tblInd = new TblWidth(); tblPr.setTblInd(tblInd); ))); tblInd.setType(TblWidth.TYPE_DXA); tblPr.setTblInd(tblInd); tblInd.setW( BigInteger.valueOf( 115)); tblInd.setType(TblWidth.TYPE_DXA); tblPr.setTblInd(tblInd); tblW.setW(BigInteger.ZERO); tblW.setType(TblWidth.TYPE_AUTO); tblPr.setTblW(tblW); tblPr.setTblLayout(tblLayout);
tblPr.setTblStyle(tblStyle); tblStyle.setVal(cssClass); } else {
@Override public void set(TblPr tblPr) { ensureMargin(tblPr); tblPr.getTblCellMar().setTop((TblWidth)getObject()); }
/** * Create an instance of {@link TblPr } * */ public TblPr createTblPr() { return new TblPr(); }
public void ensureMargin(TblPr tblPr) { if (tblPr.getTblCellMar() == null) { tblPr.setTblCellMar(Context.getWmlObjectFactory().createCTTblCellMar()); } }
@Override public void set(TblPr tblPr) { ensureMargin(tblPr); tblPr.getTblCellMar().setBottom((TblWidth)getObject()); }
/** * Create an instance of {@link TblPr } * */ public TblPr createTblPr() { return new TblPr(); }
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setTop( (CTBorder)this.getObject() ); }
@Override public void apply(Tbl table, Object parent, List<Object> siblings) { if (table.getTblPr()!=null && table.getTblPr().getTblStyle()!=null && !allowedStyleNames.contains(sdp.getNameForStyleID(table.getTblPr().getTblStyle().getVal()))) { table.getTblPr().setTblStyle(null); } } }
@Override public void set(TblPr tblPr) { tblPr.setTblInd( (TblWidth)this.getObject() ); }
@Override public void set(TblPr tblPr) { ensureMargin(tblPr); tblPr.getTblCellMar().setRight((TblWidth)getObject()); }
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() ); }
@Override public void set(TblPr tblPr) { ensureMargin(tblPr); tblPr.getTblCellMar().setLeft((TblWidth)getObject()); }
@Override public void set(TblPr tblPr) { if (tblPr.getTblBorders()==null) { TblBorders tblBorders = Context.getWmlObjectFactory().createTblBorders(); tblPr.setTblBorders(tblBorders); } tblPr.getTblBorders().setBottom( (CTBorder)this.getObject() ); }