Ejemplo n.º 1
0
 public PDFFloatAddition(FloatMode mode, PDFUnit floatWidth, PDFUnit floatheight, PDFUnit floatInset, PDFUnit yoffset, PDFFloatAddition prev)
 {
     this.Mode        = mode;
     this.FloatWidth  = floatWidth;
     this.FloatHeight = floatheight;
     this.FloatInset  = floatInset;
     this.YOffset     = yoffset;
     this.Prev        = prev;
 }
Ejemplo n.º 2
0
        public virtual void AddFloatingInset(FloatMode mode, PDFUnit floatWidth, PDFUnit floatInset, PDFUnit offsetY, PDFUnit floatHeight)
        {
            var line = this.CurrentItem as PDFLayoutLine;

            //If we have a current line and the float is on this line
            if (null != line && line.OffsetY >= offsetY)
            {
                line.SetMaxWidth(line.FullWidth - floatWidth);
            }

            if (mode == FloatMode.Left)
            {
                this.Floats = new PDFFloatLeftAddition(floatWidth, floatHeight, floatInset, offsetY, this.Floats);
            }
            else if (mode == FloatMode.Right)
            {
                this.Floats = new PDFFloatRightAddition(floatWidth, floatHeight, floatInset, offsetY, this.Floats);
            }
        }
Ejemplo n.º 3
0
 public PDFFloatRightAddition(PDFUnit floatWidth, PDFUnit floatHeight, PDFUnit floatInset, PDFUnit yoffset, PDFFloatAddition prev)
     : base(FloatMode.Right, floatWidth, floatHeight, floatInset, yoffset, prev)
 {
 }