<changes>
<release version="3.6-beta1" date="2009-??-??">
+ <action dev="POI-DEVELOPERS" type="add">47970 - added a method to set arabic mode in HSSFSheet</action>
<action dev="POI-DEVELOPERS" type="fix">48134 - release system resources when using Picture.resize()</action>
<action dev="POI-DEVELOPERS" type="fix">48087 - avoid NPE in XSSFChartSheet when calling methods of the superclass</action>
<action dev="POI-DEVELOPERS" type="fix">48038 - handle reading HWPF stylesheets from non zero offsets</action>
return _sheet.getPageSettings().getHCenter().getHCenter();
}
+ /**
+ * Sets the arabic property for this sheet, will make it right to left.
+ * @param value true for arabic, false otherwise.
+ */
+ public void setArabic(boolean value)
+ {
+ _sheet.getWindowTwo().setArabic(value);
+ }
+ /**
+ * Gets the arabic property for this sheet.
+ *
+ * @return whther the arabic mode is set
+ */
+ public boolean isArabic()
+ {
+ return _sheet.getWindowTwo().getArabic();
+ }
/**
* removes a merged region of cells (hence letting them free)
assertFalse(cs.getFont(wbComplex).getItalic());
assertEquals(HSSFFont.BOLDWEIGHT_BOLD, cs.getFont(wbComplex).getBoldweight());
}
+
+ /**
+ * Tests the arabic setting
+ */
+ public void testArabic() {
+ HSSFWorkbook wb = new HSSFWorkbook();
+ HSSFSheet s = wb.createSheet();
+
+ assertEquals(false, s.isArabic());
+ s.setArabic(true);
+ assertEquals(true, s.isArabic());
+ }
+
}