Commit d1a05d78 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51701 954022d7-b5bf-4e40-9824-e11837661b57
parent fafb016d
...@@ -3936,6 +3936,12 @@ CPresentation.prototype = ...@@ -3936,6 +3936,12 @@ CPresentation.prototype =
return bRetValue; return bRetValue;
}, },
Set_DocumentDefaultTab: function(DTab)
{
History.Add( this, { Type : historyitem_Document_DefaultTab, Old : Default_Tab_Stop, New : DTab } );
Default_Tab_Stop = DTab;
},
OnKeyPress : function(e) OnKeyPress : function(e)
{ {
if ( true === editor.isViewMode ) if ( true === editor.isViewMode )
...@@ -5448,6 +5454,12 @@ CPresentation.prototype = ...@@ -5448,6 +5454,12 @@ CPresentation.prototype =
switch ( Type ) switch ( Type )
{ {
case historyitem_Document_DefaultTab:
{
Default_Tab_Stop = Data.Old;
break;
}
case historyitem_Presenattion_AddSlide: case historyitem_Presenattion_AddSlide:
{ {
this.Slides.splice(Data.Pos, 1); this.Slides.splice(Data.Pos, 1);
...@@ -5520,6 +5532,12 @@ CPresentation.prototype = ...@@ -5520,6 +5532,12 @@ CPresentation.prototype =
switch ( Type ) switch ( Type )
{ {
case historyitem_Document_DefaultTab:
{
Default_Tab_Stop = Data.New;
break;
}
case historyitem_Presenattion_AddSlide: case historyitem_Presenattion_AddSlide:
{ {
this.Slides.splice(Data.Pos, 0, g_oTableId.Get_ById(Data.Id)); this.Slides.splice(Data.Pos, 0, g_oTableId.Get_ById(Data.Id));
...@@ -6640,6 +6658,14 @@ CPresentation.prototype = ...@@ -6640,6 +6658,14 @@ CPresentation.prototype =
switch ( Type ) switch ( Type )
{ {
case historyitem_Document_DefaultTab:
{
// Double : Default Tab
Writer.WriteDouble( Data.New );
break;
}
case historyitem_Presenattion_RemoveSlide: case historyitem_Presenattion_RemoveSlide:
case historyitem_Presenattion_AddSlide: case historyitem_Presenattion_AddSlide:
{ {
...@@ -6788,6 +6814,14 @@ CPresentation.prototype = ...@@ -6788,6 +6814,14 @@ CPresentation.prototype =
this.bGoToPage = true; this.bGoToPage = true;
break; break;
} }
case historyitem_Document_DefaultTab:
{
// Double : Default Tab
Default_Tab_Stop = Reader.GetDouble();
break;
}
} }
return true; return true;
}, },
......
...@@ -18,6 +18,7 @@ var historyitem_Document_RemoveItem = 2; // Удаляем элемент из ...@@ -18,6 +18,7 @@ var historyitem_Document_RemoveItem = 2; // Удаляем элемент из
var historyitem_Document_Margin = 3; // Меняем маргины(поля) документа var historyitem_Document_Margin = 3; // Меняем маргины(поля) документа
var historyitem_Document_PageSize = 4; // Меняем размер страницы у документа var historyitem_Document_PageSize = 4; // Меняем размер страницы у документа
var historyitem_Document_Orientation = 5; // Меняем ориентацию страниц у документа var historyitem_Document_Orientation = 5; // Меняем ориентацию страниц у документа
var historyitem_Document_DefaultTab = 6; // Меняем таб по умолчанию
// Типы изменений в классе Paragraph // Типы изменений в классе Paragraph
var historyitem_Paragraph_AddItem = 1; // Добавляем элемент в параграф var historyitem_Paragraph_AddItem = 1; // Добавляем элемент в параграф
......
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