From: Jeremias Maerki Date: Fri, 28 Jan 2005 16:56:51 +0000 (+0000) Subject: Cleanup and added missing some public accessors. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~170 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1d60d9097b7461ccef63750530afd8c5c21a4e7;p=xmlgraphics-fop.git Cleanup and added missing some public accessors. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198337 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/flow/ListBlock.java b/src/java/org/apache/fop/fo/flow/ListBlock.java index d0edd4e1b..941c7e6c1 100644 --- a/src/java/org/apache/fop/fo/flow/ListBlock.java +++ b/src/java/org/apache/fop/fo/flow/ListBlock.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,9 +18,6 @@ package org.apache.fop.fo.flow; -// Java -import java.util.List; - import org.xml.sax.Locator; import org.apache.fop.apps.FOPException; @@ -35,7 +32,6 @@ import org.apache.fop.fo.properties.CommonBorderPaddingBackground; import org.apache.fop.fo.properties.CommonMarginBlock; import org.apache.fop.fo.properties.CommonRelativePosition; import org.apache.fop.fo.properties.KeepProperty; -import org.apache.fop.layoutmgr.list.ListBlockLayoutManager; /** * Class modelling the fo:list-block object. @@ -84,8 +80,10 @@ public class ListBlock extends FObj { keepTogether = pList.get(PR_KEEP_TOGETHER).getKeep(); keepWithNext = pList.get(PR_KEEP_WITH_NEXT).getKeep(); keepWithPrevious = pList.get(PR_KEEP_WITH_PREVIOUS).getKeep(); - provisionalDistanceBetweenStarts = pList.get(PR_PROVISIONAL_DISTANCE_BETWEEN_STARTS).getLength(); - provisionalLabelSeparation = pList.get(PR_PROVISIONAL_LABEL_SEPARATION).getLength(); + provisionalDistanceBetweenStarts = pList.get( + PR_PROVISIONAL_DISTANCE_BETWEEN_STARTS).getLength(); + provisionalLabelSeparation = pList.get( + PR_PROVISIONAL_LABEL_SEPARATION).getLength(); } /** @@ -126,21 +124,35 @@ public class ListBlock extends FObj { } /** - * Return the Common Margin Properties-Block. + * @return the Common Margin Properties-Block. */ public CommonMarginBlock getCommonMarginBlock() { return commonMarginBlock; } /** - * Return the Common Border, Padding, and Background Properties. + * @return the Common Border, Padding, and Background Properties. */ public CommonBorderPaddingBackground getCommonBorderPaddingBackground() { return commonBorderPaddingBackground; } /** - * Return the "id" property. + * @return the "break-after" property. + */ + public int getBreakAfter() { + return breakAfter; + } + + /** + * @return the "break-before" property. + */ + public int getBreakBefore() { + return breakBefore; + } + + /** + * @return the "id" property. */ public String getId() { return id; diff --git a/src/java/org/apache/fop/fo/flow/ListItem.java b/src/java/org/apache/fop/fo/flow/ListItem.java index 185e074ad..dad896e94 100644 --- a/src/java/org/apache/fop/fo/flow/ListItem.java +++ b/src/java/org/apache/fop/fo/flow/ListItem.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,13 +14,10 @@ * limitations under the License. */ -/* $Id:$ */ +/* $Id$ */ package org.apache.fop.fo.flow; -// Java -import java.util.List; - import org.xml.sax.Locator; import org.apache.fop.apps.FOPException; @@ -34,7 +31,6 @@ import org.apache.fop.fo.properties.CommonBorderPaddingBackground; import org.apache.fop.fo.properties.CommonMarginBlock; import org.apache.fop.fo.properties.CommonRelativePosition; import org.apache.fop.fo.properties.KeepProperty; -import org.apache.fop.layoutmgr.list.ListItemLayoutManager; /** * Class modelling the fo:list-item object. @@ -147,6 +143,34 @@ public class ListItem extends FObj { } } + /** + * @return the Common Margin Properties-Block. + */ + public CommonMarginBlock getCommonMarginBlock() { + return commonMarginBlock; + } + + /** + * @return the Common Border, Padding, and Background Properties. + */ + public CommonBorderPaddingBackground getCommonBorderPaddingBackground() { + return commonBorderPaddingBackground; + } + + /** + * @return the "break-after" property. + */ + public int getBreakAfter() { + return breakAfter; + } + + /** + * @return the "break-before" property. + */ + public int getBreakBefore() { + return breakBefore; + } + /** * Return the "id" property. */