public static boolean isEmpty(CTCnf cnfStyle) { return (cnfStyle == null) || isEmpty(cnfStyle.getVal() ); }
public static boolean isEmpty(CTBorder border) { return ((border == null) || (isEmpty(border.getColor()) && isEmpty(border.getSpace()) && isEmpty(border.getSz()) && (border.getThemeColor() == null) && isEmpty(border.getThemeShade()) && isEmpty(border.getThemeTint()) && (border.getVal() == null) ) ); }
public static boolean isEmpty(Tabs tabs) { if ((tabs == null) || (tabs.getTab() == null) || (tabs.getTab().isEmpty())) return true; for (int i=0; i<tabs.getTab().size(); i++) if (!isEmpty(tabs.getTab().get(i))) return false; return true; }
public static TextDirection apply(TextDirection source, TextDirection destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTextDirection(); destination.setVal(source.getVal()); //atomic } return destination; }
public static CTEm apply(CTEm source, CTEm destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTEm(); destination.setVal(source.getVal()); } return destination; }
public static HMerge apply(HMerge source, HMerge destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTcPrInnerHMerge(); destination.setVal(source.getVal()); } return destination; }
public static CTTextboxTightWrap apply(CTTextboxTightWrap source, CTTextboxTightWrap destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTextboxTightWrap(); destination.setVal(source.getVal()); //enum } return destination; }
public static Jc apply(Jc source, Jc destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createJc(); destination.setVal(source.getVal()); //enum } return destination; }
public static Highlight apply(Highlight source, Highlight destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createHighlight(); destination.setVal(source.getVal()); } return destination; }
public static CTTextScale apply(CTTextScale source, CTTextScale destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTextScale(); destination.setVal(source.getVal()); } return destination; }
public static TblStyle apply(TblStyle source, TblStyle destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTblPrBaseTblStyle(); destination.setVal(source.getVal()); } return destination; }
public static VMerge apply(VMerge source, VMerge destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTcPrInnerVMerge(); destination.setVal(source.getVal()); } return destination; }
public static GridSpan apply(GridSpan source, GridSpan destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTcPrInnerGridSpan(); destination.setVal(source.getVal()); } return destination; }
public static CTTblOverlap apply(CTTblOverlap source, CTTblOverlap destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createCTTblOverlap(); destination.setVal(source.getVal()); } return destination; }
public static PStyle apply(PStyle source, PStyle destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createPPrBasePStyle(); destination.setVal(apply(source.getVal(), destination.getVal())); } return destination; }
public static PPr apply(PPr source, PPr destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createPPr(); apply((PPrBase)source, (PPrBase)destination); destination.setRPr(apply(source.getRPr(), destination.getRPr())); destination.setSectPr(apply(source.getSectPr(), destination.getSectPr())); } return destination; }
public static TcMar apply(TcMar source, TcMar destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createTcMar(); destination.setBottom(apply(source.getBottom(), destination.getBottom())); destination.setLeft(apply(source.getLeft(), destination.getLeft())); destination.setRight(apply(source.getRight(), destination.getRight())); destination.setTop(apply(source.getTop(), destination.getTop())); } return destination; }
public static Color apply(Color source, Color destination) { if (!isEmpty(source)) { if (destination == null) destination = Context.getWmlObjectFactory().createColor(); destination.setThemeColor(apply(source.getThemeColor(), destination.getThemeColor())); destination.setThemeShade(apply(source.getThemeShade(), destination.getThemeShade())); destination.setThemeTint(apply(source.getThemeTint(), destination.getThemeTint())); destination.setVal(apply(source.getVal(), destination.getVal())); } return destination; }