<changes>
<release version="3.8-beta4" date="2011-??-??">
+ <action dev="poi-developers" type="add">Support isRightToLeft and setRightToLeft on the common spreadsheet Sheet interface, as per existing HSSF support</action>
<action dev="poi-developers" type="fix">50209 - Fixed evaluation of Subtotals to ignore nested subtotals</action>
<action dev="poi-developers" type="fix">44431 - HWPFDocument.write destroys fields</action>
<action dev="poi-developers" type="fix">50401 - fixed EscherProperty to return property name instead of 'unknown' for complex properties </action>
*/
boolean isColumnHidden(int columnIndex);
+ /**
+ * Sets whether the worksheet is displayed from right to left instead of from left to right.
+ *
+ * @param value true for right to left, false otherwise.
+ */
+ public void setRightToLeft(boolean value);
+
+ /**
+ * Whether the text is displayed in right-to-left mode in the window
+ *
+ * @return whether the text is displayed in right-to-left mode in the window
+ */
+ public boolean isRightToLeft();
+
/**
* Set the width (in units of 1/256th of a character width)
*
{
return _sh.isDisplayZeros();
}
+
+ /**
+ * Sets whether the worksheet is displayed from right to left instead of from left to right.
+ *
+ * @param value true for right to left, false otherwise.
+ */
+ public void setRightToLeft(boolean value)
+ {
+ _sh.setRightToLeft(value);
+ }
+
+ /**
+ * Whether the text is displayed in right-to-left mode in the window
+ *
+ * @return whether the text is displayed in right-to-left mode in the window
+ */
+ public boolean isRightToLeft()
+ {
+ return _sh.isRightToLeft();
+ }
/**
* Flag indicating whether the Fit to Page print option is enabled.
import org.apache.poi.ss.usermodel.DataValidation;
import org.apache.poi.ss.usermodel.DataValidationHelper;
import org.apache.poi.ss.usermodel.Footer;
-import org.apache.poi.ss.usermodel.FormulaEvaluator;
import org.apache.poi.ss.usermodel.Header;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
return getWorkbook().getCellStyleAt((short)(idx == -1 ? 0 : idx));
}
+ /**
+ * Sets whether the worksheet is displayed from right to left instead of from left to right.
+ *
+ * @param value true for right to left, false otherwise.
+ */
+ public void setRightToLeft(boolean value)
+ {
+ CTSheetView view = getDefaultSheetView();
+ view.setRightToLeft(value);
+ }
+
+ /**
+ * Whether the text is displayed in right-to-left mode in the window
+ *
+ * @return whether the text is displayed in right-to-left mode in the window
+ */
+ public boolean isRightToLeft()
+ {
+ CTSheetView view = getDefaultSheetView();
+ return view == null ? false : view.getRightToLeft();
+ }
/**
* Get whether to display the guts or not,