OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Printing.TTxtPrinter Class Reference

The TTxtPrinter class allows to freely position text in a file. More...

Inheritance diagram for Ict.Common.Printing.TTxtPrinter:
Ict.Common.Printing.TPrinter

Public Member Functions

 TTxtPrinter ()
 constructor More...
 
override void Init (eOrientation AOrientation, TPrinterLayout APrinterLayout, eMarginType AMarginType)
 set the orientation of the page More...
 
override float LineFeed ()
 Line Feed; increases the current y position by one More...
 
override float LineFeed (eFont AFont)
 Line Feed; increases the current y position by one More...
 
override float LineSpaceFeed (eFont AFont)
 Line Feed, but not full line; increases the current y position by half the height of the given font More...
 
override float LineUnFeed (eFont AFont)
 Reverse Line Feed; decreases the current y position by the height of the given font More...
 
override Boolean ValidXPos (float APosition)
 Is the given position still on the page? More...
 
override Boolean ValidYPos ()
 Is the current line still on the page? More...
 
override float LineFeedToPageFooter ()
 Jump to the position where the page footer starts. SetPageFooterSpace is used to define the space reserved for the footer. More...
 
override void SetPageFooterSpace (System.Int32 ANumberOfLines, eFont AFont)
 Set the space that is required by the page footer. ValidYPos will consider this value. More...
 
override void SetHasMorePages (bool AHasMorePages)
 Tell the printer, that there are more pages coming More...
 
override bool HasMorePages ()
 not implemented More...
 
override float Cm (float AValueInCm)
 Converts the given value in cm to the currently used measurement unit (here only letters) More...
 
override float PixelHorizontal (float AWidth)
 convert pixels to inches or other unit used for output More...
 
override float PixelVertical (float AHeight)
 convert pixels to inches or other unit used for output More...
 
string GetLine (Int32 y)
 retrieve a complete line from the text in memory More...
 
void SetLine (Int32 y, string line)
 write a complete line; overwrites any existing line More...
 
bool InsertLineForMarkingLine (float AYPos)
 Insert a line that can be used for lines, ie. ====== More...
 
void Print (Int32 x, Int32 y, string s)
 write text to a specified position More...
 
override Boolean PrintString (String ATxt, eFont AFont, eAlignment AAlign)
 prints into the current line, aligned x position More...
 
override bool PrintString (String ATxt, eFont AFont, float AXPos, float AWidth, eAlignment AAlign)
 prints into the current line, absolute x position with width and alignment More...
 
override Boolean PrintString (String ATxt, eFont AFont, float AXPos)
 prints into the current line, absolute x position More...
 
override bool PrintStringWrap (String ATxt, eFont AFont, float AXPos, float AWidth, eAlignment AAlign)
 prints into the current line, absolute x position with width and alignment this method uses FCurrentXPos and FCurrentYPos to be able to continue a paragraph uses FCurrentXPos and FCurrentYPos to know where to start to print, and also sets valid values in those member variables More...
 
override Boolean PrintStringAndFits (String ATxt, eFont AFont, float AXPos, float AWidth, eAlignment AAlign)
 This function uses the normal PrintString function to print into a given space. More...
 
override float GetWidthString (String ATxt, eFont AFont)
 Return the width of the string, if it was printed in one line, using the given Font More...
 
override Boolean DrawLine (float AXPos1, float AXPos2, eLinePosition ALinePosition, eFont AFont)
 Draws a line, either above or below the current text line the font is required to get the height of the row More...
 
void WriteToFile (string filename)
 finally write the text from memory into a file More...
 
String[] GetArrayOfString ()
 copies the generated report into an array of strings. More...
 
String GetString ()
 copies the generated report into a single string seperated with line breaks. More...
 
virtual void SaveState ()
 save the state before a rotation etc More...
 
virtual void RestoreState ()
 restore the state after a rotation etc More...
 
virtual void RotateAtTransform (double ADegrees, double XPos, double YPos)
 rotate the following output by some degrees, at the given position More...
 
float LineFeed (float height)
 Line Feed; increases the current y position by the given height More...
 
virtual void DrawLine (Int32 APenPixels, float AXPos1, float AYPos1, float AXPos2, float AYPos2)
 Draws a line, at specified position More...
 
virtual void DrawRectangle (Int32 APenPixels, float AXPos, float AYPos, float AWidth, float AHeight)
 draws a rectangle More...
 
virtual void DrawBitmap (string APath, float AXPos, float AYPos)
 todoComment More...
 
virtual void DrawBitmap (string APath, float AXPos, float AYPos, float AWidth, float AHeight, float AWidthPercentage, float AHeightPercentage)
 Draw a bitmap. More...
 
void StartSimulatePrinting ()
 start the simulation of printing; nothing is actually printed, but the CurrentYPos is increased More...
 
void FinishSimulatePrinting ()
 finish the simulation of printing; the actual CurrentYPos is restored More...
 
void PushCurrentState ()
 store the current printer state (font size etc) More...
 
void PopCurrentState ()
 return to previous printer state; this is used for printing table cells More...
 
void PopCurrentStateApartFromYPosition ()
 return to previous printer state; but keep the new y position (used eg. for printing the page header) More...
 
float Inch (float AValueInInch)
 Converts the given value in inch to the currently used measurement unit; uses Inch2Cm and Cm More...
 
virtual void InsertDocument (string AFilename)
 insert another document into the current document. At the moment only used for PDF More...
 
virtual float PrintTable (float AXPos, float AWidthAvailable, List< TTableRowGfx >rows, out Int32 ARowsFittingOnPage)
 renders a table at the current FCurrentYPos does not support rowspan at the moment colspan might be implemented in the generation of the TTableRowGfx structure does not care about fitting on page etc. More...
 

Static Public Member Functions

static float Cm2Inch (float AValueInCm)
 Converts the given value in cm to the equivalent value in inches More...
 
static float Inch2Cm (float AValueInInch)
 Converts the given value in inches to the equivalent value in centimeters More...
 

Static Public Attributes

const Int16 NumberOfCharactersPerLineLandscape = 163
 todoComment More...
 
const Int16 NumberOfCharactersPerLinePortrait = 112
 todoComment More...
 
const Int16 DEFAULT_LENGTH_LINE = 800
 todoComment More...
 
const float FACTOR_CM_2_LETTER = 2.0f
 todoComment More...
 

Protected Member Functions

float CalculateXPos (float AXPos, float AWidth, String ATxt, eAlignment AAlign)
 Calculate the x position for a text, considering the width of the space and the width of the text, and the alignment More...
 
String GetFittedText (String ATxt, eFont AFont, float AWidth)
 Check if the text will fit into the given width. If yes, the text will be returned. If no, the text will be shortened and a "..." will be added to indicate that some text is missing. More...
 
String CutTextToLength (String ATxt, eFont AFont, float AWidth)
 Cuts a given text so it will not extend the given width. More...
 
Int32 GetTextLengthThatWillFit (String ATxt, eFont AFont, float AWidth, out Int32 firstWordLength)
 word wrap text, return the number of characters that fit the line width More...
 

Protected Attributes

eOrientation FOrientation
 todoComment More...
 
eMarginType FMarginType
 use printable area or default margins More...
 
Int32 FNumberOfPages
 todoComment More...
 
float FPageFooterSpace
 how much space is needed for the footer lines; footerspace = font.height number of lines More...
 
float FLeftMargin
 todoComment More...
 
float FTopMargin
 todoComment More...
 
float FRightMargin
 todoComment More...
 
float FBottomMargin
 todoComment More...
 
float FWidth
 todoComment More...
 
float FHeight
 todoComment More...
 
TPrinterLayout FPrinterLayout
 todoComment More...
 
TPrinterState FCurrentState = new TPrinterState()
 current state of printer More...
 
PrintAction FprintAction
 I can check whether I'm printing to a preview or a real printer. More...
 

Properties

System.Int32 CurrentPageNr [get, set]
 todoComment More...
 
System.Int32 CurrentDocumentNr [get, set]
 a document can consist of several pages; a document is one body element More...
 
System.Int32 NumberOfPages [get, set]
 this only has a valid value after the first rendering of the report More...
 
float CurrentYPos [get, set]
 todoComment More...
 
float CurrentXPos [get, set]
 todoComment More...
 
float AnchorXPos [get, set]
 other elements can be positioned relative to this position More...
 
float AnchorYPos [get, set]
 other elements can be positioned relative to this position More...
 
float LeftMargin [get]
 todoComment More...
 
float RightMargin [get]
 todoComment More...
 
eFont CurrentFont [get, set]
 todoComment More...
 
float CurrentLineHeight [get, set]
 1 is the normal height of the font, CurrentLineHeight is multiplied with the height of the font More...
 
float CurrentRelativeFontSize [get, set]
 the relative font size; 0 is default size More...
 
eAlignment CurrentAlignment [get, set]
 todoComment More...
 
ePrintingMode PrintingMode [get, set]
 this is about simulation or printing More...
 
float Width [get]
 todoComment More...
 
float PageFooterSpace [get]
 todoComment More...
 

Detailed Description

The TTxtPrinter class allows to freely position text in a file.

The printing is done in memory, and in the end the result is written to a file. That way the centering and aligning is possible, and jumping between lines is possible as well.

Todo:
addline, which tests if page break is necessary callback function printPageHeader(pagenumber: Integer);

Constructor & Destructor Documentation

◆ TTxtPrinter()

Ict.Common.Printing.TTxtPrinter.TTxtPrinter ( )
inline

constructor

Member Function Documentation

◆ CalculateXPos()

float Ict.Common.Printing.TTxtPrinter.CalculateXPos ( float  AXPos,
float  AWidth,
String  ATxt,
eAlignment  AAlign 
)
inlineprotected

Calculate the x position for a text, considering the width of the space and the width of the text, and the alignment

◆ Cm()

override float Ict.Common.Printing.TTxtPrinter.Cm ( float  AValueInCm)
inlinevirtual

Converts the given value in cm to the currently used measurement unit (here only letters)

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ Cm2Inch()

static float Ict.Common.Printing.TPrinter.Cm2Inch ( float  AValueInCm)
inlinestaticinherited

Converts the given value in cm to the equivalent value in inches

Returns
void

◆ CutTextToLength()

String Ict.Common.Printing.TTxtPrinter.CutTextToLength ( String  ATxt,
eFont  AFont,
float  AWidth 
)
inlineprotected

Cuts a given text so it will not extend the given width.

Parameters
ATxtThe text to cut
AFontThe font used
AWidthThe available length for the text in cm.
Returns
The maximum part of the text that will not extend the width.

◆ DrawBitmap() [1/2]

virtual void Ict.Common.Printing.TPrinter.DrawBitmap ( string  APath,
float  AXPos,
float  AYPos 
)
inlinevirtualinherited

todoComment

Parameters
APath
AXPos
AYPos

Reimplemented in Ict.Common.Printing.TGfxPrinter, and Ict.Common.Printing.TPdfPrinter.

◆ DrawBitmap() [2/2]

virtual void Ict.Common.Printing.TPrinter.DrawBitmap ( string  APath,
float  AXPos,
float  AYPos,
float  AWidth,
float  AHeight,
float  AWidthPercentage,
float  AHeightPercentage 
)
inlinevirtualinherited

Draw a bitmap.

Either Width or WidthPercentage should be unequals 0, but only one should have a value. Same applies to Height

Reimplemented in Ict.Common.Printing.TGfxPrinter, and Ict.Common.Printing.TPdfPrinter.

◆ DrawLine() [1/2]

override Boolean Ict.Common.Printing.TTxtPrinter.DrawLine ( float  AXPos1,
float  AXPos2,
eLinePosition  ALinePosition,
eFont  AFont 
)
inlinevirtual

Draws a line, either above or below the current text line the font is required to get the height of the row

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ DrawLine() [2/2]

virtual void Ict.Common.Printing.TPrinter.DrawLine ( Int32  APenPixels,
float  AXPos1,
float  AYPos1,
float  AXPos2,
float  AYPos2 
)
inlinevirtualinherited

Draws a line, at specified position

Reimplemented in Ict.Common.Printing.TGfxPrinter, and Ict.Common.Printing.TPdfPrinter.

◆ DrawRectangle()

virtual void Ict.Common.Printing.TPrinter.DrawRectangle ( Int32  APenPixels,
float  AXPos,
float  AYPos,
float  AWidth,
float  AHeight 
)
inlinevirtualinherited

draws a rectangle

Returns
void

Reimplemented in Ict.Common.Printing.TGfxPrinter, and Ict.Common.Printing.TPdfPrinter.

◆ FinishSimulatePrinting()

void Ict.Common.Printing.TPrinter.FinishSimulatePrinting ( )
inlineinherited

finish the simulation of printing; the actual CurrentYPos is restored

Returns
void

◆ GetArrayOfString()

String[] Ict.Common.Printing.TTxtPrinter.GetArrayOfString ( )
inline

copies the generated report into an array of strings.

Returns
the array of strings

◆ GetFittedText()

String Ict.Common.Printing.TTxtPrinter.GetFittedText ( String  ATxt,
eFont  AFont,
float  AWidth 
)
inlineprotected

Check if the text will fit into the given width. If yes, the text will be returned. If no, the text will be shortened and a "..." will be added to indicate that some text is missing.

Parameters
ATxtthe original text
AFontthe font
AWidththe space available for the text in cm
Returns
The input text. Either unmodified or shortened.

◆ GetLine()

string Ict.Common.Printing.TTxtPrinter.GetLine ( Int32  y)
inline

retrieve a complete line from the text in memory

Returns
void

◆ GetString()

String Ict.Common.Printing.TTxtPrinter.GetString ( )
inline

copies the generated report into a single string seperated with line breaks.

◆ GetTextLengthThatWillFit()

Int32 Ict.Common.Printing.TTxtPrinter.GetTextLengthThatWillFit ( String  ATxt,
eFont  AFont,
float  AWidth,
out Int32  firstWordLength 
)
inlineprotected

word wrap text, return the number of characters that fit the line width

Parameters
ATxt
AFont
AWidth
firstWordLengthreturns the length of the first word; this is needed if even the first word does not fit
Returns
void

◆ GetWidthString()

override float Ict.Common.Printing.TTxtPrinter.GetWidthString ( String  ATxt,
eFont  AFont 
)
inlinevirtual

Return the width of the string, if it was printed in one line, using the given Font

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ HasMorePages()

override bool Ict.Common.Printing.TTxtPrinter.HasMorePages ( )
inlinevirtual

not implemented

Returns

Implements Ict.Common.Printing.TPrinter.

◆ Inch()

float Ict.Common.Printing.TPrinter.Inch ( float  AValueInInch)
inlineinherited

Converts the given value in inch to the currently used measurement unit; uses Inch2Cm and Cm

Returns
void

◆ Inch2Cm()

static float Ict.Common.Printing.TPrinter.Inch2Cm ( float  AValueInInch)
inlinestaticinherited

Converts the given value in inches to the equivalent value in centimeters

Returns
void

◆ Init()

override void Ict.Common.Printing.TTxtPrinter.Init ( eOrientation  AOrientation,
TPrinterLayout  APrinterLayout,
eMarginType  AMarginType 
)
inlinevirtual

set the orientation of the page

Reimplemented from Ict.Common.Printing.TPrinter.

◆ InsertDocument()

virtual void Ict.Common.Printing.TPrinter.InsertDocument ( string  AFilename)
inlinevirtualinherited

insert another document into the current document. At the moment only used for PDF

Parameters
AFilename

Reimplemented in Ict.Common.Printing.TPdfPrinter.

◆ InsertLineForMarkingLine()

bool Ict.Common.Printing.TTxtPrinter.InsertLineForMarkingLine ( float  AYPos)
inline

Insert a line that can be used for lines, ie. ======

If a line has already been inserted in that position, don't do anything. Otherwise move the text down, and create a new empty line in the given place AYPos

Returns
true if a line has been inserted

◆ LineFeed() [1/3]

override float Ict.Common.Printing.TTxtPrinter.LineFeed ( )
inlinevirtual

Line Feed; increases the current y position by one

Returns
the new current line

Reimplemented from Ict.Common.Printing.TPrinter.

◆ LineFeed() [2/3]

override float Ict.Common.Printing.TTxtPrinter.LineFeed ( eFont  AFont)
inlinevirtual

Line Feed; increases the current y position by one

Returns
the new current line

Implements Ict.Common.Printing.TPrinter.

◆ LineFeed() [3/3]

float Ict.Common.Printing.TPrinter.LineFeed ( float  height)
inlineinherited

Line Feed; increases the current y position by the given height

Returns
the new current line

◆ LineFeedToPageFooter()

override float Ict.Common.Printing.TTxtPrinter.LineFeedToPageFooter ( )
inlinevirtual

Jump to the position where the page footer starts. SetPageFooterSpace is used to define the space reserved for the footer.

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ LineSpaceFeed()

override float Ict.Common.Printing.TTxtPrinter.LineSpaceFeed ( eFont  AFont)
inlinevirtual

Line Feed, but not full line; increases the current y position by half the height of the given font

Returns
the new current line

Implements Ict.Common.Printing.TPrinter.

◆ LineUnFeed()

override float Ict.Common.Printing.TTxtPrinter.LineUnFeed ( eFont  AFont)
inlinevirtual

Reverse Line Feed; decreases the current y position by the height of the given font

Returns
the new current line

Implements Ict.Common.Printing.TPrinter.

◆ PixelHorizontal()

override float Ict.Common.Printing.TTxtPrinter.PixelHorizontal ( float  AWidth)
inlinevirtual

convert pixels to inches or other unit used for output

Parameters
AWidth
Returns

Implements Ict.Common.Printing.TPrinter.

◆ PixelVertical()

override float Ict.Common.Printing.TTxtPrinter.PixelVertical ( float  AHeight)
inlinevirtual

convert pixels to inches or other unit used for output

Implements Ict.Common.Printing.TPrinter.

◆ PopCurrentState()

void Ict.Common.Printing.TPrinter.PopCurrentState ( )
inlineinherited

return to previous printer state; this is used for printing table cells

◆ PopCurrentStateApartFromYPosition()

void Ict.Common.Printing.TPrinter.PopCurrentStateApartFromYPosition ( )
inlineinherited

return to previous printer state; but keep the new y position (used eg. for printing the page header)

◆ Print()

void Ict.Common.Printing.TTxtPrinter.Print ( Int32  x,
Int32  y,
string  s 
)
inline

write text to a specified position

Returns
void

◆ PrintString() [1/3]

override Boolean Ict.Common.Printing.TTxtPrinter.PrintString ( String  ATxt,
eFont  AFont,
eAlignment  AAlign 
)
inlinevirtual

prints into the current line, aligned x position

Returns
true if something was printed

Implements Ict.Common.Printing.TPrinter.

◆ PrintString() [2/3]

override Boolean Ict.Common.Printing.TTxtPrinter.PrintString ( String  ATxt,
eFont  AFont,
float  AXPos 
)
inlinevirtual

prints into the current line, absolute x position

Returns
true if something was printed

Implements Ict.Common.Printing.TPrinter.

◆ PrintString() [3/3]

override bool Ict.Common.Printing.TTxtPrinter.PrintString ( String  ATxt,
eFont  AFont,
float  AXPos,
float  AWidth,
eAlignment  AAlign 
)
inlinevirtual

prints into the current line, absolute x position with width and alignment

Returns
true if something was printed

Implements Ict.Common.Printing.TPrinter.

◆ PrintStringAndFits()

override Boolean Ict.Common.Printing.TTxtPrinter.PrintStringAndFits ( String  ATxt,
eFont  AFont,
float  AXPos,
float  AWidth,
eAlignment  AAlign 
)
inlinevirtual

This function uses the normal PrintString function to print into a given space.

Returns
whether the text did fit that space or not.

Implements Ict.Common.Printing.TPrinter.

◆ PrintStringWrap()

override bool Ict.Common.Printing.TTxtPrinter.PrintStringWrap ( String  ATxt,
eFont  AFont,
float  AXPos,
float  AWidth,
eAlignment  AAlign 
)
inlinevirtual

prints into the current line, absolute x position with width and alignment this method uses FCurrentXPos and FCurrentYPos to be able to continue a paragraph uses FCurrentXPos and FCurrentYPos to know where to start to print, and also sets valid values in those member variables

Returns
s bool true if any text was printed

Reimplemented from Ict.Common.Printing.TPrinter.

◆ PrintTable()

virtual float Ict.Common.Printing.TPrinter.PrintTable ( float  AXPos,
float  AWidthAvailable,
List< TTableRowGfx rows,
out Int32  ARowsFittingOnPage 
)
inlinevirtualinherited

renders a table at the current FCurrentYPos does not support rowspan at the moment colspan might be implemented in the generation of the TTableRowGfx structure does not care about fitting on page etc.

Parameters
AXPosthe X position to start the table
AWidthAvailableAWidthAvailable
rows
ARowsFittingOnPagenumber of rows that fitted on the page
Returns
height of table

◆ PushCurrentState()

void Ict.Common.Printing.TPrinter.PushCurrentState ( )
inlineinherited

store the current printer state (font size etc)

◆ RestoreState()

virtual void Ict.Common.Printing.TPrinter.RestoreState ( )
inlinevirtualinherited

restore the state after a rotation etc

Reimplemented in Ict.Common.Printing.TPdfPrinter.

◆ RotateAtTransform()

virtual void Ict.Common.Printing.TPrinter.RotateAtTransform ( double  ADegrees,
double  XPos,
double  YPos 
)
inlinevirtualinherited

rotate the following output by some degrees, at the given position

Reimplemented in Ict.Common.Printing.TPdfPrinter.

◆ SaveState()

virtual void Ict.Common.Printing.TPrinter.SaveState ( )
inlinevirtualinherited

save the state before a rotation etc

Reimplemented in Ict.Common.Printing.TPdfPrinter.

◆ SetHasMorePages()

override void Ict.Common.Printing.TTxtPrinter.SetHasMorePages ( bool  AHasMorePages)
inlinevirtual

Tell the printer, that there are more pages coming

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ SetLine()

void Ict.Common.Printing.TTxtPrinter.SetLine ( Int32  y,
string  line 
)
inline

write a complete line; overwrites any existing line

Returns
void

◆ SetPageFooterSpace()

override void Ict.Common.Printing.TTxtPrinter.SetPageFooterSpace ( System.Int32  ANumberOfLines,
eFont  AFont 
)
inlinevirtual

Set the space that is required by the page footer. ValidYPos will consider this value.

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ StartSimulatePrinting()

void Ict.Common.Printing.TPrinter.StartSimulatePrinting ( )
inlineinherited

start the simulation of printing; nothing is actually printed, but the CurrentYPos is increased

Returns
void

◆ ValidXPos()

override Boolean Ict.Common.Printing.TTxtPrinter.ValidXPos ( float  APosition)
inlinevirtual

Is the given position still on the page?

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ ValidYPos()

override Boolean Ict.Common.Printing.TTxtPrinter.ValidYPos ( )
inlinevirtual

Is the current line still on the page?

Returns
void

Implements Ict.Common.Printing.TPrinter.

◆ WriteToFile()

void Ict.Common.Printing.TTxtPrinter.WriteToFile ( string  filename)
inline

finally write the text from memory into a file

Returns
void

Member Data Documentation

◆ DEFAULT_LENGTH_LINE

const Int16 Ict.Common.Printing.TTxtPrinter.DEFAULT_LENGTH_LINE = 800
static

todoComment

◆ FACTOR_CM_2_LETTER

const float Ict.Common.Printing.TTxtPrinter.FACTOR_CM_2_LETTER = 2.0f
static

todoComment

◆ FBottomMargin

float Ict.Common.Printing.TPrinter.FBottomMargin
protectedinherited

todoComment

◆ FCurrentState

TPrinterState Ict.Common.Printing.TPrinter.FCurrentState = new TPrinterState()
protectedinherited

current state of printer

◆ FHeight

float Ict.Common.Printing.TPrinter.FHeight
protectedinherited

todoComment

◆ FLeftMargin

float Ict.Common.Printing.TPrinter.FLeftMargin
protectedinherited

todoComment

◆ FMarginType

eMarginType Ict.Common.Printing.TPrinter.FMarginType
protectedinherited

use printable area or default margins

◆ FNumberOfPages

Int32 Ict.Common.Printing.TPrinter.FNumberOfPages
protectedinherited

todoComment

◆ FOrientation

eOrientation Ict.Common.Printing.TPrinter.FOrientation
protectedinherited

todoComment

◆ FPageFooterSpace

float Ict.Common.Printing.TPrinter.FPageFooterSpace
protectedinherited

how much space is needed for the footer lines; footerspace = font.height number of lines

◆ FprintAction

PrintAction Ict.Common.Printing.TPrinter.FprintAction
protectedinherited

I can check whether I'm printing to a preview or a real printer.

◆ FPrinterLayout

TPrinterLayout Ict.Common.Printing.TPrinter.FPrinterLayout
protectedinherited

todoComment

◆ FRightMargin

float Ict.Common.Printing.TPrinter.FRightMargin
protectedinherited

todoComment

◆ FTopMargin

float Ict.Common.Printing.TPrinter.FTopMargin
protectedinherited

todoComment

◆ FWidth

float Ict.Common.Printing.TPrinter.FWidth
protectedinherited

todoComment

◆ NumberOfCharactersPerLineLandscape

const Int16 Ict.Common.Printing.TTxtPrinter.NumberOfCharactersPerLineLandscape = 163
static

todoComment

◆ NumberOfCharactersPerLinePortrait

const Int16 Ict.Common.Printing.TTxtPrinter.NumberOfCharactersPerLinePortrait = 112
static

todoComment

Property Documentation

◆ AnchorXPos

float Ict.Common.Printing.TPrinter.AnchorXPos
getsetinherited

other elements can be positioned relative to this position

◆ AnchorYPos

float Ict.Common.Printing.TPrinter.AnchorYPos
getsetinherited

other elements can be positioned relative to this position

◆ CurrentAlignment

eAlignment Ict.Common.Printing.TPrinter.CurrentAlignment
getsetinherited

todoComment

◆ CurrentDocumentNr

System.Int32 Ict.Common.Printing.TPrinter.CurrentDocumentNr
getsetinherited

a document can consist of several pages; a document is one body element

◆ CurrentFont

eFont Ict.Common.Printing.TPrinter.CurrentFont
getsetinherited

todoComment

◆ CurrentLineHeight

float Ict.Common.Printing.TPrinter.CurrentLineHeight
getsetinherited

1 is the normal height of the font, CurrentLineHeight is multiplied with the height of the font

◆ CurrentPageNr

System.Int32 Ict.Common.Printing.TPrinter.CurrentPageNr
getsetinherited

todoComment

◆ CurrentRelativeFontSize

float Ict.Common.Printing.TPrinter.CurrentRelativeFontSize
getsetinherited

the relative font size; 0 is default size

◆ CurrentXPos

float Ict.Common.Printing.TPrinter.CurrentXPos
getsetinherited

todoComment

◆ CurrentYPos

float Ict.Common.Printing.TPrinter.CurrentYPos
getsetinherited

todoComment

◆ LeftMargin

float Ict.Common.Printing.TPrinter.LeftMargin
getinherited

todoComment

◆ NumberOfPages

System.Int32 Ict.Common.Printing.TPrinter.NumberOfPages
getsetinherited

this only has a valid value after the first rendering of the report

◆ PageFooterSpace

float Ict.Common.Printing.TPrinter.PageFooterSpace
getinherited

todoComment

◆ PrintingMode

ePrintingMode Ict.Common.Printing.TPrinter.PrintingMode
getsetinherited

this is about simulation or printing

◆ RightMargin

float Ict.Common.Printing.TPrinter.RightMargin
getinherited

todoComment

◆ Width

float Ict.Common.Printing.TPrinter.Width
getinherited

todoComment


The documentation for this class was generated from the following file: