Lines 73-78
Link Here
|
73 |
* @author Yegor Kozlov (yegor at apache.org) (Autosizing columns) |
73 |
* @author Yegor Kozlov (yegor at apache.org) (Autosizing columns) |
74 |
* @author Josh Micich |
74 |
* @author Josh Micich |
75 |
* @author Petr Udalau(Petr.Udalau at exigenservices.com) - set/remove array formulas |
75 |
* @author Petr Udalau(Petr.Udalau at exigenservices.com) - set/remove array formulas |
|
|
76 |
* @author Pierre Tholence (bug fix) |
76 |
*/ |
77 |
*/ |
77 |
public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet { |
78 |
public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet { |
78 |
private static final POILogger log = POILogFactory.getLogger(HSSFSheet.class); |
79 |
private static final POILogger log = POILogFactory.getLogger(HSSFSheet.class); |
Lines 95-100
Link Here
|
95 |
protected final HSSFWorkbook _workbook; |
96 |
protected final HSSFWorkbook _workbook; |
96 |
private int _firstrow; |
97 |
private int _firstrow; |
97 |
private int _lastrow; |
98 |
private int _lastrow; |
|
|
99 |
private HSSFPatriarch _patriarch; |
98 |
|
100 |
|
99 |
/** |
101 |
/** |
100 |
* Creates new HSSFSheet - called by HSSFWorkbook to create a sheet from |
102 |
* Creates new HSSFSheet - called by HSSFWorkbook to create a sheet from |
Lines 1578-1583
Link Here
|
1578 |
agg.clear(); // Initially the behaviour will be to clear out any existing shapes in the sheet when |
1580 |
agg.clear(); // Initially the behaviour will be to clear out any existing shapes in the sheet when |
1579 |
// creating a new patriarch. |
1581 |
// creating a new patriarch. |
1580 |
agg.setPatriarch(patriarch); |
1582 |
agg.setPatriarch(patriarch); |
|
|
1583 |
_patriarch = patriarch; |
1581 |
return patriarch; |
1584 |
return patriarch; |
1582 |
} |
1585 |
} |
1583 |
|
1586 |
|
Lines 1624-1629
Link Here
|
1624 |
* start from scratch! |
1627 |
* start from scratch! |
1625 |
*/ |
1628 |
*/ |
1626 |
public HSSFPatriarch getDrawingPatriarch() { |
1629 |
public HSSFPatriarch getDrawingPatriarch() { |
|
|
1630 |
if(_patriarch != null) return _patriarch; |
1631 |
|
1627 |
EscherAggregate agg = getDrawingEscherAggregate(); |
1632 |
EscherAggregate agg = getDrawingEscherAggregate(); |
1628 |
if(agg == null) return null; |
1633 |
if(agg == null) return null; |
1629 |
|
1634 |
|
Lines 1635-1640
Link Here
|
1635 |
// that isn't supported, you were warned...) |
1640 |
// that isn't supported, you were warned...) |
1636 |
agg.convertRecordsToUserModel(); |
1641 |
agg.convertRecordsToUserModel(); |
1637 |
|
1642 |
|
|
|
1643 |
_patriarch = patriarch; |
1638 |
// Return what we could cope with |
1644 |
// Return what we could cope with |
1639 |
return patriarch; |
1645 |
return patriarch; |
1640 |
} |
1646 |
} |