Commit 59828f2a authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

copy/paste desktop (presentations)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62101 954022d7-b5bf-4e40-9824-e11837661b57
parent d5170381
...@@ -1407,16 +1407,61 @@ asc_docs_api.prototype.Undo = function(){ ...@@ -1407,16 +1407,61 @@ asc_docs_api.prototype.Undo = function(){
asc_docs_api.prototype.Redo = function(){ asc_docs_api.prototype.Redo = function(){
this.WordControl.m_oLogicDocument.Document_Redo(); this.WordControl.m_oLogicDocument.Document_Redo();
}; };
asc_docs_api.prototype.Copy = function(){ asc_docs_api.prototype.Copy = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 67;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
return Editor_Copy_Button(this); return Editor_Copy_Button(this);
}; };
asc_docs_api.prototype.Update_ParaTab = function(Default_Tab, ParaTabs){ asc_docs_api.prototype.Update_ParaTab = function(Default_Tab, ParaTabs){
this.WordControl.m_oDrawingDocument.Update_ParaTab(Default_Tab, ParaTabs); this.WordControl.m_oDrawingDocument.Update_ParaTab(Default_Tab, ParaTabs);
}; };
asc_docs_api.prototype.Cut = function(){ asc_docs_api.prototype.Cut = function()
return Editor_Copy_Button(this, true) {
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 88;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
return Editor_Copy_Button(this, true);
}; };
asc_docs_api.prototype.Paste = function(){ asc_docs_api.prototype.Paste = function()
{
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = new CKeyboardEvent();
_e.CtrlKey = true;
_e.KeyCode = 86;
this.WordControl.m_oLogicDocument.OnKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props)) if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Drawing_Props))
{ {
if (!window.GlobalPasteFlag) if (!window.GlobalPasteFlag)
......
...@@ -2220,7 +2220,7 @@ asc_docs_api.prototype.Copy = function() ...@@ -2220,7 +2220,7 @@ asc_docs_api.prototype.Copy = function()
return; return;
} }
return Editor_Copy_Button(this) return Editor_Copy_Button(this);
}; };
asc_docs_api.prototype.Update_ParaTab = function(Default_Tab, ParaTabs){ asc_docs_api.prototype.Update_ParaTab = function(Default_Tab, ParaTabs){
this.WordControl.m_oDrawingDocument.Update_ParaTab(Default_Tab, ParaTabs); this.WordControl.m_oDrawingDocument.Update_ParaTab(Default_Tab, ParaTabs);
......
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