Пример #1
0
 /// <summary>
 /// Generate the content
 /// </summary>
 /// <param name="list">list of sized rectangle</param>
 internal void GenerateContent(List <AreaSizedRectangle> list)
 {
     if (this.Type == RefObject.MasterPage)
     {
         MasterPage mp = this.Destination;
         mp.HorizontalZones.Clear();
         mp.MakeZones(list);
         this.FillContainerObject(mp.HorizontalZones, mp.Objects);
         SizeCompute.ComputeMasterPage(Project.CurrentProject, mp);
     }
     else if (this.Type == RefObject.Page)
     {
         Page       p  = this.Destination;
         MasterPage mp = this.SecondObject;
         p.MasterPageName = mp.Name;
         mp.HorizontalZones.Clear();
         mp.MakeZones(list);
         this.FillContainerObject(mp.HorizontalZones, mp.Objects);
         SizeCompute.ComputePage(Project.CurrentProject, p);
     }
     else if (this.Type == RefObject.MasterObject)
     {
         MasterObject mo = this.Destination;
         mo.HorizontalZones.Clear();
         mo.MakeZones(list);
         this.FillContainerObject(mo.HorizontalZones, mo.Objects);
         SizeCompute.ComputeMasterObject(Project.CurrentProject, mo);
     }
     else if (this.Type == RefObject.Tool)
     {
         HTMLTool     obj = this.Destination;
         MasterObject mo  = this.SecondObject;
         mo.HorizontalZones.Clear();
         mo.MakeZones(list);
         this.FillContainerObject(mo.HorizontalZones, mo.Objects);
         SizeCompute.ComputeHTMLObject(Project.CurrentProject, new HTMLObject(obj));
     }
 }
Пример #2
0
 /// <summary>
 /// Construct all zones and compute total size
 /// </summary>
 /// <param name="list">list of rectangle the user supplied</param>
 public void MakeZones(List <AreaSizedRectangle> list)
 {
     MasterPage.MakeZones(this.CountColumns, this.CountLines, list, this.HorizontalZones, this.Width, this.Height, this.ConstraintWidth, this.ConstraintHeight);
 }