Ejemplo n.º 1
0
 private void LayoutStaticContent(Flow.Flow flow, Region region,
                                  AreaContainer area)
 {
     if (flow is StaticContent)
     {
         ((StaticContent)flow).Layout(area, region);
     }
     else
     {
         FonetDriver.ActiveDriver.FireFonetError(region.GetName()
             + " only supports static-content flows currently. "
             + "Cannot use flow named '"
             + flow.GetFlowName() + "'");
     }
 }
Ejemplo n.º 2
0
 public void AddFlow(Flow.Flow flow)
 {
     if (_flowMap.ContainsKey(flow.GetFlowName()))
     {
         throw new FonetException("flow-names must be unique within an fo:page-sequence");
     }
     if (!this.layoutMasterSet.regionNameExists(flow.GetFlowName()))
     {
         FonetDriver.ActiveDriver.FireFonetError(
             "region-name '" + flow.GetFlowName() + "' doesn't exist in the layout-master-set.");
     }
     _flowMap.Add(flow.GetFlowName(), flow);
     IsFlowSet = true;
 }