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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60328 954022d7-b5bf-4e40-9824-e11837661b57
parent 4c2c5ea5
......@@ -4686,7 +4686,7 @@ function CThumbnailsManager()
_presentation.Recalculate();
_presentation.Document_UpdateInterfaceState();
}
return false;
//return false;
}
}
var drDoc = this.m_oWordControl.m_oDrawingDocument;
......@@ -4924,7 +4924,7 @@ function CThumbnailsManager()
_presentation.Recalculate();
_presentation.Document_UpdateInterfaceState();
}
return false;
//return false;
}
}
var drDoc = this.m_oWordControl.m_oDrawingDocument;
......
......@@ -1755,6 +1755,22 @@ function CEditorPage(api)
return false;
}
var _ctrl = false;
if (e.metaKey !== undefined)
_ctrl = e.ctrlKey || e.metaKey;
else
_ctrl = e.ctrlKey;
if (true === _ctrl)
{
if (e.preventDefault)
e.preventDefault();
else
e.returnValue = false;
return false;
}
var delta = 0;
var deltaX = 0;
var deltaY = 0;
......
......@@ -1995,7 +1995,6 @@ CPresentation.prototype =
{
if ( true === e.ShiftKey ) // Ctrl + Shift + V - вставляем по образцу
{
this.Create_NewHistoryPoint();
this.Document_Format_Paste();
bRetValue = true;
}
......@@ -2373,7 +2372,10 @@ CPresentation.prototype =
this.CopyParaPr = this.Get_Paragraph_ParaPr_Copy();
},
Document_Format_Paste : function()
{
// TODO: (начать с создания точки истории, либо добавить ее при обработке клавиш)
},
// Возвращаем выделенный текст, если в выделении не более 1 параграфа, и там нет картинок, нумерации страниц и т.д.
Get_SelectedText : function(bClearText)
......
......@@ -4583,8 +4583,12 @@ asc_docs_api.prototype.asyncImageEndLoaded2 = null;
asc_docs_api.prototype.ChangeTheme = function(indexTheme)
{
if (true === CollaborativeEditing.Get_GlobalLock())
return;
if (!this.isViewMode && this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Theme) === false)
{
CollaborativeEditing.m_bGlobalLock = true;
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint();
this.ThemeLoader.StartLoadTheme(indexTheme);
}
......@@ -4597,6 +4601,8 @@ asc_docs_api.prototype.EndLoadTheme = function(theme_load_info)
{
this.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.LoadTheme);
CollaborativeEditing.m_bGlobalLock = false;
// применение темы
var _array = this.WordControl.Thumbnails.GetSelectedArray();
this.WordControl.m_oLogicDocument.changeTheme(theme_load_info, _array.length <= 1 ? null : _array);
......
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