internal void SaveToPxl(TPxlStream PxlStream, TPxlSaveData SaveData) { TPaneSelection Pane = Panes[3]; if (Pane == null) { return; } Pane.SaveToPxl(PxlStream, SaveData); }
internal TCellAddress GetActiveCellBase1(TPanePosition Pane) { TPaneSelection P = CalcPane(Pane); if (P == null) { return(null); } return(P.GetActiveCellBase1()); }
internal int ActiveCellId(TPanePosition Pane) { TPaneSelection P = CalcPane(Pane); if (P == null) { return(0); } return(P.GetActiveCellId()); }
internal TXlsCellRange[] GetSelection(TPanePosition Pane) { TPaneSelection P = CalcPane(Pane); if (P == null) { return(null); } return(P.GetSelection()); }
internal void Select(TPanePosition Pane, TXlsCellRange[] CellRange, int ActiveRow, int ActiveCol, int ActiveCellId) { int PanePos = (int)Pane; if (PanePos < 0 || PanePos > 3) { return; //invalid pane. } if (Panes[PanePos] == null) { Panes[PanePos] = new TPaneSelection(); } Panes[PanePos].Select(CellRange, ActiveRow, ActiveCol, ActiveCellId); }
internal void AddBiff8Record(TBiff8SelectionRecord aRecord) { int PanePos = (int)aRecord.PanePosition; if (PanePos < 0 || PanePos > 3) { return; //invalid pane. } if (Panes[PanePos] == null) { Panes[PanePos] = new TPaneSelection(); } Panes[PanePos].AddRecord(aRecord); }
internal static TSheetSelection Clone(TSheetSelection Source) { if (Source == null) { return(null); } TSheetSelection Result = new TSheetSelection(); { for (int i = 0; i < Result.Panes.Length; i++) { Result.Panes[i] = TPaneSelection.Clone(Source.Panes[i]); } } return(Result); }
internal static TPaneSelection Clone(TPaneSelection Source) { if (Source == null) { return(null); } TPaneSelection Result = new TPaneSelection(); Result.ActiveRow = Source.ActiveRow; Result.ActiveCol = Source.ActiveCol; if (Source.SelectedCells == null) { Result.SelectedCells = null; } else { Result.SelectedCells = new TXlsCellRange[Source.SelectedCells.Length]; for (int i = 0; i < Result.SelectedCells.Length; i++) { Result.SelectedCells[i] = (TXlsCellRange)Source.SelectedCells[i].Clone(); } } return(Result); }