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

Реализовано, чтобы работала функция Increase/Decrease Indent, когда выделено...

Реализовано, чтобы работала функция Increase/Decrease Indent, когда выделено изображение (баг 11864).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48074 954022d7-b5bf-4e40-9824-e11837661b57
parent be9500cf
......@@ -5043,10 +5043,24 @@ CDocument.prototype =
}
else if ( docpostype_DrawingObjects === this.CurPos.Type )
{
var bRetValue = this.DrawingObjects.paragraphIncDecIndent(bIncrease);
if ( true != this.DrawingObjects.isSelectedText() )
{
var ParaDrawing = this.DrawingObjects.getMajorParaDrawing();
if ( null != ParaDrawing )
{
var Paragraph = ParaDrawing.Parent;
Paragraph.IncDec_Indent(bIncrease);
this.Recalculate();
}
}
else
{
this.DrawingObjects.paragraphIncDecIndent(bIncrease);
}
this.Document_UpdateSelectionState();
this.Document_UpdateInterfaceState();
return bRetValue;
return;
}
else //if ( docpostype_Content === this.CurPos.Type )
{
......
......@@ -5147,7 +5147,23 @@ CDocumentContent.prototype =
}
if ( docpostype_DrawingObjects === this.CurPos.Type )
return this.LogicDocument.DrawingObjects.paragraphIncDecIndent( bIncrease );
{
if ( true != this.LogicDocument.DrawingObjects.isSelectedText() )
{
var ParaDrawing = this.LogicDocument.DrawingObjects.getMajorParaDrawing();
if ( null != ParaDrawing )
{
var Paragraph = ParaDrawing.Parent;
Paragraph.IncDec_Indent(bIncrease);
this.Recalculate();
}
}
else
{
this.DrawingObjects.paragraphIncDecIndent(bIncrease);
}
return;
}
else //if ( docpostype_Content === this.CurPos.Type )
{
if ( this.CurPos.ContentPos < 0 )
......
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