Commit 0f94a687 authored by GoshaZotov's avatar GoshaZotov

add asc_SelectionCut

parent d66d422e
......@@ -538,7 +538,13 @@ var editor;
var result = this.wb.checkCopyToClipboard(_clipboard, _formats);
return result;
};
spreadsheet_api.prototype.asc_SelectionCut = function()
{
var result = this.wb.selectionCut();
return result;
};
spreadsheet_api.prototype.asc_bIsEmptyClipboard = function() {
var result = this.wb.bIsEmptyClipboard();
this.wb.restoreFocus();
......
......@@ -1968,6 +1968,16 @@
t.clipboard.pasteData(ws, _format, data1, data2);
};
WorkbookView.prototype.selectionCut = function() {
var t = this, ws;
if (!t.getCellEditMode()) {
ws = t.getWorksheet();
ws.emptySelection(c_oAscCleanOptions.All);
} else {
t.cellEditor.cutSelection();
}
};
WorkbookView.prototype.undo = function() {
var oFormulaLocaleInfo = AscCommonExcel.oFormulaLocaleInfo;
oFormulaLocaleInfo.Parse = false;
......
......@@ -1936,6 +1936,30 @@ background-repeat: no-repeat;\
}
};
asc_docs_api.prototype.asc_IsFocus = function(bIsNaturalFocus)
{
var _ret = false;
if (this.WordControl.IsFocus)
_ret = true;
if (_ret && bIsNaturalFocus && this.WordControl.TextBoxInputFocus)
_ret = false;
return _ret;
};
asc_docs_api.prototype.asc_SelectionCut = function()
{
var _logicDoc = this.WordControl.m_oLogicDocument;
if (!_logicDoc)
return;
if (false === _logicDoc.Document_Is_SelectionLocked(changestype_Paragraph_Content))
{
History.Create_NewPoint(AscDFH.historydescription_Cut);
_logicDoc.Remove(1, true, true);
_logicDoc.Document_UpdateSelectionState();
}
};
asc_docs_api.prototype.onSaveCallback = function(e)
{
var t = this;
......
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