MessageHandler.errorln("WARNING: Unknown formatting object "
+ fullName);
}
- fobjMaker = new FObjMixed.Maker(); // fall back
+ fobjMaker = new Unknown.Maker(); // fall back
}
-
try {
PropertyList list = null;
if (currentListBuilder != null) {
// don't know what to do here
}
}
+/*
+ // if value is inherit then get computed value from
+ // parent
+ // namespaces??
+ if(p != null && "inherit".equals(p.getString())) {
+ if (this.parentPropertyList != null) {
+ p = parentPropertyList.get(propertyName, true, false);
+ }
+ }
+*/
if (subpropName != null && p != null) {
return this.builder.getSubpropValue(namespace, element,
propertyName, p, subpropName);
import org.apache.fop.layout.BorderAndPadding;
import org.apache.fop.layout.MarginProps;
import org.apache.fop.layout.BackgroundProps;
+import org.apache.fop.layout.MarginInlineProps;
+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.BreakAfter;
import org.apache.fop.fo.properties.BreakBefore;
import org.apache.fop.fo.properties.Constants;
return bp;
}
+ public MarginInlineProps getMarginInlineProps() {
+ MarginInlineProps props = new MarginInlineProps();
+ return props;
+ }
+
+ public AccessibilityProps getAccessibilityProps() {
+ AccessibilityProps props = new AccessibilityProps();
+ String str;
+ str = this.properties.get("source-document").getString();
+ if(!"none".equals(str)) {
+ props.sourceDoc = str;
+ }
+ str = this.properties.get("role").getString();
+ if(!"none".equals(str)) {
+ props.role = str;
+ }
+ return props;
+ }
+
+ public AuralProps getAuralProps() {
+ AuralProps props = new AuralProps();
+ return props;
+ }
+
+ public RelativePositionProps getRelativePositionProps() {
+ RelativePositionProps props = new RelativePositionProps();
+ return props;
+ }
+
+ public AbsolutePositionProps getAbsolutePositionProps() {
+ AbsolutePositionProps props = new AbsolutePositionProps();
+ return props;
+ }
}
// FOP
import org.apache.fop.fo.*;
+import org.apache.fop.datatypes.*;
+import org.apache.fop.layout.*;
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
this.name = "fo:title";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ FontState fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ Property prop;
+ prop = this.properties.get("baseline-shift");
+ if (prop instanceof LengthProperty) {
+ Length bShift = prop.getLength();
+ } else if (prop instanceof EnumProperty) {
+ int bShift = prop.getEnum();
+ }
+ ColorType col = this.properties.get("color").getColorType();
+ Length lHeight = this.properties.get("line-height").getLength();
+ int lShiftAdj = this.properties.get(
+ "line-height-shift-adjustment").getEnum();
+ int vis = this.properties.get("visibility").getEnum();
+ Length zIndex = this.properties.get("z-index").getLength();
+
+ return super.layout(area);
+ }
}
--- /dev/null
+/*
+ * $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
+ */
+
+package org.apache.fop.fo;
+
+// FOP
+import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
+import org.apache.fop.messaging.MessageHandler;
+import org.apache.fop.fo.flow.*;
+import org.apache.fop.fo.properties.*;
+import org.apache.fop.layout.AreaTree;
+import org.apache.fop.apps.FOPException;
+
+/**
+ * This represents an unknown element.
+ * For example with unsupported namespaces.
+ * This prevents any further problems arising from the unknown
+ * data.
+ */
+public class Unknown extends FObj {
+
+ public static class Maker extends FObj.Maker {
+ public FObj make(FObj parent,
+ PropertyList propertyList) throws FOPException {
+ return new Unknown(parent, propertyList);
+ }
+
+ }
+
+ public static FObj.Maker maker() {
+ return new Unknown.Maker();
+ }
+
+ protected Unknown(FObj parent,
+ PropertyList propertyList) throws FOPException {
+ super(parent, propertyList);
+ this.name = "unknown";
+ }
+
+ public Status layout(Area area) throws FOPException {
+ MessageHandler.logln("Layout Unknown element");
+ return new Status(Status.OK);
+ }
+}
String destination;
int linkType;
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("destination-place-offset");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("external-destination");
+ // this.properties.get("id");
+ // this.properties.get("indicate-destination");
+ // this.properties.get("internal-destination");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("show-destination");
+ // this.properties.get("target-processing-context");
+ // this.properties.get("target-presentation-context");
+ // this.properties.get("target-stylesheet");
+
if (!(destination =
this.properties.get("internal-destination").getString()).equals("")) {
linkType = LinkSet.INTERNAL;
// FOP
import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
this.name = "fo:bidi-override";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Margin Properties-Inline
+ RelativePositionProps mProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("color");
+ // this.properties.get("direction");
+ // this.properties.get("id");
+ // this.properties.get("letter-spacing");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("score-spaces");
+ // this.properties.get("text-shadow");
+ // this.properties.get("text-transform");
+ // this.properties.get("unicode-bidi");
+ // this.properties.get("word-spacing");
+
+ return super.layout(area);
+ }
}
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Hyphenation Properties
+ HyphenationProps mHyphProps = propMgr.getHyphenationProps();
+
+ // Common Margin Properties-Block
+ MarginProps mProps = propMgr.getMarginProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("break-after");
+ // this.properties.get("break-before");
+ // this.properties.get("color");
+ // this.properties.get("text-depth");
+ // this.properties.get("text-altitude");
+ // this.properties.get("hyphenation-keep");
+ // this.properties.get("hyphenation-ladder-count");
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("last-line-end-indent");
+ // this.properties.get("linefeed-treatment");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("line-stacking-strategy");
+ // this.properties.get("orphans");
+ // this.properties.get("space-treatment");
+ // this.properties.get("span");
+ // this.properties.get("text-align");
+ // this.properties.get("text-align-last");
+ // this.properties.get("text-indent");
+ // this.properties.get("visibility");
+ // this.properties.get("white-space-collapse");
+ // this.properties.get("widows");
+ // this.properties.get("wrap-option");
+ // this.properties.get("z-index");
+
this.align = this.properties.get("text-align").getEnum();
this.alignLast = this.properties.get("text-align-last").getEnum();
this.breakAfter = this.properties.get("break-after").getEnum();
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
+
+ // Common Accessibility Properties
+ AbsolutePositionProps mAbsProps = propMgr.getAbsolutePositionProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin-Block Properties
+ MarginProps mProps = propMgr.getMarginProps();
+
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("break-after");
+ // this.properties.get("break-before");
+ // this.properties.get("clip");
+ // this.properties.get("display-align");
+ // this.properties.get("height");
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("overflow");
+ // this.properties.get("reference-orientation");
+ // this.properties.get("span");
+ // this.properties.get("width");
+ // this.properties.get("writing-mode");
+
this.marker = 0;
this.backgroundColor =
blockArea = (BlockArea)area;
boolean textDecoration;
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Hyphenation Properties
+ HyphenationProps mHyphProps = propMgr.getHyphenationProps();
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("treat-as-word-space");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("character");
+ // this.properties.get("color");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("text-depth");
+ // this.properties.get("text-altitude");
+ // this.properties.get("glyph-orientation-horizontal");
+ // this.properties.get("glyph-orientation-vertical");
+ // this.properties.get("id");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("letter-spacing");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("score-spaces");
+ // this.properties.get("suppress-at-line-break");
+ // this.properties.get("text-decoration");
+ // this.properties.get("text-shadow");
+ // this.properties.get("text-transform");
+ // this.properties.get("word-spacing");
+
// color properties
ColorType c = this.properties.get("color").getColorType();
float red = c.red();
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("content-height");
+ // this.properties.get("content-type");
+ // this.properties.get("content-width");
+ // this.properties.get("display-align");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("height");
+ // this.properties.get("id");
+ // this.properties.get("inline-progression-dimension");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("overflow");
+ // this.properties.get("scaling");
+ // this.properties.get("scaling-method");
+ // this.properties.get("src");
+ // this.properties.get("text-align");
+ // this.properties.get("width");
+
// FIXME
this.align = this.properties.get("text-align").getEnum();
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:float";
}
+ public Status layout(Area area) throws FOPException {
+
+ // this.properties.get("float");
+ // this.properties.get("clear");
+
+ return super.layout(area);
+ }
}
// FOP
import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
this.name = "fo:initial-property-set";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("color");
+ // this.properties.get("id");
+ // this.properties.get("letter-spacing");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("score-spaces");
+ // this.properties.get("text-decoration");
+ // this.properties.get("text-shadow");
+ // this.properties.get("text-transform");
+ // this.properties.get("word-spacing");
+
+ return super.layout(area);
+ }
}
// FOP
import org.apache.fop.fo.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.properties.*;
super(parent, propertyList);
this.name = "fo:inline";
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("color");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("text-devoration");
+ // this.properties.get("visibility");
+ // this.properties.get("z-index");
+
int textDecoration = this.properties.get("text-decoration").getEnum();
if (textDecoration == TextDecoration.UNDERLINE) {
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
this.name = "fo:inline-container";
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("clip");
+ // this.properties.get("display-align");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("height");
+ // this.properties.get("id");
+ // this.properties.get("inline-progression-dimension");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("overflow");
+ // this.properties.get("reference-orientation");
+ // this.properties.get("width");
+ // this.properties.get("writing-mode");
}
}
}
if (this.marker == START) {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("content-height");
+ // this.properties.get("content-type");
+ // this.properties.get("content-width");
+ // this.properties.get("display-align");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("height");
+ // this.properties.get("id");
+ // this.properties.get("inline-progression-dimension");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("overflow");
+ // this.properties.get("scaling");
+ // this.properties.get("scaling-method");
+ // this.properties.get("text-align");
+ // this.properties.get("width");
+
/* retrieve properties */
String id = this.properties.get("id").getString();
int align = this.properties.get("text-align").getEnum();
import org.apache.fop.fo.*;
import org.apache.fop.fo.properties.*;
import org.apache.fop.datatypes.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
import org.apache.fop.layout.BlockArea;
import org.apache.fop.layout.inline.LeaderArea;
import org.apache.fop.layout.LineArea;
blockArea = (BlockArea)area;
}
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("color");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("text-depth");
+ // this.properties.get("text-altitude");
+ // this.properties.get("id");
+ // this.properties.get("leader-alignment");
+ // this.properties.get("leader-length");
+ // this.properties.get("leader-pattern");
+ // this.properties.get("leader-pattern-width");
+ // this.properties.get("rule-style");
+ // this.properties.get("rule-thickness");
+ // this.properties.get("letter-spacing");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("text-shadow");
+ // this.properties.get("visibility");
+ // this.properties.get("word-spacing");
+ // this.properties.get("z-index");
+
// color properties
ColorType c = this.properties.get("color").getColorType();
float red = c.red();
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.properties.*;
import org.apache.fop.datatypes.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
import org.apache.fop.layout.BlockArea;
import org.apache.fop.layout.FontState;
import org.apache.fop.apps.FOPException;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Block
+ MarginProps mProps = propMgr.getMarginProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("break-after");
+ // this.properties.get("break-before");
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("provisional-distance-between-starts");
+ // this.properties.get("provisional-label-separation");
+
this.align = this.properties.get("text-align").getEnum();
this.alignLast = this.properties.get("text-align-last").getEnum();
this.lineHeight =
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
import org.apache.fop.layout.BlockArea;
import org.apache.fop.layout.FontState;
import org.apache.fop.apps.FOPException;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Block
+ MarginProps mProps = propMgr.getMarginProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("break-after");
+ // this.properties.get("break-before");
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("relative-align");
+
this.align = this.properties.get("text-align").getEnum();
this.alignLast = this.properties.get("text-align-last").getEnum();
this.lineHeight =
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
import org.apache.fop.layout.FontState;
import org.apache.fop.apps.FOPException;
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+
this.marker = 0;
// initialize id
String id = this.properties.get("id").getString();
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.Area;
+import org.apache.fop.layout.*;
import org.apache.fop.layout.FontState;
import org.apache.fop.apps.FOPException;
throw new FOPException("list-item-label must have exactly one block in this version of FOP");
}
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+
// initialize id
String id = this.properties.get("id").getString();
area.getIDReferences().initializeID(id, area);
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:multi-case";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("id");
+ // this.properties.get("starting-state");
+ // this.properties.get("case-name");
+ // this.properties.get("case-title");
+
+ return super.layout(area);
+ }
}
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:multi-properties";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("id");
+
+ return super.layout(area);
+ }
}
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:multi-property-set";
}
+ public Status layout(Area area) throws FOPException {
+
+ // this.properties.get("id");
+ // this.properties.get("active-state");
+
+ return super.layout(area);
+ }
}
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:multi-switch";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("auto-restore");
+ // this.properties.get("id");
+
+ return super.layout(area);
+ }
}
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:multi-toggle";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("id");
+ // this.properties.get("switch-to");
+
+ return super.layout(area);
+ }
}
// FOP
import org.apache.fop.fo.*;
+import org.apache.fop.layout.*;
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.datatypes.*;
import org.apache.fop.fo.properties.*;
}
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("id");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("letter-spacing");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("score-spaces");
+ // this.properties.get("text-decoration");
+ // this.properties.get("text-shadow");
+ // this.properties.get("text-transform");
+ // this.properties.get("word-spacing");
+
ColorType c = this.properties.get("color").getColorType();
this.red = c.red();
this.green = c.green();
this.area = area;
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Font Properties
+ //this.fontState = propMgr.getFontState(area.getFontInfo());
+
+ // Common Margin Properties-Inline
+ MarginInlineProps mProps = propMgr.getMarginInlineProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("alignment-adjust");
+ // this.properties.get("alignment-baseline");
+ // this.properties.get("baseline-shift");
+ // this.properties.get("dominant-baseline");
+ // this.properties.get("id");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("letter-spacing");
+ // this.properties.get("line-height");
+ // this.properties.get("line-height-shift-adjustment");
+ // this.properties.get("ref-id");
+ // this.properties.get("score-spaces");
+ // this.properties.get("text-decoration");
+ // this.properties.get("text-shadow");
+ // this.properties.get("text-transform");
+ // this.properties.get("word-spacing");
+
ColorType c = this.properties.get("color").getColorType();
this.red = c.red();
this.green = c.green();
}
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Block
+ MarginProps mProps = propMgr.getMarginProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("border-after-precendence");
+ // this.properties.get("border-before-precedence");
+ // this.properties.get("border-collapse");
+ // this.properties.get("border-end-precendence");
+ // this.properties.get("border-separation");
+ // this.properties.get("border-start-precendence");
+ // this.properties.get("break-after");
+ // this.properties.get("break-before");
+ // this.properties.get("id");
+ // this.properties.get("inline-progression-dimension");
+ // this.properties.get("height");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+ // this.properties.get("table-layout");
+ // this.properties.get("table-omit-footer-at-break");
+ // this.properties.get("table-omit-header-at-break");
+ // this.properties.get("width");
+ // this.properties.get("writing-mode");
+
this.breakBefore = this.properties.get("break-before").getEnum();
this.breakAfter = this.properties.get("break-after").getEnum();
this.spaceBefore =
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:table-and-caption";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Margin Properties-Block
+ MarginProps mProps = propMgr.getMarginProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("caption-side");
+ // this.properties.get("id");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+
+ return super.layout(area);
+ }
}
if (this.marker == START) {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("id");
+
this.spaceBefore =
this.properties.get("space-before.optimum").getLength().mvalue();
this.spaceAfter =
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
+import org.apache.fop.layout.*;
import org.apache.fop.apps.FOPException;
/**
this.name = "fo:table-caption";
}
+ public Status layout(Area area) throws FOPException {
+
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("height");
+ // this.properties.get("id");
+ // this.properties.get("inline-progression-dimension");
+ // this.properties.get("keep-togethe");
+ // this.properties.get("width");
+
+ return super.layout(area);
+ }
}
public void doSetup() // throws FOPException
{
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // Common Aural Properties
+ AuralProps mAurProps = propMgr.getAuralProps();
+
+ // Common Border, Padding, and Background Properties
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("border-after-precedence");
+ // this.properties.get("border-before-precendence");
+ // this.properties.get("border-end-precendence");
+ // this.properties.get("border-start-precendence");
+ // this.properties.get("block-progression-dimension");
+ // this.properties.get("column-number");
+ // this.properties.get("display-align");
+ // this.properties.get("relative-align");
+ // this.properties.get("empty-cells");
+ // this.properties.get("ends-row");
+ // this.properties.get("height");
+ // this.properties.get("id");
+ // this.properties.get("number-columns-spanned");
+ // this.properties.get("number-rows-spanned");
+ // this.properties.get("starts-row");
+ // this.properties.get("width");
+
this.iColNumber =
properties.get("column-number").getNumber().intValue();
if (iColNumber < 0) {
public void doSetup(Area area) throws FOPException {
+ // Common Border, Padding, and Background Properties
+ // only background apply, border apply if border-collapse
+ // is collapse.
+ BorderAndPadding bap = propMgr.getBorderAndPadding();
+ BackgroundProps bProps = propMgr.getBackgroundProps();
+
+ // this.properties.get("column-number");
+ // this.properties.get("column-width");
+ // this.properties.get("number-columns-repeated");
+ // this.properties.get("number-columns-spanned");
+ // this.properties.get("visibility");
+
+
this.numColumnsRepeated =
this.properties.get("number-columns-repeated").getNumber().intValue();
public void doSetup(Area area) throws FOPException {
+ // Common Accessibility Properties
+ AccessibilityProps mAccProps = propMgr.getAccessibilityProps();
+
+ // this.properties.get("block-progression-dimension");
+
+ // Common Aural Properties
+ AuralProps 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();
+
+ // Common Relative Position Properties
+ RelativePositionProps mRelProps = propMgr.getRelativePositionProps();
+
+ // this.properties.get("break-before");
+ // this.properties.get("break-after");
+ // this.properties.get("id");
+ // this.properties.get("height");
+ // this.properties.get("keep-together");
+ // this.properties.get("keep-with-next");
+ // this.properties.get("keep-with-previous");
+
+
this.breakAfter = this.properties.get("break-after").getEnum();
this.backgroundColor =
this.properties.get("background-color").getColorType();