Top Description Fields Constructors Methods
org.apache.poi.ss.formula

public Class SharedFormula

extends Object
Class Inheritance
Imports
org.apache.poi.ss.formula.ptg.*, org.apache.poi.ss.SpreadsheetVersion

Encapsulates logic to convert shared formula into non shared equivalent

Field Summary

Modifier and TypeField and Description
private final int
private final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Ptg[]
convertSharedFormulas(Ptg[]
parsed tokens of the shared formula
ptgs
,
int formulaRow, int formulaColumn)

Creates a non shared formula from the shared formula counterpart, i.e. Converts the shared formula into the equivalent org.apache.poi.ss.formula.ptg.Ptg array that it would have, were it not shared.

private int
fixupRelativeColumn(int currentcolumn, int column, boolean relative)

private int
fixupRelativeRow(int currentrow, int row, boolean relative)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_columnWrappingMaskback to summary
private final int _columnWrappingMask
_rowWrappingMaskback to summary
private final int _rowWrappingMask

Constructor Detail

SharedFormulaback to summary
public SharedFormula(SpreadsheetVersion ssVersion)

Method Detail

convertSharedFormulasback to summary
public Ptg[] convertSharedFormulas(Ptg[] ptgs, int formulaRow, int formulaColumn)

Creates a non shared formula from the shared formula counterpart, i.e. Converts the shared formula into the equivalent org.apache.poi.ss.formula.ptg.Ptg array that it would have, were it not shared.

Parameters
ptgs:Ptg[]

parsed tokens of the shared formula

fixupRelativeColumnback to summary
private int fixupRelativeColumn(int currentcolumn, int column, boolean relative)
fixupRelativeRowback to summary
private int fixupRelativeRow(int currentrow, int row, boolean relative)