Example #1
0
 protected void addLineArea(LineArea la)
 {
     if (!la.isEmpty())
     {
         la.verticalAlign();
         this.addDisplaySpace(this.halfLeading);
         int size = la.GetHeight();
         this.addChild(la);
         this.increaseHeight(size);
         this.addDisplaySpace(this.halfLeading);
     }
     if (pendingFootnotes != null)
     {
         foreach (FootnoteBody fb in pendingFootnotes)
         {
             Page page = getPage();
             if (!Footnote.LayoutFootnote(page, fb, this))
             {
                 page.addPendingFootnote(fb);
             }
         }
         pendingFootnotes = null;
     }
 }
Example #2
0
 protected void addLineArea(LineArea la)
 {
     if (!la.isEmpty())
     {
         la.verticalAlign();
         this.addDisplaySpace(this.halfLeading);
         int size = la.GetHeight();
         this.addChild(la);
         this.increaseHeight(size);
         this.addDisplaySpace(this.halfLeading);
     }
     if (pendingFootnotes != null)
     {
         foreach (FootnoteBody fb in pendingFootnotes)
         {
             Page page = getPage();
             if (!Footnote.LayoutFootnote(page, fb, this))
             {
                 page.addPendingFootnote(fb);
             }
         }
         pendingFootnotes = null;
     }
 }
Example #3
0
        public void RenderLineArea(LineArea area) {
            int rx = this.currentAreaContainerXPosition + area.getStartIndent();
            int ry = this.currentYPosition;
            int w = area.getContentWidth();
            int h = area.GetHeight();

            this.currentYPosition -= area.getPlacementOffset();
            this.currentXPosition = rx;

            int bl = this.currentYPosition;

            foreach (Box b in area.getChildren()) {
                if (b is InlineArea) {
                    InlineArea ia = (InlineArea) b;
                    this.currentYPosition = ry - ia.getYOffset();
                }
                else {
                    this.currentYPosition = ry - area.getPlacementOffset();
                }
                b.render(this);
            }

            this.currentYPosition = ry - h;
            this.currentXPosition = rx;
        }