/** * Enforces fields update on document open (in Word). * In the settings.xml file <br> * sets the updateSettings value to true (w:updateSettings w:val="true") * <p> * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void setUpdateFields() { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(STOnOff.TRUE); ctSettings.setUpdateFields(onOff); }
/** * Enforces fields update on document open (in Word). * In the settings.xml file <br/> * sets the updateSettings value to true (w:updateSettings w:val="true") * * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void setUpdateFields() { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(STOnOff.TRUE); ctSettings.setUpdateFields(onOff); }
/** * Turn mirrored margins on or off * * @param enable <code>true</code> to turn on mirrored margins, * <code>false</code> to turn off mirrored marginss. */ public void setMirrorMargins(boolean enable) { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(enable ? STOnOff.TRUE : STOnOff.FALSE); ctSettings.setMirrorMargins(onOff); }
/** * Turn separate even-and-odd headings on or off * * @param enable <code>true</code> to turn on separate even and odd headings, * <code>false</code> to turn off even and odd headings. */ public void setEvenAndOddHeadings(boolean enable) { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(enable ? STOnOff.TRUE : STOnOff.FALSE); ctSettings.setEvenAndOddHeaders(onOff); }
/** * Enforces fields update on document open (in Word). * In the settings.xml file <br> * sets the updateSettings value to true (w:updateSettings w:val="true") * <p> * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void setUpdateFields() { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(STOnOff.TRUE); ctSettings.setUpdateFields(onOff); }
/** * Turn mirrored margins on or off * * @param enable <code>true</code> to turn on mirrored margins, * <code>false</code> to turn off mirrored marginss. */ public void setMirrorMargins(boolean enable) { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(enable ? STOnOff.TRUE : STOnOff.FALSE); ctSettings.setMirrorMargins(onOff); }
/** * Turn separate even-and-odd headings on or off * * @param enable <code>true</code> to turn on separate even and odd headings, * <code>false</code> to turn off even and odd headings. */ public void setEvenAndOddHeadings(boolean enable) { CTOnOff onOff = CTOnOff.Factory.newInstance(); onOff.setVal(enable ? STOnOff.TRUE : STOnOff.FALSE); ctSettings.setEvenAndOddHeaders(onOff); }