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

(-)src/java/org/apache/poi/hssf/model/Sheet.java (+8 lines)
Lines 2031-2034 Link Here
2031
	printGridlines = newPrintGridlines;
2031
	printGridlines = newPrintGridlines;
2032
    }
2032
    }
2033
2033
2034
    /**
2035
     * Sets whether the sheet is selected
2036
     * @param sel True to select the sheet, false otherwise.
2037
     */
2038
    public void setSelected(boolean sel) {
2039
	WindowTwoRecord windowTwo = (WindowTwoRecord) findFirstRecordBySid(WindowTwoRecord.sid);
2040
	windowTwo.setSelected(sel);
2041
    }
2034
}
2042
}
(-)src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (-1 / +10 lines)
Lines 65-70 Link Here
65
import org.apache.poi.hssf.record.Record;
65
import org.apache.poi.hssf.record.Record;
66
import org.apache.poi.hssf.record.RowRecord;
66
import org.apache.poi.hssf.record.RowRecord;
67
import org.apache.poi.hssf.record.VCenterRecord;
67
import org.apache.poi.hssf.record.VCenterRecord;
68
import org.apache.poi.hssf.record.WindowTwoRecord;
68
import org.apache.poi.hssf.record.WSBoolRecord;
69
import org.apache.poi.hssf.record.WSBoolRecord;
69
import org.apache.poi.hssf.util.Region;
70
import org.apache.poi.hssf.util.Region;
70
import org.apache.poi.util.POILogFactory;
71
import org.apache.poi.util.POILogFactory;
Lines 784-788 Link Here
784
     */
785
     */
785
    public HSSFFooter getFooter() {
786
    public HSSFFooter getFooter() {
786
        return new HSSFFooter(getSheet().getFooter());
787
        return new HSSFFooter(getSheet().getFooter());
787
    }
788
     }
789
     /**
790
      * Sets whether sheet is selected.
791
      * @param sel Whether to select the sheet or deselect the sheet.
792
      */
793
     public void setSelected(boolean sel) {
794
       getSheet().setSelected(sel); 
795
796
     }
788
}
797
}

Return to bug 10619