public final class SharedValueManager
extends java.lang.Object
RowRecordsAggregate
:
(在构造 RowRecordsAggregate 时管理各种辅助记录: SharedFormulaRecords ArrayRecords TableRecords)
Modifier and Type | Method and Description |
---|---|
void |
addArrayRecord(ArrayRecord ar)
Add specified Array Record.
(添加指定的数组记录。)
|
static SharedValueManager |
create(SharedFormulaRecord[] sharedFormulaRecords, CellReference[] firstCells, ArrayRecord[] arrayRecords, TableRecord[] tableRecords) |
static SharedValueManager |
createEmpty() |
ArrayRecord |
getArrayRecord(int firstRow, int firstColumn) |
SharedValueRecordBase |
getRecordForFirstCell(FormulaRecordAggregate agg)
Gets the
SharedValueRecordBase record if it should be encoded immediately after the formula record contained in the specified
FormulaRecordAggregate agg.
(如果应在指定的 FormulaRecordAggregate 聚合中包含的公式记录之后立即对其进行编码,则获取 SharedValueRecordBase 记录。)
|
SharedFormulaRecord |
linkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg) |
CellRangeAddress8Bit |
removeArrayFormula(int rowIndex, int columnIndex)
Removes the
ArrayRecord for the cell group containing the specified cell.
(删除包含指定单元格的单元格组的 ArrayRecord。)
|
void |
unlink(SharedFormulaRecord sharedFormulaRecord)
Converts all
FormulaRecord s handled by
sharedFormulaRecord to plain unshared formulas
(将 sharedFormulaRecord 处理的所有 FormulaRecords 转换为普通的非共享公式)
|
public static SharedValueManager createEmpty()
SharedValueManager
.
(一个新的空 SharedValueManager。)
public static SharedValueManager create(SharedFormulaRecord[] sharedFormulaRecords, CellReference[] firstCells, ArrayRecord[] arrayRecords, TableRecord[] tableRecords)
public SharedFormulaRecord linkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg)
firstCell
- as extracted from the
ExpPtg
from the cell's formula.
(firstCell - 从单元格公式中的 ExpPtg 中提取。)
null
(从不为空)
public SharedValueRecordBase getRecordForFirstCell(FormulaRecordAggregate agg)
SharedValueRecordBase
record if it should be encoded immediately after the formula record contained in the specified
FormulaRecordAggregate
agg. Note - the shared value record always appears after the first formula record in the group. For arrays and tables the first formula is always the in the top left cell. However, since shared formula groups can be sparse and/or overlap, the first formula may not actually be in the top left cell.
(如果应在指定的 FormulaRecordAggregate 聚合中包含的公式记录之后立即对其进行编码,则获取 SharedValueRecordBase 记录。注意 - 共享值记录始终出现在组中的第一个公式记录之后。对于数组和表格,第一个公式始终位于左上角的单元格中。但是,由于共享公式组可能稀疏和/或重叠,因此第一个公式实际上可能不在左上角的单元格中。)
null
if the formula cell is not shared/array/table, or if the specified formula is not the the first in the group.
(公式单元格的 SHRFMLA、TABLE 或 ARRAY 记录,如果它是表格或数组区域的第一个单元格。如果公式单元格不是共享/数组/表,或者如果指定的公式不是组中的第一个,则为 null。)
public void unlink(SharedFormulaRecord sharedFormulaRecord)
FormulaRecord
s handled by
sharedFormulaRecord to plain unshared formulas
(将 sharedFormulaRecord 处理的所有 FormulaRecords 转换为普通的非共享公式)
public void addArrayRecord(ArrayRecord ar)
public CellRangeAddress8Bit removeArrayFormula(int rowIndex, int columnIndex)
ArrayRecord
for the cell group containing the specified cell. The caller should clear (set blank) all cells in the returned range.
(删除包含指定单元格的单元格组的 ArrayRecord。调用者应清除(设置为空白)返回范围内的所有单元格。)
null
.
(刚刚删除的数组公式的范围。从不为空。)
public ArrayRecord getArrayRecord(int firstRow, int firstColumn)
null
.
(由 (firstRow, firstColumn) 标识的共享 ArrayRecord。从不为空。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.