Commit ce02cde3 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

добавил в api функцию asc_bIsEmptyClipboard, которая отдаёт, содержатся ли...

добавил в api функцию asc_bIsEmptyClipboard, которая отдаёт, содержатся ли данные в локальном буфере обмена

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60509 954022d7-b5bf-4e40-9824-e11837661b57
parent de6e5cea
......@@ -614,6 +614,12 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.wb.restoreFocus();
return result;
};
spreadsheet_api.prototype.asc_bIsEmptyClipboard = function(){
var result = this.wb.bIsEmptyClipboard();
this.wb.restoreFocus();
return result;
};
spreadsheet_api.prototype.asc_Undo = function(){
this.wb.undo();
......
......@@ -802,6 +802,17 @@
return false;
},
bIsEmptyClipboard: function(isCellEditMode)
{
var result = false;
if(isCellEditMode && (!t.lStorageText || t.lStorageText == null || t.lStorageText == ""))
result = true;
else if(!isCellEditMode && !t.lStorage)
result = true;
return result;
},
// Private
_cleanElement: function () {
......
......@@ -1704,6 +1704,13 @@
}
};
WorkbookView.prototype.bIsEmptyClipboard = function () {
var t = this, ws, v;
var result = t.clipboard.bIsEmptyClipboard(t.controller.isCellEditMode);
return result;
};
WorkbookView.prototype.cutToClipboardButton = function () {
var t = this, ws, v;
if (!t.controller.isCellEditMode) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment