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 method
(ptgs - - 如有必要,将通过此方法进行修改)
currentExternSheetIx
- - the extern sheet index of the sheet that contains the formula being adjusted
(currentExternSheetIx - - 包含正在调整的公式的工作表的外部工作表索引)
true
if a change was made to the formula tokens
(如果对公式标记进行了更改,则为 true)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.