]> source.dussan.org Git - poi.git/commitdiff
Expose get/set reading order from the extended format record to the hssf cell style...
authorNick Burch <nick@apache.org>
Tue, 9 Sep 2014 15:59:06 +0000 (15:59 +0000)
committerNick Burch <nick@apache.org>
Tue, 9 Sep 2014 15:59:06 +0000 (15:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1623853 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java

index de18107683c1a0689a4c578b78ff0f66ba761b6c..a69efe4eecca5d21d0e2c50362b3f9651c8e081c 100644 (file)
@@ -827,6 +827,29 @@ public final class HSSFCellStyle implements CellStyle {
        return _format.getShrinkToFit();
     }
        
+    /**
+     * 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.