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

Добавлены типы обтекания для рамки.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55769 954022d7-b5bf-4e40-9824-e11837661b57
parent 6f793057
......@@ -75,6 +75,8 @@ function CFlowTable(Table, PageIndex)
this.Y = Bounds.Top;
this.W = Bounds.Right - Bounds.Left;
this.H = Bounds.Bottom - Bounds.Top;
this.WrappingType = WRAPPING_TYPE_SQUARE;
};
CFlowTable.prototype =
......@@ -100,7 +102,7 @@ CFlowTable.prototype =
};
function CFlowParagraph(Paragraph, X, Y, W, H, Dx, Dy, StartIndex, FlowCount)
function CFlowParagraph(Paragraph, X, Y, W, H, Dx, Dy, StartIndex, FlowCount, Wrap)
{
this.Table = Paragraph;
this.Paragraph = Paragraph;
......@@ -124,6 +126,19 @@ function CFlowParagraph(Paragraph, X, Y, W, H, Dx, Dy, StartIndex, FlowCount)
this.Y = Y;
this.W = W;
this.H = H;
this.WrappingType = WRAPPING_TYPE_SQUARE;
switch (Wrap)
{
case undefined:
case wrap_Around:
case wrap_Auto: this.WrappingType = WRAPPING_TYPE_SQUARE; break;
case wrap_None: this.WrappingType = WRAPPING_TYPE_NONE; break;
case wrap_NotBeside: this.WrappingType = WRAPPING_TYPE_TOP_AND_BOTTOM; break;
case wrap_Through: this.WrappingType = WRAPPING_TYPE_THROUGH; break;
case wrap_Tight: this.WrappingType = WRAPPING_TYPE_TIGHT; break;
}
}
CFlowParagraph.prototype =
......
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