aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/BidiOverride.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-19 08:53:51 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-19 08:53:51 +0000
commitb0839fa1f93f128c6dd271930209e59228bb0472 (patch)
treef3ed77c6f9d3f58314beb64e7557eaf117f2d6aa /src/java/org/apache/fop/fo/flow/BidiOverride.java
parent85506764aad78e6aa4b675838aaed1f6fd23883a (diff)
downloadxmlgraphics-fop-b0839fa1f93f128c6dd271930209e59228bb0472.tar.gz
xmlgraphics-fop-b0839fa1f93f128c6dd271930209e59228bb0472.zip
First phase of performance improvement. Added bind() and startOfNode()
methods to the FO nodes, unused for now. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198054 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/BidiOverride.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/BidiOverride.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/BidiOverride.java b/src/java/org/apache/fop/fo/flow/BidiOverride.java
index 73f8118e7..6d15a8ebc 100644
--- a/src/java/org/apache/fop/fo/flow/BidiOverride.java
+++ b/src/java/org/apache/fop/fo/flow/BidiOverride.java
@@ -28,8 +28,15 @@ import org.xml.sax.Locator;
import org.xml.sax.SAXParseException;
// FOP
+import org.apache.fop.datatypes.Length;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObjMixed;
+import org.apache.fop.fo.PropertyList;
+import org.apache.fop.fo.properties.ColorTypeProperty;
+import org.apache.fop.fo.properties.CommonAural;
+import org.apache.fop.fo.properties.CommonFont;
+import org.apache.fop.fo.properties.CommonRelativePosition;
+import org.apache.fop.fo.properties.SpaceProperty;
import org.apache.fop.layoutmgr.BidiLayoutManager;
import org.apache.fop.layoutmgr.InlineStackingLayoutManager;
import org.apache.fop.layoutmgr.LayoutManager;
@@ -43,6 +50,19 @@ public class BidiOverride extends FObjMixed {
private boolean blockOrInlineItemFound = false;
private boolean canHaveBlockLevelChildren = true;
+ // The value of properties relevant for fo:bidi-override.
+ private CommonAural commonAural;
+ private CommonFont commonFont;
+ private CommonRelativePosition commonRelativePosition;
+ private ColorTypeProperty prColor;
+ // private ToBeImplementedProperty prDirection;
+ // private ToBeImplementedProperty prLetterSpacing;
+ private Length prLineHeight;
+ // private ToBeImplementedProperty prScoreSpaces;
+ // private ToBeImplementedProperty prUnicodeBidi;
+ private SpaceProperty prWordSpacing;
+ // End of property values
+
/**
* @param parent FONode that is the parent of this object
*/
@@ -72,6 +92,22 @@ public class BidiOverride extends FObjMixed {
}
/**
+ * @see org.apache.fop.fo.FObj#bind(PropertyList)
+ */
+ public void bind(PropertyList pList) {
+ commonAural = pList.getAuralProps();
+ commonFont = pList.getFontProps();
+ commonRelativePosition = pList.getRelativePositionProps();
+ prColor = pList.get(PR_COLOR).getColorType();
+ // prDirection = pList.get(PR_DIRECTION);
+ // prLetterSpacing = pList.get(PR_LETTER_SPACING);
+ prLineHeight = pList.get(PR_LINE_HEIGHT).getLength();
+ // prScoreSpaces = pList.get(PR_SCORE_SPACES);
+ // prUnicodeBidi = pList.get(PR_UNICODE_BIDI);
+ prWordSpacing = pList.get(PR_WORD_SPACING).getSpace();
+ }
+
+ /**
* @see org.apache.fop.fo.FObj#addProperties
* @todo see if can use a BitSet to determine if an FO should
* have its ID setup; then move setupID() instances to FObj.