*/
package org.apache.fop.fo;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.util.CharUtilities;
import java.util.NoSuchElementException;
* descendant's character contents should be iterated
* @param bap
*/
- public InlineCharIterator(FObj fobj, BorderAndPadding bap) {
+ public InlineCharIterator(FObj fobj, CommonBorderAndPadding bap) {
super(fobj);
checkBoundaries(bap);
}
- private void checkBoundaries(BorderAndPadding bap) {
+ private void checkBoundaries(CommonBorderAndPadding bap) {
// TODO! use start and end in BAP!!
bStartBoundary = (bap.getBorderLeftWidth(false) > 0
|| bap.getPaddingLeft(false) > 0);
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.layout.FontState;
import org.apache.fop.layout.FontInfo;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.RelativePositionProps;
-import org.apache.fop.layout.AbsolutePositionProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonMarginBlock;
+import org.apache.fop.fo.properties.CommonMarginInline;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonRelativePosition;
+import org.apache.fop.fo.properties.CommonAbsolutePosition;
import org.apache.fop.traits.BlockProps;
import org.apache.fop.traits.InlineProps;
import org.apache.fop.traits.SpaceVal;
import org.apache.fop.fo.properties.WritingMode;
import org.apache.fop.fo.properties.Span;
import org.apache.fop.fonts.FontMetrics;
-import org.apache.fop.layout.HyphenationProps;
+import org.apache.fop.fo.properties.CommonHyphenation;
/**
* Helper class for managing groups of properties.
private PropertyList properties;
private FontInfo fontInfo = null;
private FontState fontState = null;
- private BorderAndPadding borderAndPadding = null;
- private HyphenationProps hyphProps = null;
+ private CommonBorderAndPadding borderAndPadding = null;
+ private CommonHyphenation hyphProps = null;
private TextInfo textInfo = null;
private static final String[] SA_BEFORE = new String[]{"before"};
* reused.
* @return a BorderAndPadding object
*/
- public BorderAndPadding getBorderAndPadding() {
+ public CommonBorderAndPadding getBorderAndPadding() {
if (borderAndPadding == null) {
- this.borderAndPadding = new BorderAndPadding();
+ this.borderAndPadding = new CommonBorderAndPadding();
- initBorderInfo(BorderAndPadding.BEFORE, SA_BEFORE);
- initBorderInfo(BorderAndPadding.AFTER, SA_AFTER);
- initBorderInfo(BorderAndPadding.START, SA_START);
- initBorderInfo(BorderAndPadding.END, SA_END);
+ initBorderInfo(CommonBorderAndPadding.BEFORE, SA_BEFORE);
+ initBorderInfo(CommonBorderAndPadding.AFTER, SA_AFTER);
+ initBorderInfo(CommonBorderAndPadding.START, SA_START);
+ initBorderInfo(CommonBorderAndPadding.END, SA_END);
}
return borderAndPadding;
}
* reused.
* @return a HyphenationProps object
*/
- public HyphenationProps getHyphenationProps() {
+ public CommonHyphenation getHyphenationProps() {
if (hyphProps == null) {
- this.hyphProps = new HyphenationProps();
+ this.hyphProps = new CommonHyphenation();
hyphProps.hyphenate =
this.properties.get("hyphenate").getEnum();
hyphProps.hyphenationChar = this.properties.get(
* reused.
* @return a MarginProps object
*/
- public MarginProps getMarginProps() {
- MarginProps props = new MarginProps();
+ public CommonMarginBlock getMarginProps() {
+ CommonMarginBlock props = new CommonMarginBlock();
// Common Margin Properties-Block
props.marginTop =
* reused.
* @return a BackgroundProps object
*/
- public BackgroundProps getBackgroundProps() {
- BackgroundProps bp = new BackgroundProps();
+ public CommonBackground getBackgroundProps() {
+ CommonBackground bp = new CommonBackground();
bp.backAttachment = properties.get("background-attachment").getEnum();
bp.backColor = properties.get("background-color").getColorType();
if (bp.backColor.alpha() == 1) {
* reused.
* @return a MarginInlineProps object
*/
- public MarginInlineProps getMarginInlineProps() {
- MarginInlineProps props = new MarginInlineProps();
+ public CommonMarginInline getMarginInlineProps() {
+ CommonMarginInline props = new CommonMarginInline();
return props;
}
* reused.
* @return a AccessibilityProps object
*/
- public AccessibilityProps getAccessibilityProps() {
- AccessibilityProps props = new AccessibilityProps();
+ public CommonAccessibility getAccessibilityProps() {
+ CommonAccessibility props = new CommonAccessibility();
String str;
str = this.properties.get("source-document").getString();
if (!NONE.equals(str)) {
* reused.
* @return a AuralProps object
*/
- public AuralProps getAuralProps() {
- AuralProps props = new AuralProps();
+ public CommonAural getAuralProps() {
+ CommonAural props = new CommonAural();
return props;
}
* reused.
* @return a RelativePositionProps object
*/
- public RelativePositionProps getRelativePositionProps() {
- RelativePositionProps props = new RelativePositionProps();
+ public CommonRelativePosition getRelativePositionProps() {
+ CommonRelativePosition props = new CommonRelativePosition();
return props;
}
* it is reused.
* @return a AbsolutePositionProps object
*/
- public AbsolutePositionProps getAbsolutePositionProps() {
- AbsolutePositionProps props = new AbsolutePositionProps();
+ public CommonAbsolutePosition getAbsolutePositionProps() {
+ CommonAbsolutePosition props = new CommonAbsolutePosition();
props.absolutePosition =
this.properties.get("absolute-position").getEnum();
props.top = this.properties.get("top").getLength().getValue();
// FOP
import org.apache.fop.fo.FONode;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonMarginInline;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.area.inline.InlineParent;
import org.apache.fop.area.Trait;
import org.apache.fop.area.Resolveable;
int linkType;
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
// this.properties.get("alignment-baseline");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObjMixed;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layoutmgr.LeafNodeLayoutManager;
import org.apache.fop.layoutmgr.LayoutProcessor;
private void setup() {
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Font Properties
//this.fontState = propMgr.getFontState(area.getFontInfo());
// Common Margin Properties-Inline
- RelativePositionProps mProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mProps = propMgr.getRelativePositionProps();
// this.properties.get("color");
// this.properties.get("direction");
import org.apache.fop.fo.RecursiveCharIterator;
import org.apache.fop.fo.TextInfo;
import org.apache.fop.fo.properties.Constants;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.HyphenationProps;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonHyphenation;
+import org.apache.fop.fo.properties.CommonMarginBlock;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layoutmgr.BlockLayoutManager;
import org.apache.fop.util.CharUtilities;
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
//this.fontState = propMgr.getFontState(area.getFontInfo());
// Common Hyphenation Properties
- HyphenationProps mHyphProps = propMgr.getHyphenationProps();
+ CommonHyphenation mHyphProps = propMgr.getHyphenationProps();
// Common Margin Properties-Block
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
// this.properties.get("break-after");
import org.apache.fop.datatypes.ColorType;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.AbsolutePositionProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginProps;
+import org.apache.fop.fo.properties.CommonAbsolutePosition;
+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.layoutmgr.BlockContainerLayoutManager;
import org.xml.sax.Attributes;
private void setup() {
// Common Accessibility Properties
- AbsolutePositionProps mAbsProps = propMgr.getAbsolutePositionProps();
+ CommonAbsolutePosition mAbsProps = propMgr.getAbsolutePositionProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin-Block Properties
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
// this.properties.get("block-progression-dimension");
// this.properties.get("break-after");
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.OneCharIterator;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.HyphenationProps;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonHyphenation;
+import org.apache.fop.fo.properties.CommonMarginInline;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.apps.FOPException;
import org.apache.fop.area.inline.InlineArea;
import org.apache.fop.layoutmgr.LeafNodeLayoutManager;
private void setup() throws FOPException {
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
//this.fontState = propMgr.getFontState(area.getFontInfo());
// Common Hyphenation Properties
- HyphenationProps mHyphProps = propMgr.getHyphenationProps();
+ CommonHyphenation mHyphProps = propMgr.getHyphenationProps();
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import org.apache.fop.fo.properties.TextAlign;
import org.apache.fop.fo.properties.Overflow;
import org.apache.fop.fo.properties.DisplayAlign;
vp.setOffset(0);
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
TraitSetter.addBorders(vp, bap);
TraitSetter.addBackground(vp, bProps);
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonRelativePosition;
/**
* Class modelling the fo:initial-property-set object. See Sec. 6.6.4 of the
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
//this.fontState = propMgr.getFontState(area.getFontInfo());
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("color");
setupID();
import org.apache.fop.fo.FObjMixed;
import org.apache.fop.fo.InlineCharIterator;
import org.apache.fop.fo.properties.TextDecoration;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+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.apps.FOPException;
/**
}
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
//this.fontState = propMgr.getFontState(area.getFontInfo());
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
// this.properties.get("alignment-baseline");
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.apps.FOPException;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonBackground;
+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.layoutmgr.LayoutManager;
import org.apache.fop.layoutmgr.LeafNodeLayoutManager;
import org.apache.fop.area.inline.InlineArea;
public void handleAttrs(Attributes attlist) throws FOPException {
super.handleAttrs(attlist);
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
import org.apache.fop.fo.FObjMixed;
import org.apache.fop.fo.FOInputHandler;
import org.apache.fop.fo.properties.LeaderPattern;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.layout.FontInfo;
import org.apache.fop.layout.FontState;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonMarginInline;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layoutmgr.ContentLayoutManager;
import org.apache.fop.layoutmgr.InlineStackingLayoutManager;
import org.apache.fop.layoutmgr.LMiter;
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
this.fontState = propMgr.getFontState(fontInfo);
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
// this.properties.get("alignment-baseline");
import org.apache.fop.datatypes.ColorType;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+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.CommonRelativePosition;
import org.apache.fop.layoutmgr.list.ListBlockLayoutManager;
/**
private void setup() throws FOPException {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin Properties-Block
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("break-after");
// this.properties.get("break-before");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+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.CommonRelativePosition;
import org.apache.fop.layoutmgr.list.ListItemLayoutManager;
/**
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin Properties-Block
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("break-after");
// this.properties.get("break-before");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
import org.apache.fop.layoutmgr.list.Item;
/**
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
setupID();
// this.properties.get("keep-together");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
import org.apache.fop.layoutmgr.list.Item;
/**
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
setupID();
// this.properties.get("keep-together");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
/**
* Class modelling the fo:multi-case object. See Sec. 6.9.4 of the XSL-FO
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
setupID();
// this.properties.get("starting-state");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
/**
* Class modelling the fo:multi-properties object. See Sec. 6.9.6 of the XSL-FO
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
setupID();
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
/**
* Class modelling the fo:multi-switch object. See Sec. 6.9.3 of the XSL-FO
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// this.properties.get("auto-restore");
setupID();
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
/**
* Class modelling the fo:multi-toggle property. See Sec. 6.9.5 of the XSL-FO
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
setupID();
// this.properties.get("switch-to");
import java.util.List;
// FOP
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.layout.FontInfo;
import org.apache.fop.layout.FontState;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonMarginInline;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layout.TextState;
import org.apache.fop.util.CharUtilities;
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
this.fontState = propMgr.getFontState(fontInfo);
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOInputHandler;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.layout.FontInfo;
import org.apache.fop.layout.FontState;
-import org.apache.fop.layout.MarginInlineProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonMarginInline;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layout.TextState;
import org.apache.fop.layoutmgr.LayoutContext;
import org.apache.fop.layoutmgr.LayoutManager;
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
this.fontState = propMgr.getFontState(fontInfo);
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
// this.properties.get("alignment-adjust");
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.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+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.CommonRelativePosition;
import org.apache.fop.layoutmgr.table.TableLayoutManager;
/**
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin Properties-Block
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
// this.properties.get("block-progression-dimension");
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+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.CommonRelativePosition;
/**
* Class modelling the fo:table-and-caption property. See Sec. 6.7.2 of the
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Margin Properties-Block
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("caption-side");
setupID();
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layoutmgr.table.Body;
/**
private void setup() throws FOPException {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps =
+ CommonRelativePosition mRelProps =
propMgr.getRelativePositionProps();
setupID();
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.ToBeImplementedElement;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonRelativePosition;
/**
* Class modelling the fo:table-caption object. See Sec. 6.7.5 of the XSL-FO
public void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("block-progression-dimension");
// this.properties.get("height");
import org.apache.fop.fo.properties.BorderCollapse;
import org.apache.fop.fo.properties.DisplayAlign;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layoutmgr.table.Cell;
/**
private void doSetup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("border-after-precedence");
// this.properties.get("border-before-precendence");
* Calculate cell border and padding, including offset of content
* rectangle from the theoretical grid position.
*/
- private void calcBorders(BorderAndPadding bp) {
+ private void calcBorders(CommonBorderAndPadding bp) {
if (this.bSepBorders) {
/*
* Easy case.
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.Property;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.layoutmgr.LayoutManager;
import org.apache.fop.layoutmgr.table.Column;
// Common Border, Padding, and Background Properties
// only background apply, border apply if border-collapse
// is collapse.
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// this.properties.get("column-width");
// this.properties.get("number-columns-repeated");
import org.apache.fop.fo.Property;
import org.apache.fop.fo.properties.Constants;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.RelativePositionProps;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonRelativePosition;
import org.apache.fop.layoutmgr.table.Row;
/**
private void doSetup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// this.properties.get("block-progression-dimension");
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
// only background apply, border apply if border-collapse
// is collapse.
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Relative Position Properties
- RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+ CommonRelativePosition mRelProps = propMgr.getRelativePositionProps();
// this.properties.get("break-before");
// this.properties.get("break-after");
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FONode;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import org.apache.fop.apps.FOPException;
import org.apache.fop.area.CTM;
import org.apache.fop.area.RegionViewport;
*/
protected void setRegionViewportTraits(RegionViewport r) {
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
TraitSetter.addBorders(r, bap);
TraitSetter.addBackground(r, bProps);
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.area.RegionReference;
import org.apache.fop.area.BodyRegion;
-import org.apache.fop.layout.MarginProps;
+import org.apache.fop.fo.properties.CommonMarginBlock;
/**
* The fo:region-body element.
* writing-mode on the page (not on the region-body!). If that's not
* set but indent is explicitly set, it will return that.
*/
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
int start = getRelMargin(PropertyList.START, "start-indent");
Rectangle vpRect;
if (this.wm == WritingMode.LR_TB || this.wm == WritingMode.RL_TB) {
import org.apache.fop.area.Page;
import org.apache.fop.area.RegionViewport;
import org.apache.fop.area.RegionReference;
-import org.apache.fop.layout.MarginProps;
+import org.apache.fop.fo.properties.CommonMarginBlock;
import org.apache.fop.layout.PageMaster;
import org.apache.fop.apps.FOPException;
// this.properties.get("writing-mode");
// Get absolute margin properties (top, left, bottom, right)
- MarginProps mProps = propMgr.getMarginProps();
+ CommonMarginBlock mProps = propMgr.getMarginProps();
/* Create the page reference area rectangle (0,0 is at top left
* of the "page media" and y increases
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.LengthProperty;
import org.apache.fop.fo.Property;
-import org.apache.fop.layout.AccessibilityProps;
-import org.apache.fop.layout.AuralProps;
-import org.apache.fop.layout.BackgroundProps;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonAccessibility;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonBackground;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.layout.FontState;
-import org.apache.fop.layout.MarginInlineProps;
+import org.apache.fop.fo.properties.CommonMarginInline;
import org.apache.fop.layoutmgr.ContentLayoutManager;
import org.apache.fop.layoutmgr.InlineStackingLayoutManager;
import org.apache.fop.layoutmgr.LMiter;
private void setup() {
// Common Accessibility Properties
- AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+ CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
// Common Aural Properties
- AuralProps mAurProps = propMgr.getAuralProps();
+ CommonAural mAurProps = propMgr.getAuralProps();
// Common Border, Padding, and Background Properties
- BorderAndPadding bap = propMgr.getBorderAndPadding();
- BackgroundProps bProps = propMgr.getBackgroundProps();
+ CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
+ CommonBackground bProps = propMgr.getBackgroundProps();
// Common Font Properties
FontState fontState = propMgr.getFontState(foInputHandler.getFontInfo());
// Common Margin Properties-Inline
- MarginInlineProps mProps = propMgr.getMarginInlineProps();
+ CommonMarginInline mProps = propMgr.getMarginInlineProps();
Property prop;
prop = this.properties.get("baseline-shift");
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Store all common absolute position properties.
+ * See Sec. 7.5 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonAbsolutePosition {
+ public int absolutePosition;
+ public int top;
+ public int right;
+ public int bottom;
+ public int left;
+
+ public CommonAbsolutePosition() {
+ }
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Store all common accessibility properties.
+ * See Sec 7.4 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonAccessibility {
+ public String sourceDoc = null;
+ public String role = null;
+
+ public CommonAccessibility() {
+ }
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Stores all common aural properties.
+ * See Sec. 7.6 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonAural {
+
+ public int azimuth;
+ public String cueAfter;
+ public String cueBefore;
+ public int elevation;
+ public int pauseAfter;
+ public int pauseBefore;
+ public int pitch;
+ public int pitchRange;
+ public int playDuring;
+ public int richness;
+ public int speak;
+ public int speakHeader;
+ public int speakNumeral;
+ public int speakPunctuation;
+ public int speechRate;
+ public int stress;
+ public int voiceFamily;
+ public int volume;
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+import org.apache.fop.datatypes.Length;
+import org.apache.fop.datatypes.ColorType;
+
+/**
+ * Store all common background properties.
+ * See Sec 7.7 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonBackground {
+
+ public int backAttachment;
+ public ColorType backColor;
+ public String backImage;
+ public int backRepeat;
+ public Length backPosHorizontal;
+ public Length backPosVertical;
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+import org.apache.fop.datatypes.ColorType;
+import org.apache.fop.datatypes.CondLength;
+
+/**
+ * Stores all common border and padding properties.
+ * See Sec. 7.7 of the XSL-FO Standard.
+ */
+public class CommonBorderAndPadding implements Cloneable {
+
+ public static final int BEFORE = 0;
+ public static final int AFTER = 1;
+ public static final int START = 2;
+ public static final int END = 3;
+
+ public static final int TOP = BEFORE;
+ public static final int BOTTOM = AFTER;
+ public static final int LEFT = START;
+ public static final int RIGHT = END;
+
+ private static class ResolvedCondLength implements Cloneable {
+ private int iLength; // Resolved length value
+ private boolean bDiscard;
+
+ public ResolvedCondLength(CondLength length) {
+ bDiscard = length.isDiscard();
+ iLength = length.getLengthValue();
+ }
+
+ public Object clone() throws CloneNotSupportedException {
+ return super.clone();
+ }
+
+ }
+
+ /**
+ * Return a full copy of the BorderAndPadding information. This clones all
+ * padding and border information.
+ * @see java.lang.Object#clone()
+ */
+ public Object clone() throws CloneNotSupportedException {
+ CommonBorderAndPadding bp = (CommonBorderAndPadding) super.clone();
+ bp.padding = (ResolvedCondLength[]) padding.clone();
+ bp.borderInfo = (BorderInfo[]) borderInfo.clone();
+ for (int i = 0; i < padding.length; i++) {
+ if (padding[i] != null) {
+ bp.padding[i] = (ResolvedCondLength) padding[i].clone();
+ }
+ if (borderInfo[i] != null) {
+ bp.borderInfo[i] = (BorderInfo) borderInfo[i].clone();
+ }
+ }
+ return bp;
+ }
+
+ public static class BorderInfo implements Cloneable {
+ private int mStyle; // Enum for border style
+ private ColorType mColor; // Border color
+ private ResolvedCondLength mWidth;
+
+ BorderInfo(int style, CondLength width, ColorType color) {
+ mStyle = style;
+ mWidth = new ResolvedCondLength(width);
+ mColor = color;
+ }
+
+ public Object clone() throws CloneNotSupportedException {
+ BorderInfo bi = (BorderInfo) super.clone();
+ bi.mWidth = (ResolvedCondLength) mWidth.clone();
+ // do we need to clone the Color too???
+ return bi;
+ }
+ }
+
+ private BorderInfo[] borderInfo = new BorderInfo[4];
+ private ResolvedCondLength[] padding = new ResolvedCondLength[4];
+
+ public void setBorder(int side, int style, CondLength width,
+ ColorType color) {
+ borderInfo[side] = new BorderInfo(style, width, color);
+ }
+
+ public void setPadding(int side, CondLength width) {
+ padding[side] = new ResolvedCondLength(width);
+ }
+
+ public void setPaddingLength(int side, int iLength) {
+ padding[side].iLength = iLength;
+ }
+
+ public void setBorderLength(int side, int iLength) {
+ borderInfo[side].mWidth.iLength = iLength;
+ }
+
+ public int getBorderLeftWidth(boolean bDiscard) {
+ return getBorderWidth(LEFT, bDiscard);
+ }
+
+ public int getBorderRightWidth(boolean bDiscard) {
+ return getBorderWidth(RIGHT, bDiscard);
+ }
+
+ public int getBorderTopWidth(boolean bDiscard) {
+ return getBorderWidth(TOP, bDiscard);
+ }
+
+ public int getBorderBottomWidth(boolean bDiscard) {
+ return getBorderWidth(BOTTOM, bDiscard);
+ }
+
+ public int getPaddingLeft(boolean bDiscard) {
+ return getPadding(LEFT, bDiscard);
+ }
+
+ public int getPaddingRight(boolean bDiscard) {
+ return getPadding(RIGHT, bDiscard);
+ }
+
+ public int getPaddingBottom(boolean bDiscard) {
+ return getPadding(BOTTOM, bDiscard);
+ }
+
+ public int getPaddingTop(boolean bDiscard) {
+ return getPadding(TOP, bDiscard);
+ }
+
+
+ public int getBorderWidth(int side, boolean bDiscard) {
+ if ((borderInfo[side] == null)
+ || (borderInfo[side].mStyle == Constants.NONE)
+ || (bDiscard && borderInfo[side].mWidth.bDiscard)) {
+ return 0;
+ } else {
+ return borderInfo[side].mWidth.iLength;
+ }
+ }
+
+ public ColorType getBorderColor(int side) {
+ if (borderInfo[side] != null) {
+ return borderInfo[side].mColor;
+ } else {
+ return null;
+ }
+ }
+
+ public int getBorderStyle(int side) {
+ if (borderInfo[side] != null) {
+ return borderInfo[side].mStyle;
+ } else {
+ return 0;
+ }
+ }
+
+ public int getPadding(int side, boolean bDiscard) {
+ if ((padding[side] == null) || (bDiscard && padding[side].bDiscard)) {
+ return 0;
+ } else {
+ return padding[side].iLength;
+ }
+ }
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Store all common hyphenation properties.
+ * See Sec. 7.9 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonHyphenation {
+
+ public int hyphenate; // Enum true or false: store as boolean!
+ public char hyphenationChar;
+ public int hyphenationPushCharacterCount;
+ public int hyphenationRemainCharacterCount;
+ public String language; // Language code or enum "NONE"
+ public String country; // Country code or enum "NONE"
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Store all common margin properties for blocks.
+ * See Sec. 7.10 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonMarginBlock {
+
+ public int marginTop;
+ public int marginBottom;
+ public int marginLeft;
+ public int marginRight;
+ public int spaceBefore;
+ public int spaceAfter;
+ public int startIndent;
+ public int endIndent;
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Store all common margin properties for inlines.
+ * See Sec. 7.11 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonMarginInline {
+
+ public int marginTop;
+ public int marginBottom;
+ public int marginLeft;
+ public int marginRight;
+ public int spaceStart;
+ public int spaceEnd;
+
+}
--- /dev/null
+/*
+ * $Id$
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "FOP" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ============================================================================
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * 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.properties;
+
+/**
+ * Store all common relative position properties.
+ * See Sec 7.12 of the XSL-FO Standard.
+ * Public "structure" allows direct member access.
+ */
+public class CommonRelativePosition {
+
+ public int marginTop;
+ public int marginBottom;
+ public int marginLeft;
+ public int marginRight;
+ public int spaceBefore;
+ public int spaceAfter;
+ public int startIndent;
+ public int endIndent;
+
+}
+++ /dev/null
-/*
- * $Id: AbsolutePositionProps.java,v 1.4 2003/03/06 22:19:15 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all hyphenation related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class AbsolutePositionProps {
- public int absolutePosition;
- public int top;
- public int right;
- public int bottom;
- public int left;
-
- public AbsolutePositionProps() {
- }
-
-}
+++ /dev/null
-/*
- * $Id: AccessibilityProps.java,v 1.2 2003/03/06 22:19:16 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all hyphenation related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class AccessibilityProps {
- public String sourceDoc = null;
- public String role = null;
-
- public AccessibilityProps() {
- }
-
-}
+++ /dev/null
-/*
- * $Id: AuralProps.java,v 1.2 2003/03/06 22:19:15 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all hyphenation related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class AuralProps {
-
- public int azimuth;
- public String cueAfter;
- public String cueBefore;
- public int elevation;
- public int pauseAfter;
- public int pauseBefore;
- public int pitch;
- public int pitchRange;
- public int playDuring;
- public int richness;
- public int speak;
- public int speakHeader;
- public int speakNumeral;
- public int speakPunctuation;
- public int speechRate;
- public int stress;
- public int voiceFamily;
- public int volume;
-
-}
+++ /dev/null
-/*
- * $Id: BackgroundProps.java,v 1.5 2003/03/06 22:19:16 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-import org.apache.fop.datatypes.Length;
-import org.apache.fop.datatypes.ColorType;
-
-/**
- * Store all background related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class BackgroundProps {
-
- public int backAttachment;
- public ColorType backColor;
- public String backImage;
- public int backRepeat;
- public Length backPosHorizontal;
- public Length backPosVertical;
-
-}
+++ /dev/null
-/*
- * $Id: BorderAndPadding.java,v 1.10 2003/03/06 22:19:15 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-import org.apache.fop.datatypes.ColorType;
-import org.apache.fop.datatypes.CondLength;
-import org.apache.fop.fo.properties.Constants;
-
-public class BorderAndPadding implements Cloneable {
-
- public static final int BEFORE = 0;
- public static final int AFTER = 1;
- public static final int START = 2;
- public static final int END = 3;
-
- public static final int TOP = BEFORE;
- public static final int BOTTOM = AFTER;
- public static final int LEFT = START;
- public static final int RIGHT = END;
-
- private static class ResolvedCondLength implements Cloneable {
- private int iLength; // Resolved length value
- private boolean bDiscard;
-
- public ResolvedCondLength(CondLength length) {
- bDiscard = length.isDiscard();
- iLength = length.getLengthValue();
- }
-
- public Object clone() throws CloneNotSupportedException {
- return super.clone();
- }
-
- }
-
- /**
- * Return a full copy of the BorderAndPadding information. This clones all
- * padding and border information.
- * @see java.lang.Object#clone()
- */
- public Object clone() throws CloneNotSupportedException {
- BorderAndPadding bp = (BorderAndPadding) super.clone();
- bp.padding = (ResolvedCondLength[]) padding.clone();
- bp.borderInfo = (BorderInfo[]) borderInfo.clone();
- for (int i = 0; i < padding.length; i++) {
- if (padding[i] != null) {
- bp.padding[i] = (ResolvedCondLength) padding[i].clone();
- }
- if (borderInfo[i] != null) {
- bp.borderInfo[i] = (BorderInfo) borderInfo[i].clone();
- }
- }
- return bp;
- }
-
- public static class BorderInfo implements Cloneable {
- private int mStyle; // Enum for border style
- private ColorType mColor; // Border color
- private ResolvedCondLength mWidth;
-
- BorderInfo(int style, CondLength width, ColorType color) {
- mStyle = style;
- mWidth = new ResolvedCondLength(width);
- mColor = color;
- }
-
- public Object clone() throws CloneNotSupportedException {
- BorderInfo bi = (BorderInfo) super.clone();
- bi.mWidth = (ResolvedCondLength) mWidth.clone();
- // do we need to clone the Color too???
- return bi;
- }
- }
-
- private BorderInfo[] borderInfo = new BorderInfo[4];
- private ResolvedCondLength[] padding = new ResolvedCondLength[4];
-
- public void setBorder(int side, int style, CondLength width,
- ColorType color) {
- borderInfo[side] = new BorderInfo(style, width, color);
- }
-
- public void setPadding(int side, CondLength width) {
- padding[side] = new ResolvedCondLength(width);
- }
-
- public void setPaddingLength(int side, int iLength) {
- padding[side].iLength = iLength;
- }
-
- public void setBorderLength(int side, int iLength) {
- borderInfo[side].mWidth.iLength = iLength;
- }
-
- public int getBorderLeftWidth(boolean bDiscard) {
- return getBorderWidth(LEFT, bDiscard);
- }
-
- public int getBorderRightWidth(boolean bDiscard) {
- return getBorderWidth(RIGHT, bDiscard);
- }
-
- public int getBorderTopWidth(boolean bDiscard) {
- return getBorderWidth(TOP, bDiscard);
- }
-
- public int getBorderBottomWidth(boolean bDiscard) {
- return getBorderWidth(BOTTOM, bDiscard);
- }
-
- public int getPaddingLeft(boolean bDiscard) {
- return getPadding(LEFT, bDiscard);
- }
-
- public int getPaddingRight(boolean bDiscard) {
- return getPadding(RIGHT, bDiscard);
- }
-
- public int getPaddingBottom(boolean bDiscard) {
- return getPadding(BOTTOM, bDiscard);
- }
-
- public int getPaddingTop(boolean bDiscard) {
- return getPadding(TOP, bDiscard);
- }
-
-
- public int getBorderWidth(int side, boolean bDiscard) {
- if ((borderInfo[side] == null)
- || (borderInfo[side].mStyle == Constants.NONE)
- || (bDiscard && borderInfo[side].mWidth.bDiscard)) {
- return 0;
- } else {
- return borderInfo[side].mWidth.iLength;
- }
- }
-
- public ColorType getBorderColor(int side) {
- if (borderInfo[side] != null) {
- return borderInfo[side].mColor;
- } else {
- return null;
- }
- }
-
- public int getBorderStyle(int side) {
- if (borderInfo[side] != null) {
- return borderInfo[side].mStyle;
- } else {
- return 0;
- }
- }
-
- public int getPadding(int side, boolean bDiscard) {
- if ((padding[side] == null) || (bDiscard && padding[side].bDiscard)) {
- return 0;
- } else {
- return padding[side].iLength;
- }
- }
-
-}
+++ /dev/null
-/*
- * $Id: HyphenationProps.java,v 1.4 2003/03/06 22:19:16 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all hyphenation related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class HyphenationProps {
-
- public int hyphenate; // Enum true or false: store as boolean!
- public char hyphenationChar;
- public int hyphenationPushCharacterCount;
- public int hyphenationRemainCharacterCount;
- public String language; // Language code or enum "NONE"
- public String country; // Country code or enum "NONE"
-
-}
+++ /dev/null
-/*
- * $Id: MarginInlineProps.java,v 1.3 2003/03/06 22:19:16 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all inline "margin" related properties
- * Public "structure" allows direct member access.
- */
-public class MarginInlineProps {
-
- public int marginTop;
- public int marginBottom;
- public int marginLeft;
- public int marginRight;
- public int spaceStart;
- public int spaceEnd;
-
-}
+++ /dev/null
-/*
- * $Id: MarginProps.java,v 1.4 2003/03/06 22:19:16 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all block-level margin related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class MarginProps {
-
- public int marginTop;
- public int marginBottom;
- public int marginLeft;
- public int marginRight;
- public int spaceBefore;
- public int spaceAfter;
- public int startIndent;
- public int endIndent;
-
-}
+++ /dev/null
-/*
- * $Id: RelativePositionProps.java,v 1.2 2003/03/06 22:19:15 jeremias Exp $
- * ============================================================================
- * The Apache Software License, Version 1.1
- * ============================================================================
- *
- * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modifica-
- * tion, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. The end-user documentation included with the redistribution, if any, must
- * include the following acknowledgment: "This product includes software
- * developed by the Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself, if
- * and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "FOP" and "Apache Software Foundation" must not be used to
- * endorse or promote products derived from this software without prior
- * written permission. For written permission, please contact
- * apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache", nor may
- * "Apache" appear in their name, without prior written permission of the
- * Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * ============================================================================
- *
- * This software consists of voluntary contributions made by many individuals
- * 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.layout;
-
-/**
- * Store all hyphenation related properties on an FO.
- * Public "structure" allows direct member access.
- */
-public class RelativePositionProps {
-
- public int marginTop;
- public int marginBottom;
- public int marginLeft;
- public int marginRight;
- public int spaceBefore;
- public int spaceAfter;
- public int startIndent;
- public int endIndent;
-
-}
import org.apache.fop.area.BlockViewport;
import org.apache.fop.area.Block;
import org.apache.fop.fo.PropertyManager;
-import org.apache.fop.layout.AbsolutePositionProps;
+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;
private List childBreaks = new java.util.ArrayList();
- private AbsolutePositionProps abProps;
+ private CommonAbsolutePosition abProps;
private FODimension relDims;
private CTM absoluteCTM;
private boolean clip = false;
import org.apache.fop.area.Block;
import org.apache.fop.area.LineArea;
import org.apache.fop.traits.LayoutProps;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
/**
* LayoutManager for a block FO.
private Block curBlockArea;
private LayoutProps layoutProps;
- private BorderAndPadding borderProps;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps;
+ private CommonBackground backgroundProps;
private int lead = 12000;
private int lineHeight = 14000;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyManager;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import org.apache.fop.traits.InlineProps;
import org.apache.fop.area.Area;
import org.apache.fop.area.inline.InlineArea;
private InlineProps inlineProps = null;
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private Area currentArea; // LineArea or InlineParent
inlineProps = propMgr.getInlineProps();
borderProps = propMgr.getBorderAndPadding();
// Calculdate border and padding size in BPD
- int iPad = borderProps.getPadding(BorderAndPadding.BEFORE, false);
- iPad += borderProps.getBorderWidth(BorderAndPadding.BEFORE,
+ int iPad = borderProps.getPadding(CommonBorderAndPadding.BEFORE, false);
+ iPad += borderProps.getBorderWidth(CommonBorderAndPadding.BEFORE,
false);
- iPad += borderProps.getPadding(BorderAndPadding.AFTER, false);
- iPad += borderProps.getBorderWidth(BorderAndPadding.AFTER, false);
+ iPad += borderProps.getPadding(CommonBorderAndPadding.AFTER, false);
+ iPad += borderProps.getBorderWidth(CommonBorderAndPadding.AFTER, false);
extraBPD = new MinOptMax(iPad);
backgroundProps = propMgr.getBackgroundProps();
}
private MinOptMax getExtraIPD(boolean bNotFirst, boolean bNotLast) {
- int iBP = borderProps.getPadding(BorderAndPadding.START,
+ int iBP = borderProps.getPadding(CommonBorderAndPadding.START,
bNotFirst);
- iBP += borderProps.getBorderWidth(BorderAndPadding.START,
+ iBP += borderProps.getBorderWidth(CommonBorderAndPadding.START,
bNotFirst);
- iBP += borderProps.getPadding(BorderAndPadding.END, bNotLast);
- iBP += borderProps.getBorderWidth(BorderAndPadding.END, bNotLast);
+ iBP += borderProps.getPadding(CommonBorderAndPadding.END, bNotLast);
+ iBP += borderProps.getBorderWidth(CommonBorderAndPadding.END, bNotLast);
return new MinOptMax(iBP);
}
protected boolean hasLeadingFence(boolean bNotFirst) {
- int iBP = borderProps.getPadding(BorderAndPadding.START,
+ int iBP = borderProps.getPadding(CommonBorderAndPadding.START,
bNotFirst);
- iBP += borderProps.getBorderWidth(BorderAndPadding.START,
+ iBP += borderProps.getBorderWidth(CommonBorderAndPadding.START,
bNotFirst);
return (iBP > 0);
}
protected boolean hasTrailingFence(boolean bNotLast) {
- int iBP = borderProps.getPadding(BorderAndPadding.END, bNotLast);
- iBP += borderProps.getBorderWidth(BorderAndPadding.END, bNotLast);
+ int iBP = borderProps.getPadding(CommonBorderAndPadding.END, bNotLast);
+ iBP += borderProps.getBorderWidth(CommonBorderAndPadding.END, bNotLast);
return (iBP > 0);
}
package org.apache.fop.layoutmgr;
import org.apache.fop.fo.PropertyManager;
-import org.apache.fop.layout.MarginProps;
-import org.apache.fop.layout.HyphenationProps;
+import org.apache.fop.fo.properties.CommonMarginBlock;
+import org.apache.fop.fo.properties.CommonHyphenation;
import org.apache.fop.layout.hyphenation.Hyphenation;
import org.apache.fop.layout.hyphenation.Hyphenator;
import org.apache.fop.traits.BlockProps;
private int bTextAlignment = TextAlign.JUSTIFY;
private int iTextIndent = 0;
private int iIndents = 0;
- private HyphenationProps hyphProps;
+ private CommonHyphenation hyphProps;
private int lineHeight;
private int lead;
* @see org.apache.fop.layoutmgr.AbstractLayoutManager#initProperties(PropertyManager)
*/
protected void initProperties(PropertyManager propMgr) {
- MarginProps marginProps = propMgr.getMarginProps();
+ CommonMarginBlock marginProps = propMgr.getMarginProps();
iIndents = marginProps.startIndent + marginProps.endIndent;
BlockProps blockProps = propMgr.getBlockProps();
bTextAlignment = blockProps.textAlign;
*/
package org.apache.fop.layoutmgr;
-import org.apache.fop.layout.BorderAndPadding;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.traits.BorderProps;
import org.apache.fop.area.Area;
import org.apache.fop.area.Trait;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBackground;
/**
* This is a helper class used for setting common traits on areas.
* @param bpProps border and padding properties
*/
public static void setBorderPaddingTraits(Area area,
- BorderAndPadding bpProps, boolean bNotFirst, boolean bNotLast) {
+ CommonBorderAndPadding bpProps, boolean bNotFirst, boolean bNotLast) {
int iBP;
- iBP = bpProps.getPadding(BorderAndPadding.START, bNotFirst);
+ iBP = bpProps.getPadding(CommonBorderAndPadding.START, bNotFirst);
if (iBP > 0) {
//area.addTrait(new Trait(Trait.PADDING_START, new Integer(iBP)));
area.addTrait(Trait.PADDING_START, new Integer(iBP));
}
- iBP = bpProps.getPadding(BorderAndPadding.END, bNotLast);
+ iBP = bpProps.getPadding(CommonBorderAndPadding.END, bNotLast);
if (iBP > 0) {
//area.addTrait(new Trait(Trait.PADDING_END, new Integer(iBP)));
area.addTrait(Trait.PADDING_END, new Integer(iBP));
}
- iBP = bpProps.getPadding(BorderAndPadding.BEFORE, false);
+ iBP = bpProps.getPadding(CommonBorderAndPadding.BEFORE, false);
if (iBP > 0) {
// area.addTrait(new Trait(Trait.PADDING_BEFORE, new Integer(iBP)));
area.addTrait(Trait.PADDING_BEFORE, new Integer(iBP));
}
- iBP = bpProps.getPadding(BorderAndPadding.AFTER, false);
+ iBP = bpProps.getPadding(CommonBorderAndPadding.AFTER, false);
if (iBP > 0) {
//area.addTrait(new Trait(Trait.PADDING_AFTER, new Integer(iBP)));
area.addTrait(Trait.PADDING_AFTER, new Integer(iBP));
}
addBorderTrait(area, bpProps, bNotFirst,
- BorderAndPadding.START, Trait.BORDER_START);
+ CommonBorderAndPadding.START, Trait.BORDER_START);
- addBorderTrait(area, bpProps, bNotLast, BorderAndPadding.END,
+ addBorderTrait(area, bpProps, bNotLast, CommonBorderAndPadding.END,
Trait.BORDER_END);
- addBorderTrait(area, bpProps, false, BorderAndPadding.BEFORE,
+ addBorderTrait(area, bpProps, false, CommonBorderAndPadding.BEFORE,
Trait.BORDER_BEFORE);
- addBorderTrait(area, bpProps, false, BorderAndPadding.AFTER,
+ addBorderTrait(area, bpProps, false, CommonBorderAndPadding.AFTER,
Trait.BORDER_AFTER);
}
* @param bpProps border and padding properties
*/
private static void addBorderTrait(Area area,
- BorderAndPadding bpProps,
+ CommonBorderAndPadding bpProps,
boolean bDiscard, int iSide,
Object oTrait) {
int iBP = bpProps.getBorderWidth(iSide, bDiscard);
* @param curBlock area to set the traits on
* @param bordProps border properties
*/
- public static void addBorders(Area curBlock, BorderAndPadding bordProps) {
- BorderProps bps = getBorderProps(bordProps, BorderAndPadding.TOP);
+ public static void addBorders(Area curBlock, CommonBorderAndPadding bordProps) {
+ BorderProps bps = getBorderProps(bordProps, CommonBorderAndPadding.TOP);
if (bps.width != 0) {
curBlock.addTrait(Trait.BORDER_BEFORE, bps);
}
- bps = getBorderProps(bordProps, BorderAndPadding.BOTTOM);
+ bps = getBorderProps(bordProps, CommonBorderAndPadding.BOTTOM);
if (bps.width != 0) {
curBlock.addTrait(Trait.BORDER_AFTER, bps);
}
- bps = getBorderProps(bordProps, BorderAndPadding.LEFT);
+ bps = getBorderProps(bordProps, CommonBorderAndPadding.LEFT);
if (bps.width != 0) {
curBlock.addTrait(Trait.BORDER_START, bps);
}
- bps = getBorderProps(bordProps, BorderAndPadding.RIGHT);
+ bps = getBorderProps(bordProps, CommonBorderAndPadding.RIGHT);
if (bps.width != 0) {
curBlock.addTrait(Trait.BORDER_END, bps);
}
}
- private static BorderProps getBorderProps(BorderAndPadding bordProps, int side) {
+ private static BorderProps getBorderProps(CommonBorderAndPadding bordProps, int side) {
BorderProps bps;
bps = new BorderProps(bordProps.getBorderStyle(side),
bordProps.getBorderWidth(side, false),
* @param curBlock the current block
* @param backProps the background properties
*/
- public static void addBackground(Area curBlock, BackgroundProps backProps) {
+ public static void addBackground(Area curBlock, CommonBackground backProps) {
Trait.Background back = new Trait.Background();
back.setColor(backProps.backColor);
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.ArrayList;
import java.util.List;
*/
public class Item extends BlockStackingLayoutManager {
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private Block curBlockArea;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.ArrayList;
import java.util.List;
* the list block area..
*/
public class ListBlockLayoutManager extends BlockStackingLayoutManager {
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private Block curBlockArea;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.Iterator;
import java.util.ArrayList;
private List cellList = null;
private int listItemHeight;
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private class ItemPosition extends LeafPosition {
protected List cellBreaks;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.ArrayList;
import java.util.List;
* Cells are organised into rows.
*/
public class Body extends BlockStackingLayoutManager {
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private boolean rows = true;
private List columns;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.ArrayList;
import java.util.List;
*/
public class Cell extends BlockStackingLayoutManager {
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private Block curBlockArea;
import org.apache.fop.fo.flow.TableColumn;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
/**
* LayoutManager for a table-column FO.
*/
public class Column extends AbstractLayoutManager {
private int columnWidth;
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
/**
* Create a new column layout manager.
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.Iterator;
import java.util.ArrayList;
private List columns = null;
private int rowHeight;
private int yoffset;
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private class RowPosition extends LeafPosition {
protected List cellBreaks;
import org.apache.fop.area.Area;
import org.apache.fop.area.Block;
import org.apache.fop.layoutmgr.MinOptMax;
-import org.apache.fop.layout.BorderAndPadding;
-import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.fo.properties.CommonBorderAndPadding;
+import org.apache.fop.fo.properties.CommonBackground;
import java.util.ArrayList;
import java.util.List;
private Body tableHeader = null;
private Body tableFooter = null;
- private BorderAndPadding borderProps = null;
- private BackgroundProps backgroundProps;
+ private CommonBorderAndPadding borderProps = null;
+ private CommonBackground backgroundProps;
private Block curBlockArea;