public XDDFAutoFit getAutoFit() { if (props.isSetNoAutofit()) { return new XDDFNoAutoFit(props.getNoAutofit()); } else if (props.isSetNormAutofit()) { return new XDDFNormalAutoFit(props.getNormAutofit()); } else if (props.isSetSpAutoFit()) { return new XDDFShapeAutoFit(props.getSpAutoFit()); } return new XDDFNormalAutoFit(); }
public void setAutoFit(XDDFAutoFit autofit) { if (props.isSetNoAutofit()) { props.unsetNoAutofit(); } if (props.isSetNormAutofit()) { props.unsetNormAutofit(); } if (props.isSetSpAutoFit()) { props.unsetSpAutoFit(); } if (autofit instanceof XDDFNoAutoFit) { props.setNoAutofit(((XDDFNoAutoFit) autofit).getXmlObject()); } else if (autofit instanceof XDDFNormalAutoFit) { props.setNormAutofit(((XDDFNormalAutoFit) autofit).getXmlObject()); } else if (autofit instanceof XDDFShapeAutoFit) { props.setSpAutoFit(((XDDFShapeAutoFit) autofit).getXmlObject()); } }
public XDDFAutoFit getAutoFit() { if (props.isSetNoAutofit()) { return new XDDFNoAutoFit(props.getNoAutofit()); } else if (props.isSetNormAutofit()) { return new XDDFNormalAutoFit(props.getNormAutofit()); } else if (props.isSetSpAutoFit()) { return new XDDFShapeAutoFit(props.getSpAutoFit()); } return new XDDFNormalAutoFit(); }
public void setAutoFit(XDDFAutoFit autofit) { if (props.isSetNoAutofit()) { props.unsetNoAutofit(); } if (props.isSetNormAutofit()) { props.unsetNormAutofit(); } if (props.isSetSpAutoFit()) { props.unsetSpAutoFit(); } if (autofit instanceof XDDFNoAutoFit) { props.setNoAutofit(((XDDFNoAutoFit) autofit).getXmlObject()); } else if (autofit instanceof XDDFNormalAutoFit) { props.setNormAutofit(((XDDFNormalAutoFit) autofit).getXmlObject()); } else if (autofit instanceof XDDFShapeAutoFit) { props.setSpAutoFit(((XDDFShapeAutoFit) autofit).getXmlObject()); } }