[se] Update macro actions for cell

This commit is contained in:
EvgeniyIgol
2025-10-17 10:31:50 +03:00
parent 9374f83738
commit 430ae45782
3 changed files with 53 additions and 11 deletions

View File

@ -16874,7 +16874,7 @@ function isAllowPasteLink(pastedWb) {
//"shrink": AscDFH.historydescription_Spreadsheet_SetCellShrinkToFit,
"value": AscDFH.historydescription_Spreadsheet_SetCellValue,
//"totalRowFunc": AscDFH.historydescription_Spreadsheet_SetTotalRowFunction,
//"format": AscDFH.historydescription_Spreadsheet_SetCellFormat,
"format": AscDFH.historydescription_Spreadsheet_SetCellFormat,
"angle": AscDFH.historydescription_Spreadsheet_SetCellAngle,
//"indent": AscDFH.historydescription_Spreadsheet_SetCellIndent,
//"applyProtection": AscDFH.historydescription_Spreadsheet_SetCellApplyProtection,
@ -16882,11 +16882,11 @@ function isAllowPasteLink(pastedWb) {
//"hiddenFormulas": AscDFH.historydescription_Spreadsheet_SetCellHiddenFormulas,
//"rh": AscDFH.historydescription_Spreadsheet_SetCellHyperlinkRemove,
"border": AscDFH.historydescription_Spreadsheet_SetCellBorder,
//"merge": AscDFH.historydescription_Spreadsheet_SetCellMerge,
//"sort": AscDFH.historydescription_Spreadsheet_SetCellSort,
"merge": AscDFH.historydescription_Spreadsheet_SetCellMerge,
"sort": AscDFH.historydescription_Spreadsheet_SetCellSort,
//"customSort": AscDFH.historydescription_Spreadsheet_SetCellCustomSort,
//"empty": AscDFH.historydescription_Spreadsheet_SetCellEmpty,
//"changeDigNum": AscDFH.historydescription_Spreadsheet_SetCellChangeDigNum,
"empty": AscDFH.historydescription_Spreadsheet_SetCellEmpty,
"changeDigNum": AscDFH.historydescription_Spreadsheet_SetCellChangeDigNum,
"changeFontSize": AscDFH.historydescription_Spreadsheet_SetCellChangeFontSize,
//"style": AscDFH.historydescription_Spreadsheet_SetCellStyle,
//"paste": AscDFH.historydescription_Spreadsheet_SetCellPaste,
@ -16894,6 +16894,15 @@ function isAllowPasteLink(pastedWb) {
"changeTextCase": AscDFH.historydescription_Spreadsheet_SetCellChangeTextCase
};
if (prop === "changeDigNum")
{
let activeCell = this.model.selectionRange.activeCell.clone();
let colWidth = this.getColumnWidthInSymbols(activeCell.col);
let cell = this.model.getRange3(activeCell.row, activeCell.col, activeCell.row, activeCell.col);
let changeDigNumFormat = cell.getShiftedNumFormat(val, colWidth);
val = changeDigNumFormat;
}
if (prop === "fa") {
switch (val) {
case 0: return {nDescription: AscDFH.historydescription_Spreadsheet_SetCellSuperscript, additional: {val: false}};