mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
Delete unesessary macros for SelectTableCell
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user