Example #1
0
 /// <summary>
 /// output an allocatedItem
 /// </summary>
 private void Output(RegionTag aTag, anAllocatedItem item, PointF basePt)
 {
     item.allocatedTag.needRedraw = false;
     //TODO: Clean up code
     if (item.allocatedTag is TextTag)
     {
         PointF     itemBasePoint = new PointF(item.actualRect().X + basePt.X, item.actualRect().Y + basePt.Y);
         RectangleF itemRect      = new RectangleF(itemBasePoint, new SizeF(item.allocatedRect.Width, item.allocatedRect.Height));
         outputTextTag(((TextTag)(item.allocatedTag)), itemRect, item.extraInfo);
     }
     else
     if (item.allocatedTag is ElementTag)
     {
         PointF     itemBasePoint = new PointF(item.actualRect().X + basePt.X, item.actualRect().Y + basePt.Y);
         RectangleF itemRect      = new RectangleF(itemBasePoint, new SizeF(item.allocatedRect.Width, item.allocatedRect.Height));
         outputElementTag(((ElementTag)(item.allocatedTag)), itemRect);
     }
     else
     if (item.allocatedTag is RegionTag)
     {
         RectangleF rect = ((RegionTag)(item.allocatedTag)).state.DrawableRect(item.allocatedRect, true);
         rect.Offset(basePt);
         {
             output((RegionTag)item.allocatedTag, rect);
         }
     }
 }
Example #2
0
 internal anAllocatedItem(HtmlTag aTag, hAlignType anAlign, float aLeft, float aTop, float aWidth, float aHeight,
                          Int32 aCurrentLine, Int32 anExtraInfo, anAllocatedItem aLink)
 {
     allocatedTag  = aTag;
     align         = anAlign;
     allocatedRect = new RectangleF(aLeft, aTop, aWidth, aHeight);
     currentLine   = aCurrentLine;
     extraInfo     = anExtraInfo;
     link          = aLink;
 }
Example #3
0
        internal anAllocatedItem link;                                  // Link to first item

        internal anAllocatedItem(HtmlTag aTag, hAlignType anAlign, RectangleF aRect, Int32 aCurrentLine,
                                 Int32 anExtraInfo, anAllocatedItem aLink)
        {
            allocatedTag  = aTag;
            align         = anAlign;
            allocatedRect = aRect;
            currentLine   = aCurrentLine;
            extraInfo     = anExtraInfo;
            link          = aLink;
        }
Example #4
0
 public bool Contains(anAllocatedItem value)
 {
     return(List.Contains(value));
 }
Example #5
0
 public void Remove(anAllocatedItem value)
 {
     List.Remove(value);
 }
Example #6
0
 internal void Insert(Int32 index, anAllocatedItem value)
 {
     List.Insert(index, value);
 }
Example #7
0
 public Int32 Add(anAllocatedItem value)
 {
     List.Add(value);
     return(List.Count - 1);
 }
Example #8
0
 private void setItem(Int32 aIndex, anAllocatedItem value)
 {
     List[aIndex] = value;
 }