added a method to set arabic mode in HSSFSheet, see Bugzilla 47970
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@833537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
477347c3ec
commit
b592beedaa
@ -34,6 +34,7 @@
|
||||
|
||||
<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>
|
||||
|
@ -634,7 +634,24 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
|
||||
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)
|
||||
|
@ -802,4 +802,17 @@ public final class TestHSSFSheet extends BaseTestSheet {
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user