Esempio n. 1
0
        /// <summary>
        /// return to previous printer state; but keep the new y position (used eg. for printing the page header)
        /// </summary>
        public void PopCurrentStateApartFromYPosition()
        {
            float YPos = this.CurrentYPos;

            FCurrentState = FPrinterStateStack.Pop();
            CurrentYPos   = YPos;
        }
Esempio n. 2
0
        /// create a copy of this state
        public TPrinterState Copy()
        {
            TPrinterState newState = new TPrinterState();

            newState.FPrintingMode            = FPrintingMode;
            newState.FCurrentPageNr           = FCurrentPageNr;
            newState.FCurrentXPos             = FCurrentXPos;
            newState.FCurrentYPos             = FCurrentYPos;
            newState.FAnchorXPos              = FAnchorXPos;
            newState.FAnchorYPos              = FAnchorYPos;
            newState.FCurrentFont             = FCurrentFont;
            newState.FCurrentLineHeight       = FCurrentLineHeight;
            newState.FCurrentRelativeFontSize = FCurrentRelativeFontSize;
            newState.FCurrentAlignment        = FCurrentAlignment;
            newState.FNoWrap = FNoWrap;
            return(newState);
        }
Esempio n. 3
0
 /// <summary>
 /// return to previous printer state;
 /// this is used for printing table cells
 /// </summary>
 public void PopCurrentState()
 {
     FCurrentState = FPrinterStateStack.Pop();
 }
Esempio n. 4
0
 /// <summary>
 /// store the current printer state (font size etc)
 /// </summary>
 public void PushCurrentState()
 {
     FPrinterStateStack.Push(FCurrentState);
     FCurrentState = FCurrentState.Copy();
 }
Esempio n. 5
0
        /// <summary>
        /// return to previous printer state; but keep the new y position (used eg. for printing the page header)
        /// </summary>
        public void PopCurrentStateApartFromYPosition()
        {
            float YPos = this.CurrentYPos;

            FCurrentState = FPrinterStateStack.Pop();
            CurrentYPos = YPos;
        }
Esempio n. 6
0
 /// <summary>
 /// return to previous printer state;
 /// this is used for printing table cells
 /// </summary>
 public void PopCurrentState()
 {
     FCurrentState = FPrinterStateStack.Pop();
 }
Esempio n. 7
0
 /// <summary>
 /// store the current printer state (font size etc)
 /// </summary>
 public void PushCurrentState()
 {
     FPrinterStateStack.Push(FCurrentState);
     FCurrentState = FCurrentState.Copy();
 }
Esempio n. 8
0
        /// create a copy of this state
        public TPrinterState Copy()
        {
            TPrinterState newState = new TPrinterState();

            newState.FPrintingMode = FPrintingMode;
            newState.FCurrentPageNr = FCurrentPageNr;
            newState.FCurrentXPos = FCurrentXPos;
            newState.FCurrentYPos = FCurrentYPos;
            newState.FAnchorXPos = FAnchorXPos;
            newState.FAnchorYPos = FAnchorYPos;
            newState.FCurrentFont = FCurrentFont;
            newState.FCurrentLineHeight = FCurrentLineHeight;
            newState.FCurrentRelativeFontSize = FCurrentRelativeFontSize;
            newState.FCurrentAlignment = FCurrentAlignment;
            newState.FNoWrap = FNoWrap;
            return newState;
        }