diff --git a/apps/documenteditor/main/app/controller/PageLayout.js b/apps/documenteditor/main/app/controller/PageLayout.js index 0be70b040..a8f94ac63 100644 --- a/apps/documenteditor/main/app/controller/PageLayout.js +++ b/apps/documenteditor/main/app/controller/PageLayout.js @@ -148,7 +148,8 @@ define([ disable.align = islocked || wrapping == Asc.c_oAscWrapStyle2.Inline || content_locked; disable.group = islocked || wrapping == Asc.c_oAscWrapStyle2.Inline || content_locked; disable.arrange = (wrapping == Asc.c_oAscWrapStyle2.Inline) && !props.get_FromGroup() || content_locked; - disable.wrapping = islocked || props.get_FromGroup() || (notflow && !me.api.CanChangeWrapPolygon()) || content_locked || (!!control_props && control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture); + disable.wrapping = islocked || props.get_FromGroup() || (notflow && !me.api.CanChangeWrapPolygon()) || content_locked || + (!!control_props && control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture && !control_props.get_FormPr()); if ( !disable.group ) { if (me.api.CanGroup() || me.api.CanUnGroup()) { diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 9b0c979cb..39dfa84e0 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -2676,7 +2676,7 @@ define([ } me.menuImageWrap.setDisabled(islocked || value.imgProps.value.get_FromGroup() || (notflow && menuWrapPolygon.isDisabled()) || - (!!control_props && control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture)); + (!!control_props && control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture && !control_props.get_FormPr())); var cancopy = me.api && me.api.can_CopyCut(); menuImgCopy.setDisabled(!cancopy); diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 13f2bcf8a..aa6187883 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -407,7 +407,10 @@ define([ { value: 120, displayValue: "120%" }, { value: 150, displayValue: "150%" }, { value: 175, displayValue: "175%" }, - { value: 200, displayValue: "200%" } + { value: 200, displayValue: "200%" }, + { value: 300, displayValue: "300%" }, + { value: 400, displayValue: "400%" }, + { value: 500, displayValue: "500%" } ], dataHint: '2', dataHintDirection: 'bottom', diff --git a/apps/documenteditor/main/app/view/ImageSettings.js b/apps/documenteditor/main/app/view/ImageSettings.js index 86e1bb314..51f6869b1 100644 --- a/apps/documenteditor/main/app/view/ImageSettings.js +++ b/apps/documenteditor/main/app/view/ImageSettings.js @@ -338,7 +338,7 @@ define([ value = props.get_CanBeFlow() && !this._locked; var fromgroup = props.get_FromGroup() || this._locked; var control_props = this.api.asc_IsContentControl() ? this.api.asc_GetContentControlProperties() : null, - isPictureControl = !!control_props && (control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture) || this._locked; + isPictureControl = !!control_props && (control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture) && !control_props.get_FormPr() || this._locked; if (this._state.CanBeFlow!==value || this._state.FromGroup!==fromgroup || this._state.isPictureControl!==isPictureControl) { this.cmbWrapType.setDisabled(!value || fromgroup || isPictureControl); this._state.CanBeFlow=value; diff --git a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js index c9a448608..f3bf1c3ea 100644 --- a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js @@ -1390,7 +1390,8 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat if (control_props) { var spectype = control_props.get_SpecificType(); fixed_size = (spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.ComboBox || - spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None) && + spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None || + spectype==Asc.c_oAscContentControlSpecificType.Picture) && control_props.get_FormPr() && control_props.get_FormPr().get_Fixed(); } @@ -1400,7 +1401,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat this.btnsCategory[6].setVisible(shapeprops!==null && !shapeprops.get_FromChart() && !fixed_size); // Margins this.btnsCategory[7].setVisible(!fixed_size); // Alt this.btnsCategory[2].setVisible(!chartprops && (pluginGuid === null || pluginGuid === undefined)); // Rotation - this.btnsCategory[3].setDisabled(props.get_FromGroup() || !!control_props && (control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture)); // Wrapping + this.btnsCategory[3].setDisabled(props.get_FromGroup() || !!control_props && (control_props.get_SpecificType()==Asc.c_oAscContentControlSpecificType.Picture) && !control_props.get_FormPr()); // Wrapping if (shapeprops) { this._objectType = Asc.c_oAscTypeSelectElement.Shape; diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js index 0c75fddaa..09748d71a 100644 --- a/apps/documenteditor/main/app/view/ShapeSettings.js +++ b/apps/documenteditor/main/app/view/ShapeSettings.js @@ -798,7 +798,8 @@ define([ if (control_props) { var spectype = control_props.get_SpecificType(); control_props = (spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.ComboBox || - spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None) && + spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None || + spectype==Asc.c_oAscContentControlSpecificType.Picture) && control_props.get_FormPr() && control_props.get_FormPr().get_Fixed(); } else control_props = false; diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 4a213204c..ae836b33f 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -346,6 +346,7 @@ class MainController extends Component { this.api.asc_setViewMode(!appOptions.isEdit && !appOptions.isRestrictedEdit); appOptions.isRestrictedEdit && appOptions.canComments && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyComments); appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms); + appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_SetHighlightRequiredFields(true); // Set units let value = LocalStorage.getItem('de-mobile-settings-unit'); diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index a9dee9f0b..7f1c7992d 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -315,7 +315,10 @@ define([ { value: 120, displayValue: "120%" }, { value: 150, displayValue: "150%" }, { value: 175, displayValue: "175%" }, - { value: 200, displayValue: "200%" } + { value: 200, displayValue: "200%" }, + { value: 300, displayValue: "300%" }, + { value: 400, displayValue: "400%" }, + { value: 500, displayValue: "500%" } ], dataHint: '2', dataHintDirection: 'bottom', diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 936855bb1..842243220 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -887,7 +887,10 @@ define([ { value: 120, displayValue: "120%" }, { value: 150, displayValue: "150%" }, { value: 175, displayValue: "175%" }, - { value: 200, displayValue: "200%" } + { value: 200, displayValue: "200%" }, + { value: 300, displayValue: "300%" }, + { value: 400, displayValue: "400%" }, + { value: 500, displayValue: "500%" } ], dataHint : '3', dataHintDirection: 'bottom',