예제 #1
0
        public void Copy(SpreadCalcAxialManager src, int fromRow, int fromColumn, int toRow, int toColumn, int fromRowCount, int fromColumnCount, int toRowCount, int toColumnCount)
        {
            CalcCalculationManager sourceMgr = (src == null) ? this.Manager : src.Manager;
            Dictionary <CalcLocalIdentity, CalcExpression> formulas = this.GetFormulaIds(fromRow, fromColumn, fromRowCount, fromColumnCount, sourceMgr, null, false);

            this.Save(src, fromRow, fromColumn, toRow, toColumn, fromRowCount, fromColumnCount, toRowCount, toColumnCount, formulas, false, false);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void Copy(SpreadCalcAxialManager src, int fromRow, int fromColumn, int toRow, int toColumn, int rowCount, int columnCount)
 {
     this.Copy(src, fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, rowCount, columnCount);
 }