Lines 120-125
Link Here
|
120 |
private Iterator valueRecIterator = null; |
120 |
private Iterator valueRecIterator = null; |
121 |
private Iterator rowRecIterator = null; |
121 |
private Iterator rowRecIterator = null; |
122 |
protected int eofLoc = 0; |
122 |
protected int eofLoc = 0; |
|
|
123 |
protected ProtectRecord protect = null; |
123 |
|
124 |
|
124 |
public static final byte PANE_LOWER_RIGHT = (byte)0; |
125 |
public static final byte PANE_LOWER_RIGHT = (byte)0; |
125 |
public static final byte PANE_UPPER_RIGHT = (byte)1; |
126 |
public static final byte PANE_UPPER_RIGHT = (byte)1; |
Lines 265-270
Link Here
|
265 |
{ |
266 |
{ |
266 |
retval.selection = (SelectionRecord) rec; |
267 |
retval.selection = (SelectionRecord) rec; |
267 |
} |
268 |
} |
|
|
269 |
else if ( rec.getSid() == ProtectRecord.sid ) |
270 |
{ |
271 |
retval.protect = (ProtectRecord) rec; |
272 |
} |
268 |
|
273 |
|
269 |
if (rec != null) |
274 |
if (rec != null) |
270 |
{ |
275 |
{ |
Lines 396-401
Link Here
|
396 |
retval.selection = |
401 |
retval.selection = |
397 |
(SelectionRecord) retval.createSelection(); |
402 |
(SelectionRecord) retval.createSelection(); |
398 |
records.add(retval.selection); |
403 |
records.add(retval.selection); |
|
|
404 |
retval.protect = (ProtectRecord) retval.createProtect(); |
405 |
records.add(retval.protect); |
399 |
records.add(retval.createEOF()); |
406 |
records.add(retval.createEOF()); |
400 |
retval.records = records; |
407 |
retval.records = records; |
401 |
log.log(log.DEBUG, "Sheet createsheet from scratch exit"); |
408 |
log.log(log.DEBUG, "Sheet createsheet from scratch exit"); |
Lines 2529-2532
Link Here
|
2529 |
this.selection = selection; |
2536 |
this.selection = selection; |
2530 |
} |
2537 |
} |
2531 |
|
2538 |
|
|
|
2539 |
/** |
2540 |
* creates a Protect record with protect set to false. |
2541 |
* @see org.apache.poi.hssf.record.ProtectRecord |
2542 |
* @see org.apache.poi.hssf.record.Record |
2543 |
* @return a ProtectRecord |
2544 |
*/ |
2545 |
|
2546 |
protected Record createProtect() |
2547 |
{ |
2548 |
log.log(log.DEBUG, "create protect record with protection disabled"); |
2549 |
ProtectRecord retval = new ProtectRecord(); |
2550 |
|
2551 |
retval.setProtect(false); |
2552 |
// by default even when we support encryption we won't |
2553 |
return retval; // want to default to be protected |
2554 |
} |
2555 |
|
2556 |
public ProtectRecord getProtect() |
2557 |
{ |
2558 |
return protect; |
2559 |
} |
2532 |
} |
2560 |
} |