Search in sources :

Example 1 with WSBoolRecord

use of org.apache.poi.hssf.record.WSBoolRecord in project poi by apache.

the class InternalSheet method createWSBool.

/**
     * creates the WSBoolRecord and sets its values to defaults
     */
private static WSBoolRecord createWSBool() {
    WSBoolRecord retval = new WSBoolRecord();
    retval.setWSBool1((byte) 0x4);
    retval.setWSBool2((byte) 0xffffffc1);
    return retval;
}
Also used : WSBoolRecord(org.apache.poi.hssf.record.WSBoolRecord)

Example 2 with WSBoolRecord

use of org.apache.poi.hssf.record.WSBoolRecord in project poi by apache.

the class HSSFSheet method setAutobreaks.

/**
     * show automatic page breaks or not
     *
     * @param b whether to show auto page breaks
     */
@Override
public void setAutobreaks(boolean b) {
    WSBoolRecord record = (WSBoolRecord) _sheet.findFirstRecordBySid(WSBoolRecord.sid);
    record.setAutobreaks(b);
}
Also used : WSBoolRecord(org.apache.poi.hssf.record.WSBoolRecord)

Example 3 with WSBoolRecord

use of org.apache.poi.hssf.record.WSBoolRecord in project poi by apache.

the class HSSFSheet method setAlternativeFormula.

/**
     * whether alternative formula entry is on
     *
     * @param b alternative formulas or not
     */
public void setAlternativeFormula(boolean b) {
    WSBoolRecord record = (WSBoolRecord) _sheet.findFirstRecordBySid(WSBoolRecord.sid);
    record.setAlternateFormula(b);
}
Also used : WSBoolRecord(org.apache.poi.hssf.record.WSBoolRecord)

Example 4 with WSBoolRecord

use of org.apache.poi.hssf.record.WSBoolRecord in project poi by apache.

the class HSSFSheet method setAlternativeExpression.

/**
     * whether alternate expression evaluation is on
     *
     * @param b alternative expression evaluation or not
     */
public void setAlternativeExpression(boolean b) {
    WSBoolRecord record = (WSBoolRecord) _sheet.findFirstRecordBySid(WSBoolRecord.sid);
    record.setAlternateExpression(b);
}
Also used : WSBoolRecord(org.apache.poi.hssf.record.WSBoolRecord)

Example 5 with WSBoolRecord

use of org.apache.poi.hssf.record.WSBoolRecord in project poi by apache.

the class HSSFSheet method setRowSumsRight.

/**
     * set if col summaries appear right of the detail in the outline
     *
     * @param b right or not
     */
@Override
public void setRowSumsRight(boolean b) {
    WSBoolRecord record = (WSBoolRecord) _sheet.findFirstRecordBySid(WSBoolRecord.sid);
    record.setRowSumsRight(b);
}
Also used : WSBoolRecord(org.apache.poi.hssf.record.WSBoolRecord)

Aggregations

WSBoolRecord (org.apache.poi.hssf.record.WSBoolRecord)10 Test (org.junit.Test)1