return textBuffer.toString();
}
+ public String getName() {
+ return "fop:label";
+ }
}
return _internalDestination;
}
+ public String getName() {
+ return "fop:outline";
+ }
}
import org.apache.fop.fo.*;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
import org.apache.fop.apps.FOPException;
-/**
- * The fo:root formatting object. Contains page masters, root extensions,
- * page-sequences.
- */
-public class ColorProfile extends ToBeImplementedElement {
+public class ColorProfile extends FObj {
public static class Maker extends FObj.Maker {
public FObj make(FObj parent,
PropertyList propertyList) throws FOPException {
return new ColorProfile(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
protected ColorProfile(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:color-profile";
-
+ log.warn("color profile not implemented");
// this.properties.get("src");
// this.properties.get("color-profile-name");
// this.properties.get("rendering-intent");
}
+ public String getName() {
+ return "fo:color-profile";
+ }
}
import org.apache.fop.fo.*;
import org.apache.fop.fo.flow.*;
import org.apache.fop.fo.properties.*;
-import org.apache.fop.layout.AreaTree;
import org.apache.fop.apps.FOPException;
-/**
- */
-public class Declarations extends ToBeImplementedElement {
+public class Declarations extends FObj {
public static class Maker extends FObj.Maker {
public FObj make(FObj parent,
PropertyList propertyList) throws FOPException {
return new Declarations(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
protected Declarations(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:declarations";
+ log.warn("declarations not implemented");
}
+ public String getName() {
+ return "fo:declarations";
+ }
}
/**
* base class for representation of formatting objects and their processing
*/
-public class FObj extends FONode {
-
- public static class Maker {
- public FObj make(FObj parent,
- PropertyList propertyList) throws FOPException {
- return new FObj(parent, propertyList);
- }
+public abstract class FObj extends FONode {
+ public abstract static class Maker {
+ abstract public FObj make(FObj parent,
+ PropertyList propertyList) throws FOPException;
}
- public static Maker maker() {
- return new Maker();
- }
+// public static Maker maker() {
+// return new Maker();
+// }
// protected PropertyList properties;
public PropertyList properties;
// markers
private Hashtable markers;
- protected String name;
+// protected String name;
protected FObj(FObj parent, PropertyList propertyList) {
super(parent);
this.properties = propertyList; // TO BE REMOVED!!!
propertyList.setFObj(this);
this.propMgr = makePropertyManager(propertyList);
- this.name = "default FO";
setWritingMode();
}
* returns the name of the formatting object
* @return the name of this formatting objects
*/
- public String getName() {
- return this.name;
- }
+ abstract public String getName();
/**
*
*/
- protected void start() {
- // do nothing by default
- }
+// protected void start() {
+// // do nothing by default
+// }
/**
*
* base class for representation of mixed content formatting objects
* and their processing
*/
-public class FObjMixed extends FObj {
+public abstract class FObjMixed extends FObj {
// Textdecoration
protected TextState ts;
private StringBuffer textBuffer;
- public static class Maker extends FObj.Maker {
- public FObj make(FObj parent,
- PropertyList propertyList) throws FOPException {
- return new FObjMixed(parent, propertyList);
- }
- }
-
- public static FObj.Maker maker() {
- return new FObjMixed.Maker();
- }
-
protected FObjMixed(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
}
protected Title(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:title";
+ }
+
+ public String getName() {
+ return "fo:title";
}
public Status layout(Area area) throws FOPException {
/**
*/
-public class ToBeImplementedElement extends FObj {
+public abstract class ToBeImplementedElement extends FObj {
protected ToBeImplementedElement(FObj parent, PropertyList propertyList)
throws FOPException {
}
public Status layout(Area area) throws FOPException {
- log.debug("This element \"" + this.name
- + "\" is not yet implemented.");
+ log.debug("The element '" + this.getName()
+ + "' is not yet implemented.");
return new Status(Status.OK);
}
protected Unknown(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "unknown";
+ }
+
+ public String getName() {
+ return "(unknown)";
}
public Status layout(Area area) throws FOPException {
* @param parent the parent formatting object
* @param propertyList the explicit properties of this object
*/
- protected UnknownXMLObj(FObj parent, PropertyList propertyList, String space, String tag) {
- super(parent, propertyList, tag);
- this.namespace = space;
- if(!"".equals(space)) {
- this.name = this.namespace + ":" + tag;
- } else {
- this.name = "(none):" + tag;
- }
+ protected UnknownXMLObj(FObj parent, PropertyList propertyList, String namespace, String name) {
+ super(parent, propertyList, name);
+ this.namespace = namespace;
}
public String getNameSpace() {
// this is an error
//throw new FOPException("Foreign XML not in fo:instream-foreign-object");
//}
- log.error("no handler defined for " + this.name + " foreign xml");
+ log.error("no handler defined for " + this.getName() + " foreign xml");
/* return status */
return new Status(Status.OK);
}
+
+ public String getName() {
+ return ""+namespace+":"+tagName;
+ }
}
init();
}
+ public String getName() {
+ return tagName;
+ }
+
/**
* layout this formatting object.
*
*/
public abstract class XMLObj extends FObj {
- protected String tagName = "";
+ protected String tagName;
protected Element element;
protected Document doc;
*/
public Status layout(Area area) throws FOPException {
/* generate a warning */
- log.error("" + this.name + " outside foreign xml");
+ log.error("" + this.tagName + " outside foreign xml");
/* return status */
return new Status(Status.OK);
PropertyList propertyList) throws FOPException {
return new BasicLink(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
public BasicLink(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:basic-link";
+ }
+
+ public String getName() {
+ return "fo:basic-link";
}
public Status layout(Area area) throws FOPException {
PropertyList propertyList) throws FOPException {
return new BidiOverride(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
protected BidiOverride(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:bidi-override";
+ }
+
+ public String getName() {
+ return "fo:bidi-override";
}
public Status layout(Area area) throws FOPException {
throws FOPException {
super(parent, propertyList);
- this.name = "fo:block";
this.span = this.properties.get("span").getEnum();
ts = propMgr.getTextDecoration(parent);
}
+ public String getName() {
+ return "fo:block";
+ }
+
public Status layout(Area area) throws FOPException {
BlockArea blockArea;
protected BlockContainer(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:block-container";
this.span = this.properties.get("span").getEnum();
}
+ public String getName() {
+ return "fo:block-container";
+ }
+
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
public final static int OK = 0;
public final static int DOESNOT_FIT = 1;
- public Character(FObj parent, PropertyList propertyList) {
- super(parent, propertyList);
- this.name = "fo:character";
- }
-
- public static FObj.Maker maker() {
- return new Character.Maker();
- }
-
-
public static class Maker extends FObj.Maker {
public FObj make(FObj parent,
PropertyList propertyList) throws FOPException {
return new Character(parent, propertyList);
}
+ }
+
+ public static FObj.Maker maker() {
+ return new Character.Maker();
+ }
+ public Character(FObj parent, PropertyList propertyList) {
+ super(parent, propertyList);
}
+ public String getName() {
+ return "fo:character";
+ }
public Status layout(Area area) throws FOPException {
BlockArea blockArea;
ImageArea imageArea;
+ public static class Maker extends FObj.Maker {
+ public FObj make(FObj parent,
+ PropertyList propertyList) throws FOPException {
+ return new ExternalGraphic(parent, propertyList);
+ }
+ }
+
+ public static FObj.Maker maker() {
+ return new ExternalGraphic.Maker();
+ }
public ExternalGraphic(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:external-graphic";
}
+ public String getName() {
+ return "fo:external-graphic";
+ }
public Status layout(Area area) throws FOPException {
return new Status(Status.OK);
}
-
- public static FObj.Maker maker() {
- return new ExternalGraphic.Maker();
- }
-
-
- public static class Maker extends FObj.Maker {
- public FObj make(FObj parent,
- PropertyList propertyList) throws FOPException {
- return new ExternalGraphic(parent, propertyList);
- }
-
- }
}
protected Float(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:float";
+ }
+
+ public String getName() {
+ return "fo:float";
}
public Status layout(Area area) throws FOPException {
protected Flow(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = getElementName();
if (parent.getName().equals("fo:page-sequence")) {
this.pageSequence = (PageSequence)parent;
} else {
- throw new FOPException("flow must be child of "
- + "page-sequence, not "
+ throw new FOPException("flow must be child of page-sequence, not "
+ parent.getName());
}
setFlowName(getProperty("flow-name").getString());
// fo:flow per fo:page-sequence only.
if (pageSequence.isFlowSet()) {
- if (this.name.equals("fo:flow")) {
+ if (getName().equals("fo:flow")) {
throw new FOPException("Only a single fo:flow permitted"
+ " per fo:page-sequence");
} else {
- throw new FOPException(this.name
+ throw new FOPException(getName()
+ " not allowed after fo:flow");
}
}
pageSequence.addFlow(this);
}
+ public String getName() {
+ return "fo:flow";
+ }
+
protected void setFlowName(String name) throws FOPException {
if (name == null || name.equals("")) {
log.warn("A 'flow-name' is required for "
- + getElementName()
+ + getName()
+ ". This constraint will be enforced in future versions of FOP");
_flowName = "xsl-region-body";
} else {
return this.contentWidth;
}
- protected String getElementName() {
- return "fo:flow";
- }
-
public Status getStatus() {
return _status;
}
public Footnote(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:footnote";
+ }
+
+ public String getName() {
+ return "fo:footnote";
}
public Status layout(Area area) throws FOPException {
public FootnoteBody(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:footnote-body";
this.areaClass = AreaClass.setAreaClass(AreaClass.XSL_FOOTNOTE);
}
+ public String getName() {
+ return "fo:footnote-body";
+ }
+
public Status layout(Area area) throws FOPException {
if (this.marker == START) {
this.marker = 0;
protected InitialPropertySet(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:initial-property-set";
+ }
+
+ public String getName() {
+ return "fo:initial-property-set";
}
public Status layout(Area area) throws FOPException {
public Inline(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:inline";
if (parent.getName().equals("fo:flow")) {
throw new FOPException("inline formatting objects cannot"
+ " be directly under flow");
ts = propMgr.getTextDecoration(parent);
}
+
+ public String getName() {
+ return "fo:inline";
+ }
+
}
PropertyList propertyList) throws FOPException {
return new InlineContainer(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
protected InlineContainer(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:inline-container";
// Common Border, Padding, and Background Properties
BorderAndPadding bap = propMgr.getBorderAndPadding();
// this.properties.get("writing-mode");
}
+ public String getName() {
+ return "fo:inline-container";
+ }
+
}
*/
public InstreamForeignObject(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:instream-foreign-object";
+ }
+
+ public String getName() {
+ return "fo:instream-foreign-object";
}
/**
public Leader(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:leader";
+ }
+
+ public String getName() {
+ return "fo:leader";
}
public Status layout(Area area) throws FOPException {
public ListBlock(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:list-block";
+ }
+
+ public String getName() {
+ return "fo:list-block";
}
public Status layout(Area area) throws FOPException {
public ListItem(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:list-item";
+ }
+
+ public String getName() {
+ return "fo:list-item";
}
public Status layout(Area area) throws FOPException {
public ListItemBody(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:list-item-body";
+ }
+
+ public String getName() {
+ return "fo:list-item-body";
}
public Status layout(Area area) throws FOPException {
public ListItemLabel(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:list-item-label";
+ }
+
+ public String getName() {
+ return "fo:list-item-label";
}
public Status layout(Area area) throws FOPException {
public Marker(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:marker";
// do check to see that 'this' is under fo:flow
}
}
+ public String getName() {
+ return "fo:marker";
+ }
+
public Status layout(Area area) throws FOPException {
// no layout action desired
this.registryArea = area;
PropertyList propertyList) throws FOPException {
return new MultiCase(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
protected MultiCase(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:multi-case";
+ }
+
+ public String getName() {
+ return "fo:multi-case";
}
public Status layout(Area area) throws FOPException {
protected MultiProperties(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:multi-properties";
+ }
+
+ public String getName() {
+ return "fo:multi-properties";
}
public Status layout(Area area) throws FOPException {
protected MultiPropertySet(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:multi-property-set";
+ }
+
+ public String getName() {
+ return "fo:multi-property-set";
}
public Status layout(Area area) throws FOPException {
protected MultiSwitch(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:multi-switch";
+ }
+
+ public String getName() {
+ return "fo:multi-switch";
}
public Status layout(Area area) throws FOPException {
protected MultiToggle(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:multi-toggle";
+ }
+
+ public String getName() {
+ return "fo:multi-toggle";
}
public Status layout(Area area) throws FOPException {
public PageNumber(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:page-number";
+ }
+
+ public String getName() {
+ return "fo:page-number";
}
public Status layout(Area area) throws FOPException {
public PageNumberCitation(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:page-number-citation";
}
+ public String getName() {
+ return "fo:page-number-citation";
+ }
public Status layout(Area area) throws FOPException {
if (!(area instanceof BlockArea)) {
// Java
import java.util.Vector;
-public class RetrieveMarker extends FObjMixed {
+public class RetrieveMarker extends FObj {
private String retrieveClassName;
private int retrievePosition;
public RetrieveMarker(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:retrieve-marker";
this.retrieveClassName =
this.properties.get("retrieve-class-name").getString();
this.properties.get("retrieve-boundary").getEnum();
}
+ public String getName() {
+ return "fo:retrieve-marker";
+ }
+
public Status layout(Area area) throws FOPException {
// locate qualifying areas by 'marker-class-name' and
// 'retrieve-boundary'. Initially we will always check
((PageSequence)parent).setIsFlowSet(false); // hacquery of sorts
}
+ public String getName() {
+ return "fo:static-content";
+ }
+
public Status layout(Area area) throws FOPException {
return layout(area, null);
}
return new Status(Status.OK);
}
- protected String getElementName() {
- return "fo:static-content";
- }
-
// flowname checking is more stringient for static content currently
protected void setFlowName(String name) throws FOPException {
if (name == null || name.equals("")) {
throw new FOPException("A 'flow-name' is required for "
- + getElementName() + ".");
+ + getName() + ".");
} else {
super.setFlowName(name);
}
public Table(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
- this.name = "fo:table";
+ }
+
+ public String getName() {
+ return "fo:table";
}
public Status layout(Area area) throws FOPException {
protected TableAndCaption(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-and-caption";
+ }
+
+ public String getName() {
+ return "fo:table-and-caption";
}
public Status layout(Area area) throws FOPException {
public TableBody(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-body";
+ }
+
+ public String getName() {
+ return "fo:table-body";
}
}
protected TableCaption(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-caption";
+ }
+
+ public String getName() {
+ return "fo:table-caption";
}
public Status layout(Area area) throws FOPException {
public TableCell(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-cell";
if (!(parent instanceof TableRow)) {
throw new FOPException("A table cell must be child of fo:table-row,"
+ " not " + parent.getName());
doSetup(); // init some basic property values
}
+ public String getName() {
+ return "fo:table-cell";
+ }
+
// Set position relative to table (set by body?)
public void setStartOffset(int offset) {
startOffset = offset;
PropertyList propertyList) throws FOPException {
return new TableColumn(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
public TableColumn(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-column";
if (!(parent instanceof Table)) {
throw new FOPException("A table column must be child of fo:table, not "
+ parent.getName());
}
}
+ public String getName() {
+ return "fo:table-column";
+ }
+
public Length getColumnWidthAsLength() {
return columnWidthPropVal;
}
public TableFooter(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-footer";
+ }
+
+ public String getName() {
+ return "fo:table-footer";
}
public int getYPosition() {
public TableHeader(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-header";
+ }
+
+ public String getName() {
+ return "fo:table-header";
}
}
public TableRow(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:table-row";
if (!(parent instanceof AbstractTableBody)) {
throw new FOPException("A table row must be child of fo:table-body,"
+ " fo:table-header or fo:table-footer, not "
}
}
+ public String getName() {
+ return "fo:table-row";
+ }
+
public void setColumns(Vector columns) {
this.columns = columns;
}
return new Wrapper.Maker();
}
+ public String getName() {
+ return "fo:wrapper";
+ }
+
public Wrapper(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
// check that this occurs inside an fo:flow
throws FOPException {
super(parent, propertyList);
- this.name = "fo:conditional-page-master-reference";
if (getProperty("master-reference") != null) {
this.masterName = getProperty("master-reference").getString();
}
this.blankOrNotBlank = this.properties.get("blank-or-not-blank").getEnum();
}
+ public String getName() {
+ return "fo:conditional-page-master-reference";
+ }
+
protected boolean isValid(boolean isOddPage, boolean isFirstPage,
boolean isEmptyPage) {
// page-position
PropertyList propertyList) throws FOPException {
return new LayoutMasterSet(parent, propertyList);
}
-
}
public static FObj.Maker maker() {
protected LayoutMasterSet(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:layout-master-set";
this.simplePageMasters = new Hashtable();
this.pageSequenceMasters = new Hashtable();
}
+ public String getName() {
+ return "fo:layout-master-set";
+ }
+
protected void addSimplePageMaster(SimplePageMaster simplePageMaster)
throws FOPException {
// check against duplication of master-name
return result;
}
-
}
protected PageSequence(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:page-sequence";
if (parent.getName().equals("fo:root")) {
this.root = (Root)parent;
// this.properties.get("id");
}
+ public String getName() {
+ return "fo:page-sequence";
+ }
public void addFlow(Flow flow) throws FOPException {
if (_flowMap.containsKey(flow.getFlowName())) {
protected PageSequenceMaster(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:page-sequence-master";
if (parent.getName().equals("fo:layout-master-set")) {
this.layoutMasterSet = (LayoutMasterSet)parent;
}
return pageMaster;
}
+
+ public String getName() {
+ return "fo:page-sequence-master";
+ }
+
}
protected Region(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = getElementName();
// regions may have name, or default
if (null == this.properties.get(PROP_REGION_NAME)) {
if (isReserved(getRegionName())
&&!getRegionName().equals(getDefaultRegionName())) {
throw new FOPException(PROP_REGION_NAME + " '" + _regionName
- + "' for " + this.name
+ + "' for " + this.getName()
+ " not permitted.");
}
}
_layoutMaster = (SimplePageMaster)parent;
getPageMaster().addRegion(this);
} else {
- throw new FOPException(getElementName() + " must be child "
+ throw new FOPException(getName() + " must be child "
+ "of simple-page-master, not "
+ parent.getName());
}
*/
protected abstract String getDefaultRegionName();
- /**
- * Returns the element name ("fo:region-body", "fo:region-start",
- * etc.)
- */
- protected abstract String getElementName();
-
public abstract String getRegionClass();
precedence = this.properties.get("precedence").getEnum();
}
+ public String getName() {
+ return "fo:region-after";
+ }
+
RegionArea makeRegionArea(int allocationRectangleXPosition,
int allocationRectangleYPosition,
int allocationRectangleWidth,
return "xsl-region-after";
}
- protected String getElementName() {
- return "fo:region-after";
- }
-
public String getRegionClass() {
return REGION_CLASS;
}
}
+ public String getName() {
+ return "fo:region-before";
+ }
+
RegionArea makeRegionArea(int allocationRectangleXPosition,
int allocationRectangleYPosition,
int allocationRectangleWidth,
return "xsl-region-before";
}
- protected String getElementName() {
- return "fo:region-before";
- }
-
public String getRegionClass() {
return REGION_CLASS;
}
super(parent, propertyList);
}
+ public String getName() {
+ return "fo:region-body";
+ }
+
RegionArea makeRegionArea(int allocationRectangleXPosition,
int allocationRectangleYPosition,
int allocationRectangleWidth,
return "xsl-region-body";
}
- protected String getElementName() {
- return "fo:region-body";
- }
-
public String getRegionClass() {
return REGION_CLASS;
}
super(parent, propertyList);
}
+ public String getName() {
+ return "fo:region-end";
+ }
RegionArea makeRegionArea(int allocationRectangleXPosition,
int allocationRectangleYPosition,
return "xsl-region-end";
}
- protected String getElementName() {
- return "fo:region-end";
- }
-
public String getRegionClass() {
return REGION_CLASS;
}
super(parent, propertyList);
}
+ public String getName() {
+ return "fo:region-start";
+ }
RegionArea makeRegionArea(int allocationRectangleXPosition,
int allocationRectangleYPosition,
return "xsl-region-start";
}
- protected String getElementName() {
- return "fo:region-start";
- }
-
public String getRegionClass() {
return REGION_CLASS;
}
public RepeatablePageMasterAlternatives(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:repeatable-page-master-alternatives";
if (parent.getName().equals("fo:page-sequence-master")) {
this.pageSequenceMaster = (PageSequenceMaster)parent;
conditionalPageMasterRefs = new Vector();
}
+ public String getName() {
+ return "fo:repeatable-page-master-alternatives";
+ }
+
public void addConditionalPageMasterReference(ConditionalPageMasterReference cpmr) {
this.conditionalPageMasterRefs.addElement(cpmr);
}
public RepeatablePageMasterReference(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- name = "fo:repeatable-page-master-reference";
if (getProperty("master-reference") != null) {
this.masterName = getProperty("master-reference").getString();
if (parent.getName().equals("fo:page-sequence-master")) {
}
}
+ public String getName() {
+ return "fo:repeatable-page-master-reference";
+ }
+
public String getNextPageMasterName(boolean isOddPage,
boolean isFirstPage,
boolean isEmptyPage) {
protected Root(FObj parent,
PropertyList propertyList) throws FOPException {
super(parent, propertyList);
- this.name = "fo:root";
-
// this.properties.get("media-usage");
if (parent != null) {
public void setLayoutMasterSet(LayoutMasterSet layoutMasterSet) {
this.layoutMasterSet = layoutMasterSet;
}
+
+ public String getName() {
+ return "fo:root";
+ }
}
protected SimplePageMaster(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:simple-page-master";
if (parent.getName().equals("fo:layout-master-set")) {
this.layoutMasterSet = (LayoutMasterSet)parent;
}
+ public String getName() {
+ return "fo:simple-page-master";
+ }
+
protected void end() {
int pageWidth =
this.properties.get("page-width").getLength().mvalue();
public SinglePageMasterReference(FObj parent, PropertyList propertyList)
throws FOPException {
super(parent, propertyList);
- this.name = "fo:single-page-master-reference";
if (getProperty("master-reference") != null) {
this.masterName = getProperty("master-reference").getString();
if (parent.getName().equals("fo:page-sequence-master")) {
this.state = FIRST;
}
+ public String getName() {
+ return "fo:single-page-master-reference";
+ }
+
public String getNextPageMasterName(boolean isOddPage,
boolean isFirstPage,
boolean isEmptyPage) {
*/
protected SVGObj(FObj parent, PropertyList propertyList, String tag) {
super(parent, propertyList, tag);
- this.name = "svg:" + tag;
+ }
+
+ public String getName() {
+ return "svg:"+tagName;
}
public String getNameSpace() {