public void Save(SpreadCalcAxialManager src, int fromRow, int fromColumn, int toRow, int toColumn, int fromRowCount, int fromColumnCount, int toRowCount, int toColumnCount, Dictionary <CalcLocalIdentity, CalcExpression> formulas, bool offsetSelf, bool updataDependens) { CalcCalculationManager sourceMgr = (src == null) ? this.Manager : src.Manager; int sourceRowCount = (src == null) ? this.RowCount : src.RowCount; int sourceColumnCount = (src == null) ? this.ColumnCount : src.ColumnCount; FormulaClipboardHelper.Save(sourceMgr, this.Manager, null, sourceRowCount, sourceColumnCount, fromRow, fromColumn, toRow, toColumn, fromRowCount, fromColumnCount, toRowCount, toColumnCount, formulas, offsetSelf, updataDependens); }
public void Move(SpreadCalcAxialManager src, int fromRow, int fromColumn, int toRow, int toColumn, int rowCount, int columnCount) { CalcCalculationManager sourceMgr = (src == null) ? this.Manager : src.Manager; ChangingContext context = new ChangingContext(); Dictionary <CalcLocalIdentity, CalcExpression> formulas = this.GetFormulaIds(fromRow, fromColumn, rowCount, columnCount, sourceMgr, context, true); int sourceRowCount = (src == null) ? this.RowCount : src.RowCount; int sourceColumnCount = (src == null) ? this.ColumnCount : src.ColumnCount; FormulaClipboardHelper.Save(sourceMgr, this.Manager, context, sourceRowCount, sourceColumnCount, fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, rowCount, columnCount, formulas, true, true); }
public void Clear(int row, int column, int rowCount, int columnCount) { row = (rowCount <= 0) ? -1 : row; column = (columnCount <= 0) ? -1 : column; FormulaClipboardHelper.Clear(this.Manager, FormulaOperatorHelper.Indexs2Identity(row, column, (row + rowCount) - 1, (column + columnCount) - 1)); }