/** * Create an instance of {@link BooleanDefaultTrue } * */ public BooleanDefaultTrue createBooleanDefaultTrue() { return new BooleanDefaultTrue(); }
/** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); }
plcHdr = Context.getWmlObjectFactory().createSdtPrShowingPlcHdr(new BooleanDefaultTrue() ); getRPrOrAliasOrLock().add(plcHdr); if (!plcHdr.getValue().isVal()) { plcHdr.setValue(new BooleanDefaultTrue() );
public static void process(WordprocessingMLPackage wmlPackage) { Body body = wmlPackage.getMainDocumentPart().getJaxbElement().getBody(); if (body==null || body.getContent().size()==0) { log.warn("w:document/w:body null or empty"); return; } Object o = body.getContent().get(0); if (o instanceof P && ((P)o).getPPr()!=null) { PPr pPr = ((P)o).getPPr(); BooleanDefaultTrue val = new BooleanDefaultTrue(); val.setVal(Boolean.FALSE); pPr.setPageBreakBefore(val); } } }
private BooleanDefaultTrue newBooleanDefaultTrue(boolean val) { BooleanDefaultTrue newBooleanDefaultTrue = factory.createBooleanDefaultTrue(); newBooleanDefaultTrue.setVal(Boolean.valueOf(val)); return newBooleanDefaultTrue; }
plcHdr = Context.getWmlObjectFactory().createSdtPrShowingPlcHdr(new BooleanDefaultTrue() ); getRPrOrAliasOrLock().add(plcHdr); if (!plcHdr.getValue().isVal()) { plcHdr.setValue(new BooleanDefaultTrue() );
newP.getPPr().setPageBreakBefore(new BooleanDefaultTrue()); newContent.add(newP); p.setPPr(pPr); BooleanDefaultTrue val = new BooleanDefaultTrue(); val.setVal(Boolean.FALSE); pPr.setPageBreakBefore(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 ); }
@Override public void setXslFO(Element foElement) { if (((BooleanDefaultTrue)this.getObject()).isVal() ) { foElement.setAttribute(FO_NAME, "italic" ); } else { foElement.setAttribute(FO_NAME, "normal" ); } }
public TrCantSplit() { JAXBElement<BooleanDefaultTrue> cantSplit = Context.getWmlObjectFactory().createCTTrPrBaseCantSplit(new BooleanDefaultTrue()); setObject(cantSplit); }
public static void process(WordprocessingMLPackage wmlPackage) { Body body = wmlPackage.getMainDocumentPart().getJaxbElement().getBody(); if (body==null || body.getContent().size()==0) { log.warn("w:document/w:body null or empty"); return; } Object o = body.getContent().get(0); if (o instanceof P && ((P)o).getPPr()!=null) { PPr pPr = ((P)o).getPPr(); BooleanDefaultTrue val = new BooleanDefaultTrue(); val.setVal(Boolean.FALSE); pPr.setPageBreakBefore(val); } } }
public Italics(CSSValue value) { BooleanDefaultTrue bdt = Context.getWmlObjectFactory().createBooleanDefaultTrue(); if (!value.getCssText().toLowerCase().equals("italic")) { bdt.setVal(Boolean.FALSE); } this.setObject( bdt ); }
/** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); }
@Override public void setXslFO(Element foElement) { if (((BooleanDefaultTrue)this.getObject()).isVal() ) { foElement.setAttribute(FO_NAME, "bold" ); } else { foElement.setAttribute(FO_NAME, "normal" ); } }
this.jaxbElement.setAutoFormatOverride(new BooleanDefaultTrue()); this.jaxbElement.setStyleLockTheme(new BooleanDefaultTrue()); this.jaxbElement.setStyleLockQFSet(new BooleanDefaultTrue());
newP.getPPr().setPageBreakBefore(new BooleanDefaultTrue()); newContent.add(newP); p.setPPr(pPr); BooleanDefaultTrue val = new BooleanDefaultTrue(); val.setVal(Boolean.FALSE); pPr.setPageBreakBefore(val);
public TextDirection(CSSValue value) { if (value.getCssText().toLowerCase().equals("rtl")) { this.setObject( Context.getWmlObjectFactory().createBooleanDefaultTrue() ); } else { BooleanDefaultTrue bdt = Context.getWmlObjectFactory().createBooleanDefaultTrue(); bdt.setVal(Boolean.FALSE); } }
@Override public void setXslFO(Element foElement) { if (((BooleanDefaultTrue)this.getObject()).isVal() ) { foElement.setAttribute(FO_NAME, "always" ); } else { // } }
private static void updateParagraph(P paragraph) { boolean containsPageBreak = checkPageBreak(paragraph.getContent()); if (containsPageBreak) { if (paragraph.getPPr() == null) { paragraph.setPPr(new PPr()); } paragraph.getPPr().setPageBreakBefore(new BooleanDefaultTrue()); } }