From 297e74e0348845fcd240f3fce0a0e21db1f02bc3 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 10 Aug 2005 06:50:25 +0000 Subject: [PATCH] Background painting for inlineblockparent. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock@231179 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/pdf/PDFRenderer.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderer.java b/src/java/org/apache/fop/render/pdf/PDFRenderer.java index 16c6aeb78..aeb04e11c 100644 --- a/src/java/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/java/org/apache/fop/render/pdf/PDFRenderer.java @@ -51,6 +51,7 @@ import org.apache.fop.area.OffDocumentItem; import org.apache.fop.area.BookmarkData; import org.apache.fop.area.inline.Character; import org.apache.fop.area.inline.InlineArea; +import org.apache.fop.area.inline.InlineBlockParent; import org.apache.fop.area.inline.TextArea; import org.apache.fop.area.inline.Viewport; import org.apache.fop.area.inline.ForeignObject; @@ -1302,6 +1303,17 @@ public class PDFRenderer extends PrintRenderer { } } + /** @see org.apache.fop.render.AbstractRenderer */ + protected void renderInlineBlockParent(InlineBlockParent ibp) { + float start = currentIPPosition / 1000f; + float top = (ibp.getOffset() + currentBPPosition) / 1000f; + float width = ibp.getIPD() / 1000f; + float height = ibp.getBPD() / 1000f; + drawBackAndBorders(ibp, start, top, width, height); + + super.renderInlineBlockParent(ibp); + } + /** * @see org.apache.fop.render.Renderer#renderCharacter(Character) */ -- 2.39.5