poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r423127 - /jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java
Date Tue, 18 Jul 2006 16:25:21 GMT
Author: nick
Date: Tue Jul 18 09:25:20 2006
New Revision: 423127

URL: http://svn.apache.org/viewvc?rev=423127&view=rev
Log:
Add lookups for the common text alignments

Modified:
    jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java

Modified: jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java
URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java?rev=423127&r1=423126&r2=423127&view=diff
==============================================================================
--- jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java
(original)
+++ jakarta/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextPropAtom.java
Tue Jul 18 09:25:20 2006
@@ -96,7 +96,7 @@
 				new TextProp(2, 0x100, "para_unknown_1"),
 				new TextProp(2, 0x200, "para_unknown_2"),
 				new TextProp(2, 0x400, "para_unknown_3"),
-				new TextProp(2, 0x800, "alignment"),
+				new AlignmentTextProp(), // 0x800
 				new TextProp(2, 0x1000, "linespacing"),
 				new TextProp(2, 0x2000, "spacebefore"),
 				new TextProp(2, 0x4000, "spaceafter"),
@@ -648,6 +648,21 @@
 		}
 	}
 
+	/**
+	 * Definition for the alignment text property.
+	 */
+	public static class AlignmentTextProp extends TextProp {
+		public static final int LEFT = 0;
+		public static final int CENTER = 1;
+		public static final int RIGHT = 2;
+		public static final int JUSTIFY = 3;
+		public static final int THAIDISTRIBUTED = 5;
+		public static final int JUSTIFYLOW = 6;
+
+		public AlignmentTextProp() {
+			super(2, 0x800, "alignment");
+		}
+	}
 
 	/** 
 	 * Definition for the common character text property bitset, which



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message