Commit 6626638c authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Сделана отрисовка селекта в новом параграфе. Сделана обработка добавления и...

Сделана отрисовка селекта в новом параграфе. Сделана обработка добавления и продолжения селекта с помощью клавиш вправо/влево/home/end.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53722 954022d7-b5bf-4e40-9824-e11837661b57
parent 39849c71
......@@ -3456,14 +3456,22 @@ CDocument.prototype =
if ( type_Paragraph == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
if ( true !== Debug_ParaRunMode )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
if ( false === Item.Is_SelectionUse() )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else if ( type_Table == Item.GetType() )
{
......@@ -3538,14 +3546,22 @@ CDocument.prototype =
if ( type_Paragraph == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
if ( true !== Debug_ParaRunMode )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
if ( false === Item.Is_SelectionUse() )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else if ( type_Table == Item.GetType() )
{
......
......@@ -2553,14 +2553,22 @@ CDocumentContent.prototype =
var Item = this.Content[this.Selection.EndPos];
if ( type_Paragraph == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
if ( true !== Debug_ParaRunMode )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
if ( false === Item.Is_SelectionUse() )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else if ( type_Table == Item.GetType() )
{
......@@ -2640,14 +2648,23 @@ CDocumentContent.prototype =
if ( type_Paragraph == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
if ( true !== Debug_ParaRunMode )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
if ( false === Item.Is_SelectionUse() )
{
Item.CurPos.ContentPos = Item.Content.length - 1;
Item.Selection.Use = true;
Item.Selection.StartPos = Item.Content.length - 1;
Item.Selection.EndPos = Item.Content.length - 1;
}
Item.Cursor_MoveLeft( 1, true, Word );
}
Item.Cursor_MoveLeft( 1, true, Word );
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
}
else if ( type_Table == Item.GetType() )
{
......
This diff is collapsed.
This diff is collapsed.
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