示例#1
0
        /// <summary>
        /// Draws a line, either above or below the current text line
        /// the font is required to get the height of the row
        ///
        /// </summary>
        /// <returns>void</returns>
        public override Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
        {
            if (ALinePosition == eLinePosition.eAbove)
            {
                // to deal with things already printed in the beginning of the line (e.g. descr)
                InsertLineForMarkingLine(CurrentYPos);
            }
            else if (ALinePosition == eLinePosition.eBelow)
            {
                CurrentYPos = CurrentYPos + 1;
            }

            if (AXPos1 != 0)
            {
                // lines above/below columns should not touch
                AXPos1 = AXPos1 + 1;
                AXPos2 = AXPos2 - 1;
            }

            if (PrintingMode == ePrintingMode.eDoPrint)
            {
                PrintString(new String('-', Convert.ToInt32(AXPos2 - AXPos1 + 1)), eFont.eDefaultFont, Convert.ToInt32(AXPos1));
            }

            CurrentYPos = CurrentYPos + 1;
            return(true);
        }
示例#2
0
        /// <summary>
        /// Draws a line, either above or below the current text line
        /// the font is required to get the height of the row
        /// </summary>
        /// <param name="AXPos1"></param>
        /// <param name="AXPos2"></param>
        /// <param name="ALinePosition"></param>
        /// <param name="AFont"></param>
        /// <returns></returns>
        public override Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
        {
            float YPos;

            YPos = CurrentYPos;

            if (ALinePosition == eLinePosition.eBelow)
            {
                YPos = CurrentYPos + GetFontHeight(AFont);
            }
            else if (ALinePosition == eLinePosition.eAbove)
            {
                YPos = CurrentYPos;
            }

            if (AXPos1 != LeftMargin)
            {
                // lines above/below columns should not touch
                AXPos1 = AXPos1 + Cm(0.3f);
            }

            if (PrintingMode == ePrintingMode.eDoPrint)
            {
                FXGraphics.DrawLine(FXBlackPen, AXPos1, YPos, AXPos2, YPos);
            }

            return(true);
        }
示例#3
0
        /// <summary>
        /// Draws a line, either above or below the current text line
        /// the font is required to get the height of the row
        /// </summary>
        /// <param name="AXPos1"></param>
        /// <param name="AXPos2"></param>
        /// <param name="ALinePosition"></param>
        /// <param name="AFont"></param>
        /// <returns></returns>
        public override Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
        {
            float YPos;

            YPos = CurrentYPos;

            if (ALinePosition == eLinePosition.eBelow)
            {
                YPos = CurrentYPos + GetFontHeight(AFont);
            }
            else if (ALinePosition == eLinePosition.eAbove)
            {
                YPos = CurrentYPos;
            }

            if (AXPos1 != LeftMargin)
            {
                // lines above/below columns should not touch
                AXPos1 = AXPos1 + Cm(0.3f);
            }

            if (PrintingMode == ePrintingMode.eDoPrint)
            {
                FXGraphics.DrawLine(FXBlackPen, AXPos1, YPos, AXPos2, YPos);
            }

            return true;
        }
示例#4
0
 /// <summary>
 /// Draws a line, either above or below the current text line
 /// the font is required to get the height of the row
 /// </summary>
 /// <param name="AXPos1"></param>
 /// <param name="AXPos2"></param>
 /// <param name="ALinePosition"></param>
 /// <param name="AFont"></param>
 /// <returns></returns>
 public override Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
 {
     return(false);
 }
示例#5
0
        /// <summary>
        /// Draws a line, either above or below the current text line
        /// the font is required to get the height of the row
        ///
        /// </summary>
        /// <returns>void</returns>
        public override Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
        {
            if (ALinePosition == eLinePosition.eAbove)
            {
                // to deal with things already printed in the beginning of the line (e.g. descr)
                InsertLineForMarkingLine(CurrentYPos);
            }
            else if (ALinePosition == eLinePosition.eBelow)
            {
                CurrentYPos = CurrentYPos + 1;
            }

            if (AXPos1 != 0)
            {
                // lines above/below columns should not touch
                AXPos1 = AXPos1 + 1;
                AXPos2 = AXPos2 - 1;
            }

            if (PrintingMode == ePrintingMode.eDoPrint)
            {
                PrintString(new String('-', Convert.ToInt32(AXPos2 - AXPos1 + 1)), eFont.eDefaultFont, Convert.ToInt32(AXPos1));
            }

            CurrentYPos = CurrentYPos + 1;
            return true;
        }
示例#6
0
 /// <summary>
 /// Draws a line, either above or below the current text line
 /// the font is required to get the height of the row
 ///
 /// </summary>
 /// <returns>void</returns>
 public abstract Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont);
示例#7
0
 /// <summary>
 /// Draws a line, either above or below the current text line
 /// the font is required to get the height of the row
 ///
 /// </summary>
 /// <returns>void</returns>
 public abstract Boolean DrawLine(float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont);