Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
0f94a687
Commit
0f94a687
authored
Jun 23, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add asc_SelectionCut
parent
d66d422e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletion
+41
-1
cell/api.js
cell/api.js
+7
-1
cell/view/WorkbookView.js
cell/view/WorkbookView.js
+10
-0
slide/api.js
slide/api.js
+24
-0
No files found.
cell/api.js
View file @
0f94a687
...
@@ -538,7 +538,13 @@ var editor;
...
@@ -538,7 +538,13 @@ var editor;
var
result
=
this
.
wb
.
checkCopyToClipboard
(
_clipboard
,
_formats
);
var
result
=
this
.
wb
.
checkCopyToClipboard
(
_clipboard
,
_formats
);
return
result
;
return
result
;
};
};
spreadsheet_api
.
prototype
.
asc_SelectionCut
=
function
()
{
var
result
=
this
.
wb
.
selectionCut
();
return
result
;
};
spreadsheet_api
.
prototype
.
asc_bIsEmptyClipboard
=
function
()
{
spreadsheet_api
.
prototype
.
asc_bIsEmptyClipboard
=
function
()
{
var
result
=
this
.
wb
.
bIsEmptyClipboard
();
var
result
=
this
.
wb
.
bIsEmptyClipboard
();
this
.
wb
.
restoreFocus
();
this
.
wb
.
restoreFocus
();
...
...
cell/view/WorkbookView.js
View file @
0f94a687
...
@@ -1968,6 +1968,16 @@
...
@@ -1968,6 +1968,16 @@
t
.
clipboard
.
pasteData
(
ws
,
_format
,
data1
,
data2
);
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
()
{
WorkbookView
.
prototype
.
undo
=
function
()
{
var
oFormulaLocaleInfo
=
AscCommonExcel
.
oFormulaLocaleInfo
;
var
oFormulaLocaleInfo
=
AscCommonExcel
.
oFormulaLocaleInfo
;
oFormulaLocaleInfo
.
Parse
=
false
;
oFormulaLocaleInfo
.
Parse
=
false
;
...
...
slide/api.js
View file @
0f94a687
...
@@ -1936,6 +1936,30 @@ background-repeat: no-repeat;\
...
@@ -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
)
asc_docs_api
.
prototype
.
onSaveCallback
=
function
(
e
)
{
{
var
t
=
this
;
var
t
=
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment