diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index de1810768..a69efe4ee 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java @@ -827,6 +827,29 @@ public final class HSSFCellStyle implements CellStyle { return _format.getShrinkToFit(); } + /** + * Get the reading order, for RTL/LTR ordering of + * the text. + *
0 means Context (Default), 1 means Left To Right, + * and 2 means Right to Left
+ * + * @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. + *0 means Context (Default), 1 means Left To Right, + * and 2 means Right to Left
+ * + * @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.