From 6ae6f2fcb32e20ed11e10601541a3116ecda40d7 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Tue, 9 Sep 2014 15:59:06 +0000 Subject: [PATCH] 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) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1623853 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/usermodel/HSSFCellStyle.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index de18107683..a69efe4eec 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. -- 2.39.5