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

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

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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53722 954022d7-b5bf-4e40-9824-e11837661b57
parent a185a0dd
......@@ -3455,6 +3455,8 @@ CDocument.prototype =
var Item = this.Content[this.Selection.EndPos];
if ( type_Paragraph == Item.GetType() )
{
if ( true !== Debug_ParaRunMode )
{
if ( false === Item.Is_SelectionUse() )
{
......@@ -3465,6 +3467,12 @@ CDocument.prototype =
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
}
else if ( type_Table == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
......@@ -3537,6 +3545,8 @@ CDocument.prototype =
this.Selection.EndPos = this.CurPos.ContentPos;
if ( type_Paragraph == Item.GetType() )
{
if ( true !== Debug_ParaRunMode )
{
if ( false === Item.Is_SelectionUse() )
{
......@@ -3547,6 +3557,12 @@ CDocument.prototype =
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
}
else if ( type_Table == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
......
......@@ -2552,6 +2552,8 @@ CDocumentContent.prototype =
var Item = this.Content[this.Selection.EndPos];
if ( type_Paragraph == Item.GetType() )
{
if ( true !== Debug_ParaRunMode )
{
if ( false === Item.Is_SelectionUse() )
{
......@@ -2562,6 +2564,12 @@ CDocumentContent.prototype =
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
}
else if ( type_Table == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
......@@ -2639,6 +2647,8 @@ CDocumentContent.prototype =
this.Selection.EndPos = this.CurPos.ContentPos;
if ( type_Paragraph == Item.GetType() )
{
if ( true !== Debug_ParaRunMode )
{
if ( false === Item.Is_SelectionUse() )
{
......@@ -2649,6 +2659,13 @@ CDocumentContent.prototype =
}
Item.Cursor_MoveLeft( 1, true, Word );
}
else
{
Item.Cursor_MoveToEndPos( true );
Item.Cursor_MoveLeft( 1, true, Word );
}
}
else if ( type_Table == Item.GetType() )
{
if ( false === Item.Is_SelectionUse() )
......
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