Delete unesessary macros for SelectTableCell

This commit is contained in:
EvgeniyIgol
2025-11-19 19:03:17 +03:00
parent f27557779b
commit 42fc690e67
3 changed files with 0 additions and 22 deletions

View File

@ -4799,7 +4799,6 @@
window['AscDFH'].historydescription_Spreadsheet_SelectRange = 0x01fa;
window['AscDFH'].historydescription_Spreadsheet_SetCellFormula = 0x01fb;
window['AscDFH'].historydescription_Document_AddCheckBoxLabel = 0x01fc;
window['AscDFH'].historydescription_Document_SelectTableCell = 0x01fd;
// pdf
window['AscDFH'].historydescription_Pdf_AddAnnot = 0x29a;

View File

@ -777,23 +777,6 @@
+ "\t\t(table && tableStyle) && table.SetStyle(tableStyle);\n"
+ "\t}());\n";
},
selectTableCell : function(prop){
let colsCount = prop.sizecol;
let numberOfCell = (prop.row * colsCount) + prop.col;
return "\t(function () {\n"
+ "\t\tlet table = doc.GetCurrentParagraph().GetParentTable();\n"
+ "\t\tif (table){\n"
+ "\t\t\tlet cell = table.GetCell(" + prop.row + ", " + prop.col + ");\n"
+ "\t\t\tlet content = cell.GetContent();\n"
+ "\t\t\tif (content){\n"
+ "\t\t\t\tlet arrContent = content.GetContent();\n"
+ "\t\t\t\tlet last = arrContent.length ? arrContent[arrContent.length - 1] : null;\n"
+ "\t\t\t\tif (last)\n"
+ "\t\t\t\t\tlast.Select();\n"
+ "\t\t\t}\n"
+ "\t\t}\n"
+ "\t}());\n";
},
addImage : function(image){
function PxToEMU96(px){ return px * 9525; }
function CmToPx96(cm){ return Math.round(cm * 96 / 2.54); }
@ -1055,7 +1038,6 @@
WordActionsMacroList[AscDFH.historydescription_Document_AddSectionBreak] = wordActions.addSectionBreak;
WordActionsMacroList[AscDFH.historydescription_Document_AddTable] = wordActions.addTable;
WordActionsMacroList[AscDFH.historydescription_Document_ApplyTablePr] = wordActions.applyTablePr;
WordActionsMacroList[AscDFH.historydescription_Document_SelectTableCell] = wordActions.selectTableCell;
WordActionsMacroList[AscDFH.historydescription_Document_AddChart] = wordActions.addChart;
WordActionsMacroList[AscDFH.historydescription_Document_AddImages] = wordActions.addImage;
WordActionsMacroList[AscDFH.historydescription_Document_AddHyperlink] = wordActions.addHyperlink;

View File

@ -5731,9 +5731,6 @@ CTable.prototype.Selection_SetEnd = function(X, Y, CurPage, MouseEvent)
&& this.Selection.StartPos.Pos.Row === this.Selection.EndPos.Pos.Row
&& this.Selection.StartPos.Pos.Cell === this.Selection.EndPos.Pos.Cell)
{
if (!(MouseEvent instanceof AscCommon.CMouseEventHandler))
LogicDocument.AddMacroData(AscDFH.historydescription_Document_SelectTableCell, {row: Pos.Row, col: Pos.Cell, sizecol: this.GetColsCount()});
this.private_SetSelectionData(null);
this.CurCell.Content_Selection_SetStart(this.Selection.StartPos.X, this.Selection.StartPos.Y, this.Selection.StartPos.PageIndex - this.CurCell.Content.GetRelativeStartPage(), this.Selection.StartPos.MouseEvent);