Commit 17b4c961 authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

[ios] operation cut

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68529 954022d7-b5bf-4e40-9824-e11837661b57
parent 48b5ffb9
......@@ -4917,7 +4917,6 @@ function offline_copy() {
if (_api.wb.cellEditor.isOpened) {
var v = _api.wb.cellEditor.copySelection();
if (v) {
//if (v) { _api.wb.clipboard.copyCellValue(v);}
sBase64.text = _api.wb.cellEditor._getFragmentsText(v);
sBase64.sBase64 = '';
sBase64.drawingUrls = null;
......@@ -4979,7 +4978,22 @@ function offline_paste(params) {
}
function offline_cut() {
var worksheet = _api.wb.getWorksheet();
var sBase64 = _api.wb.clipboard.getSelectedBinary(true);
var sBase64 = {};
if (_api.wb.cellEditor.isOpened) {
var v = _api.wb.cellEditor.copySelection();
if (v) {
sBase64.text = _api.wb.cellEditor._getFragmentsText(v);
sBase64.sBase64 = '';
sBase64.drawingUrls = null;
_api.wb.cellEditor.cutSelection();
}
}
else {
sBase64 = _api.wb.clipboard.getSelectedBinary(true);
worksheet.emptySelection(c_oAscCleanOptions.All);
}
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
......@@ -4995,20 +5009,16 @@ function offline_cut() {
_stream["WriteByte"](0);
_stream["WriteString2"](sBase64.text);
// // image
// if (null != sBase64.drawingUrls && sBase64.drawingUrls.length > 0)
// {
// _stream["WriteByte"](1);
// _stream["WriteStringA"](sBase64.drawingUrls[0]);
// }
// image
if (null != sBase64.drawingUrls && sBase64.drawingUrls.length > 0)
{
_stream["WriteByte"](1);
_stream["WriteStringA"](sBase64.drawingUrls[0]);
}
// owner format
_stream["WriteByte"](2);
_stream["WriteStringA"](sBase64.sBase64);
_stream["WriteByte"](3);
_stream["WriteString2"](sBase64.html);
_stream["WriteByte"](255);
return _stream;
......
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