New option is working

This commit is contained in:
Georgy Litvinov 2020-01-10 20:28:15 +01:00
parent bfce0e3272
commit 216f143c87
2 changed files with 5 additions and 2 deletions

View file

@ -96,6 +96,7 @@ public class DialogAccess {
} }
catch (Exception e) { catch (Exception e) {
// Will fail if the control does not exist // Will fail if the control does not exist
System.out.println(e);
} }
} }
@ -105,6 +106,8 @@ public class DialogAccess {
return ((Short) xPropertySet.getPropertyValue("State")).shortValue(); return ((Short) xPropertySet.getPropertyValue("State")).shortValue();
} }
catch (Exception e) { catch (Exception e) {
System.out.println(e);
// Will fail if the control does not exist or is not a checkbox // Will fail if the control does not exist or is not a checkbox
return CHECKBOX_DONT_KNOW; return CHECKBOX_DONT_KNOW;
} }

View file

@ -124,7 +124,7 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
helper.put("StyleSheetURL", "$(user)/writer2xhtml-styles.css"); helper.put("StyleSheetURL", "$(user)/writer2xhtml-styles.css");
} }
saveTextFieldOption(xProps, "MinLetterSpacing"); saveTextFieldOption(xProps, helper, "MinLetterSpacing", "min_letter_spacing");
saveCheckBoxOption(xProps, helper, "ConvertToPx", "convert_to_px"); saveCheckBoxOption(xProps, helper, "ConvertToPx", "convert_to_px");
saveNumericOptionAsPercentage(xProps, helper, "Scaling", "scaling"); saveNumericOptionAsPercentage(xProps, helper, "Scaling", "scaling");
@ -186,7 +186,7 @@ public class XhtmlOptionsDialog extends OptionsDialogBase {
setControlEnabled("ColumnScalingLabel",!isLocked("column_scaling")); setControlEnabled("ColumnScalingLabel",!isLocked("column_scaling"));
setControlEnabled("ColumnScaling",!isLocked("column_scaling")); setControlEnabled("ColumnScaling",!isLocked("column_scaling"));
// setControlEnabled("MinLetterSpacingValue",!isLocked("min_letter_spacing")); setControlEnabled("MinLetterSpacing",!isLocked("min_letter_spacing"));
setControlEnabled("ConvertToPx",!isLocked("convert_to_px")); setControlEnabled("ConvertToPx",!isLocked("convert_to_px"));
setControlEnabled("OriginalImageSize",!isLocked("image_size") && !isLocked("original_image_size")); setControlEnabled("OriginalImageSize",!isLocked("image_size") && !isLocked("original_image_size"));