View | Details | Raw Unified | Return to bug 47970
Collapse All | Expand All

(-)src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (+15 lines)
Lines 634-640 Link Here
634
        return _sheet.getPageSettings().getHCenter().getHCenter();
634
        return _sheet.getPageSettings().getHCenter().getHCenter();
635
    }
635
    }
636
636
637
    /**
638
     * Sets the arabic property for this sheet, will make it right to left.
639
     * @param value true for arabic, false otherwise.
640
     */
641
    public void setArabic(boolean value)
642
    {
643
	_sheet.getWindowTwo().setArabic(value);
644
    }
637
645
646
    /**
647
     * Gets the arabic property for this sheet.
648
     */
649
    public boolean getArabic()
650
    {
651
	return _sheet.getWindowTwo().getArabic();
652
    }
638
653
639
    /**
654
    /**
640
     * removes a merged region of cells (hence letting them free)
655
     * removes a merged region of cells (hence letting them free)
(-)src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheet.java (+13 lines)
Lines 802-805 Link Here
802
        assertFalse(cs.getFont(wbComplex).getItalic());
802
        assertFalse(cs.getFont(wbComplex).getItalic());
803
        assertEquals(HSSFFont.BOLDWEIGHT_BOLD, cs.getFont(wbComplex).getBoldweight());
803
        assertEquals(HSSFFont.BOLDWEIGHT_BOLD, cs.getFont(wbComplex).getBoldweight());
804
    }
804
    }
805
806
    /**
807
     * Tests the arabic setting
808
     */
809
    public void testArabic() {
810
        HSSFWorkbook wb = new HSSFWorkbook();
811
        HSSFSheet s = wb.createSheet();
812
813
        assertEquals(false, s.getArabic());
814
        s.setArabic(true);
815
        assertEquals(true, s.getArabic());
816
    }
817
805
}
818
}

Return to bug 47970