aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination/RegionBody.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-05-13 19:16:54 +0000
committerJeremias Maerki <jeremias@apache.org>2005-05-13 19:16:54 +0000
commite835307c9373bed3a8f41bb43e4faee15fdaf548 (patch)
tree04b42bcff456d9216e96b4cfcb572c59baba76e1 /src/java/org/apache/fop/fo/pagination/RegionBody.java
parentda85c0b44d79ca790b51fcc0e2700c30e72e9260 (diff)
downloadxmlgraphics-fop-e835307c9373bed3a8f41bb43e4faee15fdaf548.tar.gz
xmlgraphics-fop-e835307c9373bed3a8f41bb43e4faee15fdaf548.zip
Merge of branch Temp_KnuthStylePageBreaking back into HEAD.
Temp_KnuthStylePageBreaking branch and HEAD have been tagged prior to the merge, so merging uncommitted work from the branch should be easier. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/RegionBody.java')
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionBody.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBody.java b/src/java/org/apache/fop/fo/pagination/RegionBody.java
index 47fb7e8e8..a4bd82700 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionBody.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionBody.java
@@ -25,6 +25,7 @@ import org.apache.fop.apps.FOPException;
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.datatypes.Length;
import org.apache.fop.datatypes.Numeric;
+import org.apache.fop.fo.Constants;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.properties.CommonMarginBlock;
@@ -54,6 +55,16 @@ public class RegionBody extends Region {
commonMarginBlock = pList.getMarginBlockProps();
columnCount = pList.get(PR_COLUMN_COUNT).getNumeric();
columnGap = pList.get(PR_COLUMN_GAP).getLength();
+
+ if ((getColumnCount() > 1) && (getOverflow() == EN_SCROLL)) {
+ /* This is an error (See XSL Rec, fo:region-body description).
+ * The Rec allows for acting as if "1" is chosen in
+ * these cases, but we will need to be able to change Numeric
+ * values in order to do this.
+ */
+ attributeError("If overflow property is set to \"scroll\"," +
+ " a column-count other than \"1\" may not be specified.");
+ }
}
/**