package org.apache.fop.fo.pagination;
-import org.apache.commons.logging.Log;
-
-
/**
* This class uses the 'format', 'groupingSeparator', 'groupingSize',
* and 'letterValue' properties on fo:page-sequence to return a String
private int groupingSize;
private int letterValue;
- /**
- * logging instance
- */
- protected Log logger = null;
-
// constants
private static final int DECIMAL = 1; // '0*1'
private static final int LOWERALPHA = 2; // 'a'
}
}
- /**
- * Sets the Commons-Logging instance for this class
- * @param logger The Commons-Logging instance
- */
- public void setLogger(Log logger) {
- this.logger = logger;
- }
-
- /**
- * Returns the Commons-Logging instance for this class
- * @return The Commons-Logging instance
- */
- protected Log getLogger(Log logger) {
- return logger;
- }
-
/**
* Formats a page number.
* @param number page number to format
}
return alphaNumber.reverse().toString();
}
-
- public String getName() {
- return "fo:page-number-generator";
- }
-
}
import org.xml.sax.SAXParseException;
// FOP
-import org.apache.fop.datatypes.ColorType;
-import org.apache.fop.datatypes.Length;
import org.apache.fop.fo.FObjMixed;
import org.apache.fop.fo.FONode;
-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.EnumProperty;
-import org.apache.fop.fo.properties.LengthProperty;
-import org.apache.fop.fo.properties.Property;
-import org.apache.fop.fonts.Font;
-import org.apache.fop.fo.properties.CommonMarginInline;
/**
* Class modelling the fo:title object.
}
}
- private void setup() {
-
- // Common Accessibility Properties
- CommonAccessibility mAccProps = propMgr.getAccessibilityProps();
-
- // Common Aural Properties
- CommonAural mAurProps = propMgr.getAuralProps();
-
- // Common Border, Padding, and Background Properties
- CommonBorderAndPadding bap = propMgr.getBorderAndPadding();
- CommonBackground bProps = propMgr.getBackgroundProps();
-
- // Common Font Properties
- Font fontState = propMgr.getFontState(getFOInputHandler().getFontInfo());
-
- // Common Margin Properties-Inline
- CommonMarginInline mProps = propMgr.getMarginInlineProps();
-
- Property prop;
- prop = this.propertyList.get(PR_BASELINE_SHIFT);
- if (prop instanceof LengthProperty) {
- Length bShift = prop.getLength();
- } else if (prop instanceof EnumProperty) {
- int bShift = prop.getEnum();
- }
- ColorType col = this.propertyList.get(PR_COLOR).getColorType();
- Length lHeight = this.propertyList.get(PR_LINE_HEIGHT).getLength();
- int lShiftAdj = this.propertyList.get(
- PR_LINE_HEIGHT_SHIFT_ADJUSTMENT).getEnum();
- int vis = this.propertyList.get(PR_VISIBILITY).getEnum();
- Length zIndex = this.propertyList.get(PR_Z_INDEX).getLength();
-
- }
-
+ /**
+ * @see org.apache.fop.fo.FObj#getName()
+ */
public String getName() {
return "fo:title";
}