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
This commit is contained in:
Nick Burch 2014-09-09 15:59:06 +00:00
parent c274932b5b
commit fc5c196636
1 changed files with 23 additions and 0 deletions

View 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.