Commit 2d51c658 authored by Ilya Kirillov's avatar Ilya Kirillov

Implemented searching for class CBlockLevelSdt.

parent 4f68a25f
...@@ -1352,6 +1352,17 @@ ParaMath.prototype.Search_GetId = function(bNext, bUseContentPos, ContentPos, De ...@@ -1352,6 +1352,17 @@ ParaMath.prototype.Search_GetId = function(bNext, bUseContentPos, ContentPos, De
return this.Root.Search_GetId(bNext, bUseContentPos, ContentPos, Depth); return this.Root.Search_GetId(bNext, bUseContentPos, ContentPos, Depth);
//return null; //return null;
}; };
//----------------------------------------------------------------------------------------------------------------------
// CBLockLevelSdt
//----------------------------------------------------------------------------------------------------------------------
CBlockLevelSdt.prototype.Search = function(Str, Props, SearchEngine, Type)
{
this.Content.Search(Str, Props, SearchEngine, Type);
};
CBlockLevelSdt.prototype.Search_GetId = function(bNext, bCurrent)
{
return this.Content.Search_GetId(bNext, bCurrent);
};
//---------------------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------------------
// Вспомогательные классы для поиска внутри параграфа // Вспомогательные классы для поиска внутри параграфа
......
...@@ -484,7 +484,7 @@ function TEST_ADD_SDT2() ...@@ -484,7 +484,7 @@ function TEST_ADD_SDT2()
oLogicDocument.Create_NewHistoryPoint(); oLogicDocument.Create_NewHistoryPoint();
var oSdt = oLogicDocument.AddContentControl(); var oSdt = oLogicDocument.AddContentControl(AscCommonWord.sdttype_BlockLevel);
oSdt.AddToParagraph(new ParaText("S")); oSdt.AddToParagraph(new ParaText("S"));
oSdt.AddToParagraph(new ParaText("d")); oSdt.AddToParagraph(new ParaText("d"));
oSdt.AddToParagraph(new ParaText("t")); oSdt.AddToParagraph(new ParaText("t"));
......
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