Exemplo n.º 1
0
        internal virtual void SetOwnerInternal(IList owner)
        {
            this._owner = owner;
            IFloatingObjectSheet sheetFromOwner = this.GetSheetFromOwner();

            this._sheet = sheetFromOwner;
        }
Exemplo n.º 2
0
 void EndMonitorSheet(IFloatingObjectSheet worksheet, ISheetCellRangeMonitorSupport sheetCellRangeSupporter)
 {
     if ((worksheet != null) && this._cachedChangedRanges.ContainsKey(worksheet))
     {
         List <ISheetCellRangeMonitorSupport> list = this._cachedChangedRanges[worksheet];
         list.Remove(sheetCellRangeSupporter);
         if (list.Count == 0)
         {
             this._cachedChangedRanges.Remove(worksheet);
             worksheet.CellChanged -= new EventHandler <CellChangedEventArgs>(this.Sheet_CellChanged);
         }
     }
 }
Exemplo n.º 3
0
 void StartMonitorSheet(IFloatingObjectSheet worksheet, ISheetCellRangeMonitorSupport sheetCellRangeSupporter)
 {
     if ((worksheet != null) && !Enumerable.Contains <IFloatingObjectSheet>((IEnumerable <IFloatingObjectSheet>) this._cachedChangedRanges.Keys, worksheet))
     {
         worksheet.CellChanged += new EventHandler <CellChangedEventArgs>(this.Sheet_CellChanged);
         List <ISheetCellRangeMonitorSupport> list = new List <ISheetCellRangeMonitorSupport>();
         this._cachedChangedRanges.Add(worksheet, list);
     }
     if (this._cachedChangedRanges.ContainsKey(worksheet))
     {
         this._cachedChangedRanges[worksheet].Add(sheetCellRangeSupporter);
     }
 }
Exemplo n.º 4
0
 void Sheet_CellChanged(object sender, CellChangedEventArgs e)
 {
     if (e.PropertyName == "Value")
     {
         IFloatingObjectSheet sheet = sender as IFloatingObjectSheet;
         if (this._cachedChangedRanges.ContainsKey(sheet))
         {
             List <ISheetCellRangeMonitorSupport> list = new List <ISheetCellRangeMonitorSupport>();
             foreach (ISheetCellRangeMonitorSupport support in this._cachedChangedRanges[sheet])
             {
                 if (!list.Contains(support))
                 {
                     list.Add(support);
                 }
             }
             this.RaiseSheetCellRangeSupporterAffected("Value", list.ToArray());
         }
     }
 }
Exemplo n.º 5
0
 internal FloatingObjects(IFloatingObjectSheet sheet) : base(sheet)
 {
 }
Exemplo n.º 6
0
 internal FloatingObjectCollection(IFloatingObjectSheet innerSheet)
 {
     this.Sheet = innerSheet;
 }
Exemplo n.º 7
0
 internal SpreadCharts(IFloatingObjectSheet sheet) : base(sheet)
 {
 }
Exemplo n.º 8
0
 internal SpreadPictures(IFloatingObjectSheet sheet) : base(sheet)
 {
 }