commit
d6c254f5cf
|
@ -53,7 +53,7 @@
|
||||||
{ "src": "UsageInstructions/CreateTableOfContents.htm", "name": "Create table of contents" },
|
{ "src": "UsageInstructions/CreateTableOfContents.htm", "name": "Create table of contents" },
|
||||||
{"src": "UsageInstructions/AddTableofFigures.htm", "name": "Add and Format a Table of Figures" },
|
{"src": "UsageInstructions/AddTableofFigures.htm", "name": "Add and Format a Table of Figures" },
|
||||||
{ "src": "UsageInstructions/CreateFillableForms.htm", "name": "Create fillable forms", "headername": "Fillable forms" },
|
{ "src": "UsageInstructions/CreateFillableForms.htm", "name": "Create fillable forms", "headername": "Fillable forms" },
|
||||||
{ "src": "UsageInstructions/FillingOutForm.htm", "headername": "Filling Out a Form" },
|
{ "src": "UsageInstructions/FillingOutForm.htm", "name": "Filling Out a Form" },
|
||||||
{"src": "UsageInstructions/UseMailMerge.htm", "name": "Use mail merge", "headername": "Mail Merge"},
|
{"src": "UsageInstructions/UseMailMerge.htm", "name": "Use mail merge", "headername": "Mail Merge"},
|
||||||
{ "src": "UsageInstructions/InsertEquation.htm", "name": "Insert equations", "headername": "Math equations" },
|
{ "src": "UsageInstructions/InsertEquation.htm", "name": "Insert equations", "headername": "Math equations" },
|
||||||
{"src": "HelpfulHints/CollaborativeEditing.htm", "name": "Collaborative document editing", "headername": "Document co-editing"},
|
{"src": "HelpfulHints/CollaborativeEditing.htm", "name": "Collaborative document editing", "headername": "Document co-editing"},
|
||||||
|
|
|
@ -697,7 +697,7 @@ class MainController extends Component {
|
||||||
const { t } = this.props;
|
const { t } = this.props;
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
f7.dialog.alert(null, !(found - replaced > 0) ? Common.Utils.String.format(t('Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Main.textReplaceSkipped'), found - replaced));
|
f7.dialog.alert(null, !(found - replaced > 0) ? t('Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`));
|
||||||
} else {
|
} else {
|
||||||
f7.dialog.alert(null, t('Main.textNoTextFound'));
|
f7.dialog.alert(null, t('Main.textNoTextFound'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -516,15 +516,18 @@ const EditShape = props => {
|
||||||
|| shapeType=='curvedConnector3' || shapeType=='curvedConnector4' || shapeType=='curvedConnector5'
|
|| shapeType=='curvedConnector3' || shapeType=='curvedConnector4' || shapeType=='curvedConnector5'
|
||||||
|| shapeType=='straightConnector1';
|
|| shapeType=='straightConnector1';
|
||||||
|
|
||||||
let controlProps = api && api.asc_IsContentControl() ? api.asc_GetContentControlProperties() : null,
|
const inControl = api.asc_IsContentControl();
|
||||||
fixedSize = false;
|
const controlProps = (api && inControl) ? api.asc_GetContentControlProperties() : null;
|
||||||
|
const lockType = controlProps ? controlProps.get_Lock() : Asc.c_oAscSdtLockType.Unlocked;
|
||||||
|
|
||||||
|
let fixedSize = false;
|
||||||
|
|
||||||
if (controlProps) {
|
if (controlProps) {
|
||||||
let spectype = controlProps.get_SpecificType();
|
let spectype = controlProps.get_SpecificType();
|
||||||
fixedSize = (spectype == Asc.c_oAscContentControlSpecificType.CheckBox || spectype == Asc. c_oAscContentControlSpecificType.ComboBox || spectype == Asc.c_oAscContentControlSpecificType.DropDownList || spectype == Asc.c_oAscContentControlSpecificType.None || spectype == Asc.c_oAscContentControlSpecificType.Picture) && controlProps.get_FormPr() && controlProps.get_FormPr().get_Fixed();
|
fixedSize = (spectype == Asc.c_oAscContentControlSpecificType.CheckBox || spectype == Asc. c_oAscContentControlSpecificType.ComboBox || spectype == Asc.c_oAscContentControlSpecificType.DropDownList || spectype == Asc.c_oAscContentControlSpecificType.None || spectype == Asc.c_oAscContentControlSpecificType.Picture) && controlProps.get_FormPr() && controlProps.get_FormPr().get_Fixed();
|
||||||
}
|
}
|
||||||
|
|
||||||
let disableRemove = !!props.storeFocusObjects.paragraphObject;
|
let disableRemove = !!props.storeFocusObjects.paragraphObject || (lockType == Asc.c_oAscSdtLockType.SdtContentLocked || lockType == Asc.c_oAscSdtLockType.SdtLocked);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
|
|
@ -427,7 +427,7 @@ class MainController extends Component {
|
||||||
const { t } = this.props;
|
const { t } = this.props;
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
f7.dialog.alert(null, !(found - replaced > 0) ? Common.Utils.String.format(t('Controller.Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Controller.Main.textReplaceSkipped'), found - replaced));
|
f7.dialog.alert(null, !(found - replaced > 0) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`));
|
||||||
} else {
|
} else {
|
||||||
f7.dialog.alert(null, t('Controller.Main.textNoTextFound'));
|
f7.dialog.alert(null, t('Controller.Main.textNoTextFound'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -402,11 +402,18 @@ class MainController extends Component {
|
||||||
this.api.asc_registerCallback('asc_onEditCell', (state) => {
|
this.api.asc_registerCallback('asc_onEditCell', (state) => {
|
||||||
if (state == Asc.c_oAscCellEditorState.editStart || state == Asc.c_oAscCellEditorState.editEnd) {
|
if (state == Asc.c_oAscCellEditorState.editStart || state == Asc.c_oAscCellEditorState.editEnd) {
|
||||||
const isEditCell = state === Asc.c_oAscCellEditorState.editStart;
|
const isEditCell = state === Asc.c_oAscCellEditorState.editStart;
|
||||||
|
const isEditEnd = state === Asc.c_oAscCellEditorState.editEnd;
|
||||||
|
|
||||||
if (storeFocusObjects.isEditCell !== isEditCell) {
|
if (storeFocusObjects.isEditCell !== isEditCell) {
|
||||||
storeFocusObjects.setEditCell(isEditCell);
|
storeFocusObjects.setEditCell(isEditCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isEditEnd) {
|
||||||
|
storeFocusObjects.setEditFormulaMode(false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const isFormula = state === Asc.c_oAscCellEditorState.editFormula;
|
const isFormula = state === Asc.c_oAscCellEditorState.editFormula;
|
||||||
|
|
||||||
if (storeFocusObjects.editFormulaMode !== isFormula) {
|
if (storeFocusObjects.editFormulaMode !== isFormula) {
|
||||||
storeFocusObjects.setEditFormulaMode(isFormula);
|
storeFocusObjects.setEditFormulaMode(isFormula);
|
||||||
}
|
}
|
||||||
|
@ -461,7 +468,7 @@ class MainController extends Component {
|
||||||
const { t } = this.props;
|
const { t } = this.props;
|
||||||
|
|
||||||
if (this.api.isReplaceAll) {
|
if (this.api.isReplaceAll) {
|
||||||
f7.dialog.alert(null, (found) ? ((!found - replaced) ? Common.Utils.String.format(t('Controller.Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Controller.Main.textReplaceSkipped'), found - replaced)) : t('Controller.Main.textNoTextFound'));
|
f7.dialog.alert(null, (found) ? ((!found - replaced) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)) : t('Controller.Main.textNoTextFound'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue