Author: nick
Date: Tue Sep 9 15:59:06 2014
New Revision: 1623853
URL: http://svn.apache.org/r1623853
Log:
Expose get/set reading order from the extended format record to the hssf cell
style (XSSF does it differently, so not suitable for the interface)
Modified:
poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java?rev=1623853&r1=1623852&r2=1623853&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
(original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java Tue Sep
9 15:59:06 2014
@@ -828,6 +828,29 @@ public final class HSSFCellStyle impleme
}
/**
+ * Get the reading order, for RTL/LTR ordering of
+ * the text.
+ * <p>0 means Context (Default), 1 means Left To Right,
+ * and 2 means Right to Left</p>
+ *
+ * @return order - the reading order (0,1,2)
+ */
+ public short getReadingOrder() {
+ return _format.getReadingOrder();
+ }
+ /**
+ * Sets the reading order, for RTL/LTR ordering of
+ * the text.
+ * <p>0 means Context (Default), 1 means Left To Right,
+ * and 2 means Right to Left</p>
+ *
+ * @param order - the reading order (0,1,2)
+ */
+ public void setReadingOrder(short order) {
+ _format.setReadingOrder(order);
+ }
+
+ /**
* Verifies that this style belongs to the supplied Workbook.
* Will throw an exception if it belongs to a different one.
* This is normally called when trying to assign a style to a
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]