1
0
mirror of https://github.com/ONLYOFFICE/sdkjs.git synced 2025-04-18 14:24:11 +03:00

Add new function Delete in ApiComment and ApiWorksheet

This commit is contained in:
Alexey Matveev 2019-02-08 10:39:47 +03:00
parent 307d7d3d15
commit 749c9c6437
2 changed files with 21 additions and 2 deletions

View File

@ -26,11 +26,11 @@ Selection
* Add new classes in apiBuilder: ApiName, ApiComment.
* Add new functions in ApiName: GetName, SetName, Delete, GetRefersTo, SetRefersTo and properties: Name, RefersTo.
* Add new functions in ApiRange: GetDefName, GetRows, Clear, GetWorksheet, GetComment, Select and propoerties: DefName, Rows, Worksheet, Comment.
* Add new functions in ApiWorksheet: GetDefNames, GetDefName, AddDefName SetActive, GetComments and propoerties: DefNames, Active, Comments.
* Add new functions in ApiWorksheet: GetDefNames, GetDefName, AddDefName SetActive, GetComments, Delete and propoerties: DefNames, Active, Comments.
* Add new functions in Api: Intersect, GetSelection, GetDefName, AddDefName and propoerty: Selection.
* Add new functions in WorkBook: addDefName, getDefinedNamesWS.
* Add new function in DependencyGraph: getDefinedNamesWS.
Add new function in ApiComment: GetText and property: Text.
Add new functions in ApiComment: GetText, Delete and property: Text.
### Presentation Editor
*

View File

@ -861,6 +861,14 @@
}
});
/**
* Deletes the object.
* @memberof ApiWorksheet
*/
ApiWorksheet.prototype.Delete = function () {
this.worksheet.workbook.removeWorksheet(this.worksheet.getIndex());
};
/**
* Add Hyperlink
* @memberof ApiWorksheet
@ -2430,6 +2438,15 @@
}
});
/**
* Deletes the object.
* @typeofeditors ["CSE"]
* @memberof ApiComment
*/
ApiComment.prototype.Delete = function () {
this.Comment.worksheet.cellCommentator.removeComment(this.Comment.asc_getId());
};
Api.prototype["Format"] = Api.prototype.Format;
Api.prototype["AddSheet"] = Api.prototype.AddSheet;
Api.prototype["GetSheets"] = Api.prototype.GetSheets;
@ -2480,6 +2497,7 @@
ApiWorksheet.prototype["GetDefName"] = ApiWorksheet.prototype.GetDefName;
ApiWorksheet.prototype["AddDefName"] = ApiWorksheet.prototype.AddDefName;
ApiWorksheet.prototype["GetComments"] = ApiWorksheet.prototype.GetComments;
ApiWorksheet.prototype["Delete"] = ApiWorksheet.prototype.Delete;
ApiWorksheet.prototype["SetHyperlink"] = ApiWorksheet.prototype.SetHyperlink;
ApiWorksheet.prototype["AddChart"] = ApiWorksheet.prototype.AddChart;
ApiWorksheet.prototype["AddShape"] = ApiWorksheet.prototype.AddShape;
@ -2576,6 +2594,7 @@
ApiComment.prototype["GetText"] = ApiComment.prototype.GetText;
ApiComment.prototype["Delete"] = ApiComment.prototype.Delete;
function private_SetCoords(oDrawing, oWorksheet, nExtX, nExtY, nFromCol, nColOffset, nFromRow, nRowOffset, pos){