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

Исправлен баг с получением выделенного текста в таблице (баг 18949).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49373 954022d7-b5bf-4e40-9824-e11837661b57
parent 268f675d
......@@ -3252,7 +3252,7 @@ CDocumentContent.prototype =
for ( var Index = 0; Index < Count; Index++ )
{
this.Content[Index].Set_ApplyToAll(true);
ResultText += this.Content[Index].Get_SelectedText( true );
ResultText += this.Content[Index].Get_SelectedText( false );
this.Content[Index].Set_ApplyToAll(false);
}
......
......@@ -8343,6 +8343,38 @@ Paragraph.prototype =
// Возвращаем выделенный текст
Get_SelectedText : function(bClearText)
{
if ( true === this.ApplyToAll )
{
var Str = "";
var Count = this.Content.length;
for ( var Pos = 0; Pos < Count; Pos++ )
{
var Item = this.Content[Pos];
switch ( Item.Type )
{
case para_Drawing:
case para_End:
case para_Numbering:
case para_PresentationNumbering:
case para_PageNum:
{
if ( true === bClearText )
return null;
break;
}
case para_Text : Str += Item.Value; break;
case para_Space:
case para_Tab : Str += " "; break;
}
}
return Str;
}
if ( true === this.Selection.Use )
{
var StartPos = this.Selection.StartPos;
......
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