public bool ContainsCell(BookSheetKey key, int rowIndex, int columnIndex)
 {
     BlankCellSheetGroup bcsg = (BlankCellSheetGroup)_sheetGroupsByBookSheet[key];
     if (bcsg == null)
     {
         return false;
     }
     return bcsg.ContainsCell(rowIndex, columnIndex);
 }
Esempio n. 2
0
 private void UpdateAnyBlankReferencingFormulas(int bookIndex, int sheetIndex,
         int rowIndex, int columnIndex)
 {
     BookSheetKey bsk = new BookSheetKey(bookIndex, sheetIndex);
     _formulaCellCache.ApplyOperation(new EntryOperation(bsk,rowIndex,columnIndex,_evaluationListener));
 }
        private BlankCellSheetGroup GetSheetGroup(int bookIndex, int sheetIndex)
        {
            BookSheetKey key = new BookSheetKey(bookIndex, sheetIndex);

            BlankCellSheetGroup result = (BlankCellSheetGroup)_sheetGroupsByBookSheet[key];
            if (result == null)
            {
                result = new BlankCellSheetGroup();
                _sheetGroupsByBookSheet[key]= result;
            }
            return result;
        }
Esempio n. 4
0
 public EntryOperation(BookSheetKey bsk,
     int rowIndex, int columnIndex, IEvaluationListener evaluationListener)
 {
     this.bsk = bsk;
     this.evaluationListener = evaluationListener;
     this.rowIndex = rowIndex;
     this.columnIndex = columnIndex;
 }