Esempio n. 1
0
        internal void SaveToPxl(TPxlStream PxlStream, TPxlSaveData SaveData)
        {
            TPaneSelection Pane = Panes[3];

            if (Pane == null)
            {
                return;
            }
            Pane.SaveToPxl(PxlStream, SaveData);
        }
Esempio n. 2
0
        internal TCellAddress GetActiveCellBase1(TPanePosition Pane)
        {
            TPaneSelection P = CalcPane(Pane);

            if (P == null)
            {
                return(null);
            }
            return(P.GetActiveCellBase1());
        }
Esempio n. 3
0
        internal int ActiveCellId(TPanePosition Pane)
        {
            TPaneSelection P = CalcPane(Pane);

            if (P == null)
            {
                return(0);
            }
            return(P.GetActiveCellId());
        }
Esempio n. 4
0
        internal TXlsCellRange[] GetSelection(TPanePosition Pane)
        {
            TPaneSelection P = CalcPane(Pane);

            if (P == null)
            {
                return(null);
            }
            return(P.GetSelection());
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
        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);
        }
Esempio n. 8
0
        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);
        }