public final class FormulaShifter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
adjustFormula(Ptg[] ptgs,
int currentExternSheetIx) |
static FormulaShifter |
createForColumnCopy(int externSheetIndex,
java.lang.String sheetName,
int firstMovedColumnIndex,
int lastMovedColumnIndex,
int numberOfColumnsToMove,
SpreadsheetVersion version) |
static FormulaShifter |
createForColumnShift(int externSheetIndex,
java.lang.String sheetName,
int firstMovedColumnIndex,
int lastMovedColumnIndex,
int numberOfColumnsToMove,
SpreadsheetVersion version) |
static FormulaShifter |
createForRowCopy(int externSheetIndex,
java.lang.String sheetName,
int firstMovedRowIndex,
int lastMovedRowIndex,
int numberOfRowsToMove,
SpreadsheetVersion version) |
static FormulaShifter |
createForRowShift(int externSheetIndex,
java.lang.String sheetName,
int firstMovedRowIndex,
int lastMovedRowIndex,
int numberOfRowsToMove,
SpreadsheetVersion version) |
static FormulaShifter |
createForSheetShift(int srcSheetIndex,
int dstSheetIndex) |
java.lang.String |
toString() |
public static FormulaShifter createForRowShift(int externSheetIndex, java.lang.String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove, SpreadsheetVersion version)
public static FormulaShifter createForRowCopy(int externSheetIndex, java.lang.String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove, SpreadsheetVersion version)
public static FormulaShifter createForColumnShift(int externSheetIndex, java.lang.String sheetName, int firstMovedColumnIndex, int lastMovedColumnIndex, int numberOfColumnsToMove, SpreadsheetVersion version)
public static FormulaShifter createForColumnCopy(int externSheetIndex, java.lang.String sheetName, int firstMovedColumnIndex, int lastMovedColumnIndex, int numberOfColumnsToMove, SpreadsheetVersion version)
public static FormulaShifter createForSheetShift(int srcSheetIndex, int dstSheetIndex)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx)
ptgs
- - if necessary, will get modified by this methodcurrentExternSheetIx
- - the extern sheet index of the sheet that contains the formula being adjustedtrue
if a change was made to the formula tokensCopyright 2021 The Apache Software Foundation or its licensors, as applicable.