aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-01-17 19:29:46 +0000
committerGlen Mazza <gmazza@apache.org>2004-01-17 19:29:46 +0000
commitf7ca85ea98ed3f08122a1e4e5aa77d660821de59 (patch)
tree20c9f551346c247658a744db36b83428542efbf2 /src/java
parentbb7e90c3a404703f461b45c8b43d8811f3acf62d (diff)
downloadxmlgraphics-fop-f7ca85ea98ed3f08122a1e4e5aa77d660821de59.tar.gz
xmlgraphics-fop-f7ca85ea98ed3f08122a1e4e5aa77d660821de59.zip
Moved the interfaces into the Constants class on a trial basis (we may still
choose to remove them in favor of strictly using Constants.) Two interfaces (span and position) were removed because of conflicts with other class names. The interface generation was moved into Constants.xsl, which is run manually via the XsltToJava ant task and its output is then checked in. As a result, no more autogeneration of these interfaces at build time will be done. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/area/CTM.java10
-rw-r--r--src/java/org/apache/fop/area/PageViewport.java10
-rw-r--r--src/java/org/apache/fop/area/inline/Leader.java4
-rw-r--r--src/java/org/apache/fop/fo/Constants.java288
-rw-r--r--src/java/org/apache/fop/fo/FOText.java2
-rw-r--r--src/java/org/apache/fop/fo/PropertyList.java13
-rw-r--r--src/java/org/apache/fop/fo/PropertyManager.java3
-rw-r--r--src/java/org/apache/fop/fo/TextInfo.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/ExternalGraphic.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/Inline.java1
-rw-r--r--src/java/org/apache/fop/fo/flow/InstreamForeignObject.java2
-rw-r--r--src/java/org/apache/fop/fo/flow/Leader.java1
-rw-r--r--src/java/org/apache/fop/fo/flow/Table.java3
-rw-r--r--src/java/org/apache/fop/fo/flow/TableCell.java2
-rw-r--r--src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java3
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionAfter.java1
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionBA.java2
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionBefore.java1
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionBody.java1
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionEnd.java1
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionSE.java1
-rw-r--r--src/java/org/apache/fop/fo/pagination/RegionStart.java1
-rw-r--r--src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java2
-rw-r--r--src/java/org/apache/fop/layoutmgr/AddLMVisitor.java17
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java2
-rw-r--r--src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java1
-rw-r--r--src/java/org/apache/fop/layoutmgr/LineLayoutManager.java1
-rw-r--r--src/java/org/apache/fop/layoutmgr/PageLayoutManager.java2
-rw-r--r--src/java/org/apache/fop/render/AbstractRenderer.java3
-rw-r--r--src/java/org/apache/fop/render/awt/AWTRenderer.java1
-rw-r--r--src/java/org/apache/fop/render/pdf/PDFRenderer.java2
-rw-r--r--src/java/org/apache/fop/render/ps/PSRenderer.java1
-rw-r--r--src/java/org/apache/fop/render/svg/SVGRenderer.java1
-rw-r--r--src/java/org/apache/fop/render/xml/XMLRenderer.java1
-rw-r--r--src/java/org/apache/fop/tools/AreaTreeBuilder.java14
35 files changed, 322 insertions, 83 deletions
diff --git a/src/java/org/apache/fop/area/CTM.java b/src/java/org/apache/fop/area/CTM.java
index d8e68db36..56cda6b19 100644
--- a/src/java/org/apache/fop/area/CTM.java
+++ b/src/java/org/apache/fop/area/CTM.java
@@ -55,7 +55,7 @@ import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import org.apache.fop.datatypes.FODimension;
-import org.apache.fop.fo.properties.WritingMode;
+import org.apache.fop.fo.Constants;
/**
* Describe a PDF or PostScript style coordinate transformation matrix (CTM).
@@ -145,15 +145,15 @@ public class CTM implements Serializable {
public static CTM getWMctm(int wm, int ipd, int bpd) {
CTM wmctm;
switch (wm) {
- case WritingMode.LR_TB:
+ case Constants.WritingMode.LR_TB:
return new CTM(CTM_LRTB);
- case WritingMode.RL_TB: {
+ case Constants.WritingMode.RL_TB: {
wmctm = new CTM(CTM_RLTB);
wmctm.e = ipd;
return wmctm;
}
//return CTM_RLTB.translate(ipd, 0);
- case WritingMode.TB_RL: { // CJK
+ case Constants.WritingMode.TB_RL: { // CJK
wmctm = new CTM(CTM_TBRL);
wmctm.e = bpd;
return wmctm;
@@ -331,7 +331,7 @@ public class CTM implements Serializable {
* can set ipd and bpd appropriately based on the writing mode.
*/
- if (writingMode == WritingMode.LR_TB || writingMode == WritingMode.RL_TB) {
+ if (writingMode == Constants.WritingMode.LR_TB || writingMode == Constants.WritingMode.RL_TB) {
reldims.ipd = width;
reldims.bpd = height;
} else {
diff --git a/src/java/org/apache/fop/area/PageViewport.java b/src/java/org/apache/fop/area/PageViewport.java
index df8c4bed0..c06715fff 100644
--- a/src/java/org/apache/fop/area/PageViewport.java
+++ b/src/java/org/apache/fop/area/PageViewport.java
@@ -59,7 +59,7 @@ import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
-import org.apache.fop.fo.properties.RetrievePosition;
+import org.apache.fop.fo.Constants;
/**
* Page viewport that specifies the viewport area and holds the page contents.
@@ -307,7 +307,7 @@ public class PageViewport implements Resolveable, Cloneable {
public Object getMarker(String name, int pos) {
Object mark = null;
switch (pos) {
- case RetrievePosition.FSWP:
+ case Constants.RetrievePosition.FSWP:
if (markerFirstStart != null) {
mark = markerFirstStart.get(name);
}
@@ -315,12 +315,12 @@ public class PageViewport implements Resolveable, Cloneable {
mark = markerFirstAny.get(name);
}
break;
- case RetrievePosition.FIC:
+ case Constants.RetrievePosition.FIC:
if (markerFirstAny != null) {
mark = markerFirstAny.get(name);
}
break;
- case RetrievePosition.LSWP:
+ case Constants.RetrievePosition.LSWP:
if (markerLastStart != null) {
mark = markerLastStart.get(name);
}
@@ -328,7 +328,7 @@ public class PageViewport implements Resolveable, Cloneable {
mark = markerLastAny.get(name);
}
break;
- case RetrievePosition.LEWP:
+ case Constants.RetrievePosition.LEWP:
if (markerLastEnd != null) {
mark = markerLastEnd.get(name);
}
diff --git a/src/java/org/apache/fop/area/inline/Leader.java b/src/java/org/apache/fop/area/inline/Leader.java
index dd503bcd8..d535fc99b 100644
--- a/src/java/org/apache/fop/area/inline/Leader.java
+++ b/src/java/org/apache/fop/area/inline/Leader.java
@@ -50,7 +50,7 @@
*/
package org.apache.fop.area.inline;
-import org.apache.fop.fo.properties.RuleStyle;
+import org.apache.fop.fo.Constants;
/**
* This is a leader inline area.
@@ -63,7 +63,7 @@ public class Leader extends InlineArea {
// if space replaced with a space
// otherwise this is a holder for a line
- private int ruleStyle = RuleStyle.SOLID;
+ private int ruleStyle = Constants.RuleStyle.SOLID;
private int ruleThickness = 1000;
/**
diff --git a/src/java/org/apache/fop/fo/Constants.java b/src/java/org/apache/fop/fo/Constants.java
index ac3d8ad15..52be6267f 100644
--- a/src/java/org/apache/fop/fo/Constants.java
+++ b/src/java/org/apache/fop/fo/Constants.java
@@ -1,4 +1,5 @@
-/* $Id$
+/*
+ * $Id$
* ============================================================================
* The Apache Software License, Version 1.1
* ============================================================================
@@ -46,12 +47,22 @@
* on behalf of the Apache Software Foundation and was originally created by
* James Tauber <jtauber@jtauber.com>. For more information on the Apache
* Software Foundation, please see <http://www.apache.org/>.
-*/
+ */
+
package org.apache.fop.fo;
+import org.apache.fop.fo.properties.GenericBoolean;
+import org.apache.fop.fo.properties.GenericBorderStyle;
+import org.apache.fop.fo.properties.GenericBreak;
+import org.apache.fop.fo.properties.GenericCondBorderWidth;
+import org.apache.fop.fo.properties.GenericCondPadding;
+import org.apache.fop.fo.properties.GenericKeep;
+import org.apache.fop.fo.properties.GenericSpace;
+
public interface Constants {
// element constants
+
int FO_BASIC_LINK = 1;
int FO_BIDI_OVERRIDE = 2;
int FO_BLOCK = 3;
@@ -110,12 +121,15 @@ public interface Constants {
int FO_WRAPPER = 56;
int ELEMENT_COUNT = 56;
+
// Masks
int COMPOUND_SHIFT = 9;
int PROPERTY_MASK = (1 << COMPOUND_SHIFT)-1;
int COMPOUND_MASK = ~PROPERTY_MASK;
-
+ int COMPOUND_COUNT = 11;
+
// property constants
+
int PR_ABSOLUTE_POSITION = 1;
int PR_ACTIVE_STATE = 2;
int PR_ALIGNMENT_ADJUST = 3;
@@ -365,7 +379,9 @@ public interface Constants {
int PR_Z_INDEX = 247;
int PROPERTY_COUNT = 247;
+
// compound property constants
+
int CP_BLOCK_PROGRESSION_DIRECTION = 1 << COMPOUND_SHIFT;
int CP_CONDITIONALITY = 2 << COMPOUND_SHIFT;
int CP_INLINE_PROGRESSION_DIRECTION = 3 << COMPOUND_SHIFT;
@@ -379,6 +395,7 @@ public interface Constants {
int CP_WITHIN_PAGE = 11 << COMPOUND_SHIFT;
// Enumeration constants
+
int ABSOLUTE = 1;
int ABSOLUTE_COLORMETRIC = 2;
int AFTER = 3;
@@ -486,4 +503,269 @@ public interface Constants {
int VISIBLE = 105;
int WRAP = 106;
+ // Enumeration Interfaces
+
+ public interface AbsolutePosition {
+ int AUTO = Constants.AUTO;
+ int FIXED = Constants.FIXED;
+ int ABSOLUTE = Constants.ABSOLUTE; }
+
+ public interface BackgroundRepeat {
+ int REPEAT = Constants.REPEAT;
+ int REPEATX = Constants.REPEATX;
+ int REPEATY = Constants.REPEATY;
+ int NOREPEAT = Constants.NOREPEAT; }
+
+ public interface BorderBeforeStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderBeforeWidth extends GenericCondBorderWidth.Enums { }
+
+ public interface BorderAfterStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderAfterWidth extends GenericCondBorderWidth.Enums { }
+
+ public interface BorderStartStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderStartWidth extends GenericCondBorderWidth.Enums { }
+
+ public interface BorderEndStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderEndWidth extends GenericCondBorderWidth.Enums { }
+
+ public interface BorderTopStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderBottomStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderLeftStyle extends GenericBorderStyle.Enums { }
+
+ public interface BorderRightStyle extends GenericBorderStyle.Enums { }
+
+ public interface PaddingBefore extends GenericCondPadding.Enums { }
+
+ public interface PaddingAfter extends GenericCondPadding.Enums { }
+
+ public interface PaddingStart extends GenericCondPadding.Enums { }
+
+ public interface PaddingEnd extends GenericCondPadding.Enums { }
+
+ public interface FontVariant {
+ int NORMAL = Constants.NORMAL;
+ int SMALL_CAPS = Constants.SMALL_CAPS; }
+
+ public interface Hyphenate {
+ int TRUE = Constants.TRUE;
+ int FALSE = Constants.FALSE; }
+
+ public interface SpaceBefore extends GenericSpace.Enums { }
+
+ public interface SpaceAfter extends GenericSpace.Enums { }
+
+ public interface SpaceEnd extends GenericSpace.Enums { }
+
+ public interface SpaceStart extends GenericSpace.Enums { }
+
+ public interface BaselineShift {
+ int BASELINE = Constants.BASELINE;
+ int SUB = Constants.SUB;
+ int SUPER = Constants.SUPER; }
+
+ public interface DisplayAlign {
+ int BEFORE = Constants.BEFORE;
+ int AFTER = Constants.AFTER;
+ int CENTER = Constants.CENTER;
+ int AUTO = Constants.AUTO; }
+
+ public interface RelativeAlign {
+ int BEFORE = Constants.BEFORE;
+ int BASELINE = Constants.BASELINE; }
+
+ public interface Scaling {
+ int UNIFORM = Constants.UNIFORM;
+ int NON_UNIFORM = Constants.NON_UNIFORM; }
+
+ public interface LinefeedTreatment {
+ int IGNORE = Constants.IGNORE;
+ int PRESERVE = Constants.PRESERVE;
+ int TREAT_AS_SPACE = Constants.TREAT_AS_SPACE;
+ int TREAT_AS_ZERO_WIDTH_SPACE = Constants.TREAT_AS_ZERO_WIDTH_SPACE; }
+
+ public interface TextAlign {
+ int CENTER = Constants.CENTER;
+ int END = Constants.END;
+ int START = Constants.START;
+ int JUSTIFY = Constants.JUSTIFY; }
+
+ public interface TextAlignLast {
+ int CENTER = Constants.CENTER;
+ int END = Constants.END;
+ int START = Constants.START;
+ int JUSTIFY = Constants.JUSTIFY; }
+
+ public interface WhiteSpaceCollapse extends GenericBoolean.Enums { }
+
+ public interface WrapOption {
+ int WRAP = Constants.WRAP;
+ int NO_WRAP = Constants.NO_WRAP; }
+
+ public interface TextDecoration {
+ int NONE = Constants.NONE;
+ int UNDERLINE = Constants.UNDERLINE;
+ int OVERLINE = Constants.OVERLINE;
+ int LINE_THROUGH = Constants.LINE_THROUGH;
+ int BLINK = Constants.BLINK;
+ int NO_UNDERLINE = Constants.NO_UNDERLINE;
+ int NO_OVERLINE = Constants.NO_OVERLINE;
+ int NO_LINE_THROUGH = Constants.NO_LINE_THROUGH;
+ int NO_BLINK = Constants.NO_BLINK; }
+
+ public interface TextTransform {
+ int NONE = Constants.NONE;
+ int CAPITALIZE = Constants.CAPITALIZE;
+ int UPPERCASE = Constants.UPPERCASE;
+ int LOWERCASE = Constants.LOWERCASE; }
+
+ public interface WordSpacing extends GenericSpace.Enums { }
+
+ public interface RenderingIntent {
+ int AUTO = Constants.AUTO;
+ int PERCEPTUAL = Constants.PERCEPTUAL;
+ int RELATIVE_COLOMETRIC = Constants.RELATIVE_COLOMETRIC;
+ int SATURATION = Constants.SATURATION;
+ int ABSOLUTE_COLORMETRIC = Constants.ABSOLUTE_COLORMETRIC; }
+
+ public interface BreakAfter extends GenericBreak.Enums { }
+
+ public interface BreakBefore extends GenericBreak.Enums { }
+
+ public interface KeepTogether extends GenericKeep.Enums { }
+
+ public interface KeepWithNext extends GenericKeep.Enums { }
+
+ public interface KeepWithPrevious extends GenericKeep.Enums { }
+
+ public interface Overflow {
+ int VISIBLE = Constants.VISIBLE;
+ int HIDDEN = Constants.HIDDEN;
+ int SCROLL = Constants.SCROLL;
+ int ERROR_IF_OVERFLOW = Constants.ERROR_IF_OVERFLOW;
+ int AUTO = Constants.AUTO; }
+
+/* public interface Span { conflicts with Area.Span
+ int NONE = Constants.NONE;
+ int ALL = Constants.ALL; } */
+
+ public interface LeaderAlignment {
+ int NONE = Constants.NONE;
+ int REFERENCE_AREA = Constants.REFERENCE_AREA;
+ int PAGE = Constants.PAGE; }
+
+ public interface LeaderPattern {
+ int SPACE = Constants.SPACE;
+ int RULE = Constants.RULE;
+ int DOTS = Constants.DOTS;
+ int USECONTENT = Constants.USECONTENT; }
+
+ public interface RuleStyle {
+ int NONE = Constants.NONE;
+ int DOTTED = Constants.DOTTED;
+ int DASHED = Constants.DASHED;
+ int SOLID = Constants.SOLID;
+ int DOUBLE = Constants.DOUBLE;
+ int GROOVE = Constants.GROOVE;
+ int RIDGE = Constants.RIDGE; }
+
+ public interface RetrievePosition {
+ int FSWP = Constants.FSWP;
+ int FIC = Constants.FIC;
+ int LSWP = Constants.LSWP;
+ int LEWP = Constants.LEWP; }
+
+ public interface RetrieveBoundary {
+ int PAGE = Constants.PAGE;
+ int PAGE_SEQUENCE = Constants.PAGE_SEQUENCE;
+ int DOCUMENT = Constants.DOCUMENT; }
+
+ public interface LetterValue {
+ int ALPHABETIC = Constants.ALPHABETIC;
+ int TRADITIONAL = Constants.TRADITIONAL;
+ int AUTO = Constants.AUTO; }
+
+ public interface BlankOrNotBlank {
+ int BLANK = Constants.BLANK;
+ int NOT_BLANK = Constants.NOT_BLANK;
+ int ANY = Constants.ANY; }
+
+ public interface ForcePageCount {
+ int EVEN = Constants.EVEN;
+ int ODD = Constants.ODD;
+ int END_ON_EVEN = Constants.END_ON_EVEN;
+ int END_ON_ODD = Constants.END_ON_ODD;
+ int NO_FORCE = Constants.NO_FORCE;
+ int AUTO = Constants.AUTO; }
+
+ public interface OddOrEven {
+ int ODD = Constants.ODD;
+ int EVEN = Constants.EVEN;
+ int ANY = Constants.ANY; }
+
+ public interface PagePosition {
+ int FIRST = Constants.FIRST;
+ int LAST = Constants.LAST;
+ int REST = Constants.REST;
+ int ANY = Constants.ANY; }
+
+ public interface Precedence {
+ int TRUE = Constants.TRUE;
+ int FALSE = Constants.FALSE; }
+
+ public interface BorderCollapse {
+ int SEPARATE = Constants.SEPARATE;
+ int COLLAPSE = Constants.COLLAPSE; }
+
+ public interface CaptionSide {
+ int BEFORE = Constants.BEFORE;
+ int AFTER = Constants.AFTER;
+ int START = Constants.START;
+ int END = Constants.END;
+ int TOP = Constants.TOP;
+ int BOTTOM = Constants.BOTTOM;
+ int LEFT = Constants.LEFT;
+ int RIGHT = Constants.RIGHT; }
+
+ public interface TableLayout {
+ int AUTO = Constants.AUTO;
+ int FIXED = Constants.FIXED; }
+
+ public interface TableOmitFooterAtBreak extends GenericBoolean.Enums { }
+
+ public interface TableOmitHeaderAtBreak extends GenericBoolean.Enums { }
+
+ public interface WritingMode {
+ int LR_TB = Constants.LR_TB;
+ int RL_TB = Constants.RL_TB;
+ int TB_RL = Constants.TB_RL; }
+
+/* public interface Position { conflicts with layoutmgr.Position
+ int STATIC = Constants.STATIC;
+ int RELATIVE = Constants.RELATIVE;
+ int ABSOLUTE = Constants.ABSOLUTE;
+ int FIXED = Constants.FIXED; } */
+
+ public interface VerticalAlign {
+ int BASELINE = Constants.BASELINE;
+ int MIDDLE = Constants.MIDDLE;
+ int SUB = Constants.SUB;
+ int SUPER = Constants.SUPER;
+ int TEXT_TOP = Constants.TEXT_TOP;
+ int TEXT_BOTTOM = Constants.TEXT_BOTTOM;
+ int TOP = Constants.TOP;
+ int BOTTOM = Constants.BOTTOM; }
+
+ public interface WhiteSpaceTreatment {
+ int IGNORE = Constants.IGNORE;
+ int PRESERVE = Constants.PRESERVE;
+ int IGNORE_IF_BEFORE_LINEFEED = Constants.IGNORE_IF_BEFORE_LINEFEED;
+ int IGNORE_IF_AFTER_LINEFEED = Constants.IGNORE_IF_AFTER_LINEFEED;
+ int IGNORE_IF_SURROUNDING_LINEFEED = Constants.IGNORE_IF_SURROUNDING_LINEFEED; }
+
}
diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java
index 91a346e58..5243c0560 100644
--- a/src/java/org/apache/fop/fo/FOText.java
+++ b/src/java/org/apache/fop/fo/FOText.java
@@ -54,10 +54,8 @@ package org.apache.fop.fo;
import java.util.NoSuchElementException;
// FOP
-import org.apache.fop.fo.properties.WhiteSpaceCollapse;
import org.apache.fop.fo.flow.Block;
import org.apache.fop.fo.pagination.Root;
-import org.apache.fop.fo.properties.TextTransform;
/**
* A text node in the formatting object tree.
diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java
index b0935d42d..03660cc78 100644
--- a/src/java/org/apache/fop/fo/PropertyList.java
+++ b/src/java/org/apache/fop/fo/PropertyList.java
@@ -58,7 +58,6 @@ import org.xml.sax.Attributes;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.Property.Maker;
import org.apache.fop.fo.properties.FOPropertyMapping;
-import org.apache.fop.fo.properties.WritingMode;
/**
@@ -110,15 +109,15 @@ public class PropertyList extends HashMap {
private static final HashMap WRITING_MODE_TABLES = new HashMap(4);
{
- WRITING_MODE_TABLES.put(new Integer(WritingMode.LR_TB), /* lr-tb */
+ WRITING_MODE_TABLES.put(new Integer(Constants.WritingMode.LR_TB), /* lr-tb */
new byte[] {
START, END, BEFORE, AFTER, BLOCKPROGDIM, INLINEPROGDIM
});
- WRITING_MODE_TABLES.put(new Integer(WritingMode.RL_TB), /* rl-tb */
+ WRITING_MODE_TABLES.put(new Integer(Constants.WritingMode.RL_TB), /* rl-tb */
new byte[] {
END, START, BEFORE, AFTER, BLOCKPROGDIM, INLINEPROGDIM
});
- WRITING_MODE_TABLES.put(new Integer(WritingMode.TB_RL), /* tb-rl */
+ WRITING_MODE_TABLES.put(new Integer(Constants.WritingMode.TB_RL), /* tb-rl */
new byte[] {
AFTER, BEFORE, START, END, INLINEPROGDIM, BLOCKPROGDIM
});
@@ -385,9 +384,9 @@ public class PropertyList extends HashMap {
*/
public int wmMap(int lrtb, int rltb, int tbrl) {
switch (writingMode) {
- case WritingMode.LR_TB: return lrtb;
- case WritingMode.RL_TB: return rltb;
- case WritingMode.TB_RL: return tbrl;
+ case Constants.WritingMode.LR_TB: return lrtb;
+ case Constants.WritingMode.RL_TB: return rltb;
+ case Constants.WritingMode.TB_RL: return tbrl;
}
return -1;
}
diff --git a/src/java/org/apache/fop/fo/PropertyManager.java b/src/java/org/apache/fop/fo/PropertyManager.java
index aef23a39c..cbb5f98fc 100644
--- a/src/java/org/apache/fop/fo/PropertyManager.java
+++ b/src/java/org/apache/fop/fo/PropertyManager.java
@@ -64,7 +64,6 @@ import org.apache.fop.traits.BlockProps;
import org.apache.fop.traits.InlineProps;
import org.apache.fop.traits.SpaceVal;
import org.apache.fop.traits.LayoutProps; // keep, break, span, space?
-import org.apache.fop.fo.properties.Span;
import org.apache.fop.fonts.FontMetrics;
import org.apache.fop.fo.properties.CommonHyphenation;
@@ -454,7 +453,7 @@ public class PropertyManager implements Constants {
LayoutProps props = new LayoutProps();
props.breakBefore = this.propertyList.get(PR_BREAK_BEFORE).getEnum();
props.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
- props.bIsSpan = (this.propertyList.get(PR_SPAN).getEnum() == Span.ALL);
+ props.bIsSpan = (this.propertyList.get(PR_SPAN).getEnum() == Constants.ALL);
props.spaceBefore = new SpaceVal(
this.propertyList.get(PR_SPACE_BEFORE).getSpace());
props.spaceAfter = new SpaceVal(
diff --git a/src/java/org/apache/fop/fo/TextInfo.java b/src/java/org/apache/fop/fo/TextInfo.java
index a84ab6c3c..23b7a57d7 100644
--- a/src/java/org/apache/fop/fo/TextInfo.java
+++ b/src/java/org/apache/fop/fo/TextInfo.java
@@ -54,7 +54,6 @@ package org.apache.fop.fo;
import org.apache.fop.fonts.Font;
import org.apache.fop.datatypes.ColorType;
import org.apache.fop.traits.SpaceVal;
-import org.apache.fop.fo.properties.TextTransform;
/**
* Collection of properties used in
@@ -75,7 +74,7 @@ public class TextInfo {
/** fo:line-height property */
public int lineHeight;
/** fo:text-transform property */
- public int textTransform = TextTransform.NONE;
+ public int textTransform = Constants.TextTransform.NONE;
// Props used for calculating inline-progression-dimension
/** fo:word-spacing property */
diff --git a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
index dbead8df8..e7e6085b7 100644
--- a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
+++ b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
@@ -58,10 +58,6 @@ import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.TextAlign;
-import org.apache.fop.fo.properties.Overflow;
-import org.apache.fop.fo.properties.DisplayAlign;
-import org.apache.fop.fo.properties.Scaling;
import org.apache.fop.image.ImageFactory;
import org.apache.fop.image.FopImage;
import org.apache.fop.datatypes.Length;
diff --git a/src/java/org/apache/fop/fo/flow/Inline.java b/src/java/org/apache/fop/fo/flow/Inline.java
index 071e02550..a49d880a2 100644
--- a/src/java/org/apache/fop/fo/flow/Inline.java
+++ b/src/java/org/apache/fop/fo/flow/Inline.java
@@ -59,7 +59,6 @@ import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObjMixed;
import org.apache.fop.fo.InlineCharIterator;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.TextDecoration;
import org.apache.fop.fo.properties.CommonAccessibility;
import org.apache.fop.fo.properties.CommonAural;
import org.apache.fop.fo.properties.CommonBackground;
diff --git a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
index 1987dec13..0a01806d9 100644
--- a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -53,8 +53,6 @@ package org.apache.fop.fo.flow;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
import org.apache.fop.fo.FObj;
-import org.apache.fop.fo.properties.DisplayAlign;
-import org.apache.fop.fo.properties.TextAlign;
/**
* The instream-foreign-object flow formatting object.
diff --git a/src/java/org/apache/fop/fo/flow/Leader.java b/src/java/org/apache/fop/fo/flow/Leader.java
index 3bb07c739..55cb47fb6 100644
--- a/src/java/org/apache/fop/fo/flow/Leader.java
+++ b/src/java/org/apache/fop/fo/flow/Leader.java
@@ -63,7 +63,6 @@ import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.fo.properties.CommonMarginInline;
import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.fo.properties.FOPropertyMapping;
-import org.apache.fop.fo.properties.LeaderPattern;
import org.apache.fop.fonts.Font;
/**
diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java
index c9da18dac..fbe6be427 100644
--- a/src/java/org/apache/fop/fo/flow/Table.java
+++ b/src/java/org/apache/fop/fo/flow/Table.java
@@ -63,9 +63,6 @@ import org.apache.fop.datatypes.LengthRange;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.TableLayout;
-import org.apache.fop.fo.properties.TableOmitFooterAtBreak;
-import org.apache.fop.fo.properties.TableOmitHeaderAtBreak;
import org.apache.fop.fo.properties.CommonAccessibility;
import org.apache.fop.fo.properties.CommonAural;
import org.apache.fop.fo.properties.CommonBackground;
diff --git a/src/java/org/apache/fop/fo/flow/TableCell.java b/src/java/org/apache/fop/fo/flow/TableCell.java
index 461f755c2..781f5342c 100644
--- a/src/java/org/apache/fop/fo/flow/TableCell.java
+++ b/src/java/org/apache/fop/fo/flow/TableCell.java
@@ -59,8 +59,6 @@ import org.apache.fop.datatypes.ColorType;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.BorderCollapse;
-import org.apache.fop.fo.properties.DisplayAlign;
import org.apache.fop.fo.properties.CommonAccessibility;
import org.apache.fop.fo.properties.CommonAural;
diff --git a/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java b/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java
index e1a74743e..ae64aeaf1 100644
--- a/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java
+++ b/src/java/org/apache/fop/fo/pagination/ConditionalPageMasterReference.java
@@ -57,9 +57,6 @@ import org.xml.sax.Attributes;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.BlankOrNotBlank;
-import org.apache.fop.fo.properties.OddOrEven;
-import org.apache.fop.fo.properties.PagePosition;
import org.apache.fop.apps.FOPException;
/**
diff --git a/src/java/org/apache/fop/fo/pagination/RegionAfter.java b/src/java/org/apache/fop/fo/pagination/RegionAfter.java
index ef8a4a07c..a28975643 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionAfter.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionAfter.java
@@ -56,7 +56,6 @@ import java.awt.Rectangle;
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.WritingMode;
import org.apache.fop.datatypes.FODimension;
/**
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBA.java b/src/java/org/apache/fop/fo/pagination/RegionBA.java
index e9d985770..354d82cbd 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionBA.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionBA.java
@@ -55,8 +55,6 @@ import java.awt.Rectangle;
// FOP
import org.apache.fop.fo.FONode;
-import org.apache.fop.fo.properties.Precedence;
-import org.apache.fop.fo.properties.WritingMode;
import org.apache.fop.fo.FOTreeVisitor;
/**
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBefore.java b/src/java/org/apache/fop/fo/pagination/RegionBefore.java
index f8df4b06c..0cc332b9c 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionBefore.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionBefore.java
@@ -52,7 +52,6 @@ package org.apache.fop.fo.pagination;
// FOP
import org.apache.fop.datatypes.FODimension;
-import org.apache.fop.fo.properties.WritingMode;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBody.java b/src/java/org/apache/fop/fo/pagination/RegionBody.java
index 4d10a6df8..b69ac1646 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionBody.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionBody.java
@@ -61,7 +61,6 @@ import org.apache.fop.fo.Property;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.properties.CommonMarginBlock;
import org.apache.fop.fo.properties.FOPropertyMapping;
-import org.apache.fop.fo.properties.WritingMode;
/**
* The fo:region-body element.
diff --git a/src/java/org/apache/fop/fo/pagination/RegionEnd.java b/src/java/org/apache/fop/fo/pagination/RegionEnd.java
index 32106899c..f02bea3d2 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionEnd.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionEnd.java
@@ -56,7 +56,6 @@ import java.awt.Rectangle;
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.WritingMode;
import org.apache.fop.datatypes.FODimension;
/**
diff --git a/src/java/org/apache/fop/fo/pagination/RegionSE.java b/src/java/org/apache/fop/fo/pagination/RegionSE.java
index 63af9e1ea..79502410d 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionSE.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionSE.java
@@ -56,7 +56,6 @@ import java.awt.Rectangle;
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.WritingMode;
/**
* Abstract base class for fo:region-start and fo:region-end.
diff --git a/src/java/org/apache/fop/fo/pagination/RegionStart.java b/src/java/org/apache/fop/fo/pagination/RegionStart.java
index 45158c3cd..ef045334f 100644
--- a/src/java/org/apache/fop/fo/pagination/RegionStart.java
+++ b/src/java/org/apache/fop/fo/pagination/RegionStart.java
@@ -56,7 +56,6 @@ import java.awt.Rectangle;
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
-import org.apache.fop.fo.properties.WritingMode;
import org.apache.fop.datatypes.FODimension;
/**
diff --git a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
index 750b5f87b..4aff4f56a 100644
--- a/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
@@ -213,7 +213,7 @@ public abstract class AbstractLayoutManager implements LayoutProcessor, Constant
* representing a potential break decision.
* If pos is null, then back up to the first child LM.
*/
- protected void reset(Position pos) {
+ protected void reset(org.apache.fop.layoutmgr.Position pos) {
//if (lm == null) return;
LayoutManager lm = (pos != null) ? pos.getLM() : null;
if (curChildLM != lm) {
diff --git a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java
index be4567ce0..dc3ac02ac 100644
--- a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java
+++ b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java
@@ -154,9 +154,6 @@ import org.apache.fop.fo.pagination.StaticContent;
import org.apache.fop.fo.pagination.Title;
import org.apache.fop.fo.properties.CommonBackground;
import org.apache.fop.fo.properties.CommonBorderAndPadding;
-import org.apache.fop.fo.properties.LeaderPattern;
-import org.apache.fop.fo.properties.Overflow;
-import org.apache.fop.fo.properties.Scaling;
import org.apache.fop.layoutmgr.list.Item;
import org.apache.fop.layoutmgr.list.ListBlockLayoutManager;
import org.apache.fop.layoutmgr.list.ListItemLayoutManager;
@@ -370,14 +367,14 @@ public class AddLMVisitor implements FOTreeVisitor {
node.setup();
InlineArea leaderArea = null;
- if (node.getLeaderPattern() == LeaderPattern.RULE) {
+ if (node.getLeaderPattern() == Constants.LeaderPattern.RULE) {
org.apache.fop.area.inline.Leader leader = new org.apache.fop.area.inline.Leader();
leader.setRuleStyle(node.getRuleStyle());
leader.setRuleThickness(node.getRuleThickness());
leaderArea = leader;
- } else if (node.getLeaderPattern() == LeaderPattern.SPACE) {
+ } else if (node.getLeaderPattern() == Constants.LeaderPattern.SPACE) {
leaderArea = new Space();
- } else if (node.getLeaderPattern() == LeaderPattern.DOTS) {
+ } else if (node.getLeaderPattern() == Constants.LeaderPattern.DOTS) {
TextArea t = new TextArea();
char dot = '.'; // userAgent.getLeaderDotCharacter();
@@ -403,7 +400,7 @@ public class AddLMVisitor implements FOTreeVisitor {
fa.setHeight(node.getFontState().getAscender());
leaderArea = fa;
- } else if (node.getLeaderPattern() == LeaderPattern.USECONTENT) {
+ } else if (node.getLeaderPattern() == Constants.LeaderPattern.USECONTENT) {
if (node.getChildren() == null) {
node.getLogger().error("Leader use-content with no content");
return null;
@@ -644,7 +641,7 @@ public class AddLMVisitor implements FOTreeVisitor {
cheight = (int)size.getY() * 1000;
}
int scaling = node.propertyList.get(Constants.PR_SCALING).getEnum();
- if (scaling == Scaling.UNIFORM) {
+ if (scaling == Constants.Scaling.UNIFORM) {
// adjust the larger
double rat1 = cwidth / (size.getX() * 1000f);
double rat2 = cheight / (size.getY() * 1000f);
@@ -666,9 +663,9 @@ public class AddLMVisitor implements FOTreeVisitor {
boolean clip = false;
if (cwidth > ipd || cheight > bpd) {
int overflow = node.propertyList.get(Constants.PR_OVERFLOW).getEnum();
- if (overflow == Overflow.HIDDEN) {
+ if (overflow == Constants.Overflow.HIDDEN) {
clip = true;
- } else if (overflow == Overflow.ERROR_IF_OVERFLOW) {
+ } else if (overflow == Constants.Overflow.ERROR_IF_OVERFLOW) {
node.getLogger().error("Instream foreign object overflows the viewport: clipping");
clip = true;
}
diff --git a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
index 86870754a..d63f67c6c 100644
--- a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
@@ -58,8 +58,6 @@ import org.apache.fop.area.BlockViewport;
import org.apache.fop.area.Block;
import org.apache.fop.fo.PropertyManager;
import org.apache.fop.fo.properties.CommonAbsolutePosition;
-import org.apache.fop.fo.properties.AbsolutePosition;
-import org.apache.fop.fo.properties.Overflow;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.area.CTM;
import org.apache.fop.datatypes.FODimension;
diff --git a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
index f035f3017..b8b3459a4 100644
--- a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
@@ -52,7 +52,6 @@ package org.apache.fop.layoutmgr;
import org.apache.fop.area.Area;
import org.apache.fop.area.inline.InlineArea;
-import org.apache.fop.fo.properties.VerticalAlign;
import org.apache.fop.traits.MinOptMax;
/**
diff --git a/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java
index b3d210162..a9a4a860b 100644
--- a/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java
@@ -58,7 +58,6 @@ import org.apache.fop.layout.hyphenation.Hyphenator;
import org.apache.fop.traits.BlockProps;
import org.apache.fop.area.LineArea;
import org.apache.fop.area.Resolveable;
-import org.apache.fop.fo.properties.TextAlign;
import java.util.ListIterator;
import java.util.Iterator;
diff --git a/src/java/org/apache/fop/layoutmgr/PageLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageLayoutManager.java
index 6ef51cfc6..d4c752cd1 100644
--- a/src/java/org/apache/fop/layoutmgr/PageLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/PageLayoutManager.java
@@ -75,13 +75,11 @@ import org.apache.fop.fo.flow.Marker;
import org.apache.fop.fo.pagination.PageNumberGenerator;
import org.apache.fop.fo.pagination.PageSequence;
import org.apache.fop.fo.pagination.Region;
-import org.apache.fop.fo.properties.RetrieveBoundary;
import org.apache.fop.fo.pagination.SimplePageMaster;
import org.apache.fop.fo.pagination.StaticContent;
import org.apache.fop.fo.properties.CommonBackground;
import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.fo.properties.CommonMarginBlock;
-import org.apache.fop.fo.properties.Overflow;
import java.util.ArrayList;
import java.util.List;
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java
index c15b51e02..bdc924864 100644
--- a/src/java/org/apache/fop/render/AbstractRenderer.java
+++ b/src/java/org/apache/fop/render/AbstractRenderer.java
@@ -93,6 +93,7 @@ import org.apache.fop.area.inline.Viewport;
import org.apache.fop.area.inline.TextArea;
import org.apache.fop.area.inline.Character;
import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.fo.Constants;
import org.apache.fop.fo.FOTreeControl;
import org.apache.fop.fo.pagination.Region;
@@ -108,7 +109,7 @@ import org.apache.avalon.framework.configuration.ConfigurationException;
* handle viewports. This keeps track of the current block and inline position.
*/
public abstract class AbstractRenderer extends AbstractLogEnabled
- implements Renderer, Configurable, InlineAreaVisitor {
+ implements Renderer, Configurable, InlineAreaVisitor, Constants {
/**
* user agent
diff --git a/src/java/org/apache/fop/render/awt/AWTRenderer.java b/src/java/org/apache/fop/render/awt/AWTRenderer.java
index e646e9347..62ce91054 100644
--- a/src/java/org/apache/fop/render/awt/AWTRenderer.java
+++ b/src/java/org/apache/fop/render/awt/AWTRenderer.java
@@ -88,7 +88,6 @@ import org.apache.fop.area.Trait;
import org.apache.fop.area.inline.TextArea;
import org.apache.fop.datatypes.ColorType;
import org.apache.fop.fo.FOTreeControl;
-import org.apache.fop.fo.properties.BackgroundRepeat;
import org.apache.fop.image.FopImage;
import org.apache.fop.image.ImageFactory;
import org.apache.fop.render.AbstractRenderer;
diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderer.java b/src/java/org/apache/fop/render/pdf/PDFRenderer.java
index 83b97f6b7..6e995d73a 100644
--- a/src/java/org/apache/fop/render/pdf/PDFRenderer.java
+++ b/src/java/org/apache/fop/render/pdf/PDFRenderer.java
@@ -90,8 +90,6 @@ import org.apache.fop.area.inline.Image;
import org.apache.fop.area.inline.Leader;
import org.apache.fop.area.inline.InlineParent;
import org.apache.fop.datatypes.ColorType;
-import org.apache.fop.fo.properties.BackgroundRepeat;
-import org.apache.fop.fo.properties.RuleStyle;
import org.apache.fop.fonts.Typeface;
import org.apache.fop.fonts.Font;
import org.apache.fop.fonts.FontSetup;
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java
index c46959832..1d33d19f8 100644
--- a/src/java/org/apache/fop/render/ps/PSRenderer.java
+++ b/src/java/org/apache/fop/render/ps/PSRenderer.java
@@ -59,7 +59,6 @@ import java.util.List;
// FOP
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.fop.fo.properties.BackgroundRepeat;
import org.apache.fop.area.Area;
import org.apache.fop.area.RegionViewport;
import org.apache.fop.apps.FOPException;
diff --git a/src/java/org/apache/fop/render/svg/SVGRenderer.java b/src/java/org/apache/fop/render/svg/SVGRenderer.java
index 117f82a5a..e08a94b1c 100644
--- a/src/java/org/apache/fop/render/svg/SVGRenderer.java
+++ b/src/java/org/apache/fop/render/svg/SVGRenderer.java
@@ -59,7 +59,6 @@ import org.apache.fop.area.inline.TextArea;
import org.apache.fop.svg.SVGUtilities;
import org.apache.fop.apps.Document;
import org.apache.fop.apps.FOUserAgent;
-import org.apache.fop.fo.properties.RuleStyle;
import org.apache.fop.fo.FOTreeControl;
import org.w3c.dom.Node;
diff --git a/src/java/org/apache/fop/render/xml/XMLRenderer.java b/src/java/org/apache/fop/render/xml/XMLRenderer.java
index 03c63543b..31e06437c 100644
--- a/src/java/org/apache/fop/render/xml/XMLRenderer.java
+++ b/src/java/org/apache/fop/render/xml/XMLRenderer.java
@@ -93,7 +93,6 @@ import org.apache.fop.area.inline.Space;
import org.apache.fop.area.inline.Viewport;
import org.apache.fop.area.inline.TextArea;
import org.apache.fop.fonts.FontSetup;
-import org.apache.fop.fo.properties.RuleStyle;
import org.apache.fop.fo.FOTreeControl;
import org.apache.fop.fo.pagination.Region;
diff --git a/src/java/org/apache/fop/tools/AreaTreeBuilder.java b/src/java/org/apache/fop/tools/AreaTreeBuilder.java
index 2259f2f5b..de5e5ec80 100644
--- a/src/java/org/apache/fop/tools/AreaTreeBuilder.java
+++ b/src/java/org/apache/fop/tools/AreaTreeBuilder.java
@@ -107,8 +107,8 @@ import org.apache.fop.render.pdf.PDFRenderer;
import org.apache.fop.render.svg.SVGRenderer;
import org.apache.fop.render.xml.XMLRenderer;
import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.fo.Constants;
import org.apache.fop.fo.pagination.Region;
-import org.apache.fop.fo.properties.RuleStyle;
import org.apache.fop.fonts.FontMetrics;
// Avalon
@@ -698,17 +698,17 @@ class TreeLoader extends AbstractLogEnabled {
Leader leader = new Leader();
String rs = root.getAttribute("ruleStyle");
if ("solid".equals(rs)) {
- leader.setRuleStyle(RuleStyle.SOLID);
+ leader.setRuleStyle(Constants.RuleStyle.SOLID);
} else if ("dotted".equals(rs)) {
- leader.setRuleStyle(RuleStyle.DOTTED);
+ leader.setRuleStyle(Constants.RuleStyle.DOTTED);
} else if ("dashed".equals(rs)) {
- leader.setRuleStyle(RuleStyle.DASHED);
+ leader.setRuleStyle(Constants.RuleStyle.DASHED);
} else if ("double".equals(rs)) {
- leader.setRuleStyle(RuleStyle.DOUBLE);
+ leader.setRuleStyle(Constants.RuleStyle.DOUBLE);
} else if ("groove".equals(rs)) {
- leader.setRuleStyle(RuleStyle.GROOVE);
+ leader.setRuleStyle(Constants.RuleStyle.GROOVE);
} else if ("ridge".equals(rs)) {
- leader.setRuleStyle(RuleStyle.RIDGE);
+ leader.setRuleStyle(Constants.RuleStyle.RIDGE);
}
String rt = root.getAttribute("ruleThickness");
int thick = Integer.parseInt(rt);