Commit d77b5259 authored by Ilya.Kirillov's avatar Ilya.Kirillov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55046 954022d7-b5bf-4e40-9824-e11837661b57
parent bf8a8293
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Created by Ilja.Kirillov on 18.03.14. * Created by Ilja.Kirillov on 18.03.14.
*/ */
function ParaMath2() function ParaMath()
{ {
this.Id = g_oIdCounter.Get_NewId(); this.Id = g_oIdCounter.Get_NewId();
...@@ -33,7 +33,7 @@ function ParaMath2() ...@@ -33,7 +33,7 @@ function ParaMath2()
g_oTableId.Add( this, this.Id ); g_oTableId.Add( this, this.Id );
} }
ParaMath2.prototype = ParaMath.prototype =
{ {
Get_Id : function() Get_Id : function()
{ {
......
...@@ -8688,10 +8688,6 @@ Paragraph.prototype = ...@@ -8688,10 +8688,6 @@ Paragraph.prototype =
if ( para_Math !== this.Content[CurPos].Type ) if ( para_Math !== this.Content[CurPos].Type )
{ {
// TODO: ParaMath Как избавимся от старого варианта переделать здесь
var ParaMath = new ParaMath2();
ParaMath.Math = Item.Math;
// Разделяем текущий элемент (возвращается правая часть) // Разделяем текущий элемент (возвращается правая часть)
var NewElement = this.Content[CurPos].Split( ContentPos, 1 ); var NewElement = this.Content[CurPos].Split( ContentPos, 1 );
...@@ -8699,7 +8695,7 @@ Paragraph.prototype = ...@@ -8699,7 +8695,7 @@ Paragraph.prototype =
this.Internal_Content_Add( CurPos + 1, NewElement ); this.Internal_Content_Add( CurPos + 1, NewElement );
// Добавляем гиперссылку в содержимое параграфа // Добавляем гиперссылку в содержимое параграфа
this.Internal_Content_Add( CurPos + 1, ParaMath ); this.Internal_Content_Add( CurPos + 1, Item );
// TODO: ParaMath Сделать перемещение курсора в формулу // TODO: ParaMath Сделать перемещение курсора в формулу
......
...@@ -1591,25 +1591,25 @@ ParaComment.prototype.Search_GetId = function(bNext, bUseContentPos, ContentPos, ...@@ -1591,25 +1591,25 @@ ParaComment.prototype.Search_GetId = function(bNext, bUseContentPos, ContentPos,
//---------------------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------------------
// ParaMath // ParaMath
//---------------------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------------------
ParaMath2.prototype.Search = function(ParaSearch, Depth) ParaMath.prototype.Search = function(ParaSearch, Depth)
{ {
// Обнуляем поиск // Обнуляем поиск
ParaSearch.Reset(); ParaSearch.Reset();
}; };
ParaMath2.prototype.Add_SearchResult = function(SearchResult, Start, ContentPos, Depth) ParaMath.prototype.Add_SearchResult = function(SearchResult, Start, ContentPos, Depth)
{ {
}; };
ParaMath2.prototype.Clear_SearchResults = function() ParaMath.prototype.Clear_SearchResults = function()
{ {
}; };
ParaMath2.prototype.Remove_SearchResult = function(SearchResult) ParaMath.prototype.Remove_SearchResult = function(SearchResult)
{ {
}; };
ParaMath2.prototype.Search_GetId = function(bNext, bUseContentPos, ContentPos, Depth) ParaMath.prototype.Search_GetId = function(bNext, bUseContentPos, ContentPos, Depth)
{ {
return null; return null;
}; };
......
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