home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
400616
/
data1.cab
/
Common-Lexware-LRegEdit-Formular-Standard
/
DruckNT.int
next >
Wrap
Text File
|
2003-04-01
|
10KB
|
248 lines
' ------------------------------------------------------------------------
' DruckNT.int - LexVM Compiler Include File
'
' Interface-Deklarationen der DruckNT-Bibliothek
'
' Datum: 25.02.1998
'
' Bemerkungen:
' Hier werden alle Variablen und Funktionen deklariert, die von
' DruckNT zur Verfⁿgung gestellt oder verwendet werden.
'
' Copyright 1998 Lexware GmbH & Co KG.
' ------------------------------------------------------------------------
' Interface der LexVM einbinden
Include "LexVM.int"
' ------------------------------------------------------------------------
' Konstanten
' ------------------------------------------------------------------------
' Allgemeine Konstanten
Const NULL as 0
' Events
Const EVENT_START_PAGE as 0
Const EVENT_END_PAGE as 1
Const EVENT_PRINT_HEADER as 3
Const EVENT_PRINT_FOOTER as 4
Const EVENT_BREAK_TABLE as 5
Const EVENT_END_TABLE as 6
' Fonts
Const FontType as Numeric
Const FONT_NORMAL as 0
Const FONT_BOLD as 1
Const FONT_ITALIC as 2
Const FONT_BOLD_ITALIC as 3
' Farben
Const COLOR_TRANSPARENT as -1
Const COLOR_BLACK as 0
Const COLOR_WHITE as 16777215
Const COLOR_RED as 255
Const COLOR_GREEN as 65280
Const COLOR_BLUE as 16711680
Const COLOR_LIGHTGREY as 12632256
' Pen Typen (Stifte)
Const PenType as Numeric
Const PEN_SOLID as 0
Const PEN_DOT as 1
Const PEN_DASH as 2
Const PEN_NULL as 3
' ZielgerΣte
const TARGET_FILE as "File"
const TARGET_PRINTER as "Printer"
' FormatNumeric Konstanten
Const FN_DEFAULT as 0
Const FN_CUSTOM as 1
Const FN_LOCALE as 2
' Seitenkonstanten
Const PAGE_PORTRAIT as "Portrait"
Const PAGE_LANDSCAPE as "Landscape"
Const PAGE_STANDARD as "Standard"
' Ausrichtungen
Const LINE_BOTTOM as TRUE
Const LINE_TOP as FALSE
' Tabellen und Zellen
' Datentyp einer Zelle
Const CellType as Numeric
Const CellTemplateType as Numeric
' Zelle am Anfang der Hierarchie
Const CELL_ROOT as 0
' RΣnder der Zelle
Const CELL_BORDER_TOP as 1
Const CELL_BORDER_BOTTOM as 2
Const CELL_BORDER_LEFT as 4
Const CELL_BORDER_RIGHT as 8
Const CELL_BORDER_ALL as 31
' Parameter einer Zelle zur Verwendung mit CreateCell
Const CELL_TYPE_DYNHORZ as 1
Const CELL_TYPE_DYNVERT as 2
Const CELL_TYPE_HORZ as 4
Const CELL_TYPE_VERT as 0
Const CELL_TYPE_CLIP as 8
Const CELL_LINE_SEPARATOR as 16
Const CELL_WORD_WRAP as 32
' Ausrichtungen des Textes innerhalb einer Zelle
Const CELL_TEXT_LEFT as 0
Const CELL_TEXT_RIGHT as 1
Const CELL_TEXT_CENTER as 2
' ------------------------------------------------------------------------
' allgemeine Funktionen
' ------------------------------------------------------------------------
' Position
Declare external SetPos(x as Numeric, y as Numeric)
Declare external GetPos(x ref Numeric, y ref Numeric)
Declare external GetPosX() as Numeric
Declare external GetPosY() as Numeric
' Schriftart
Declare external SetFont(font as String, size as Numeric, type as Numeric, color as Numeric)
Declare external SetFontName(font as String)
Declare external SetFontSize(size as Numeric)
Declare external SetFontType(type as Numeric)
Declare external SetFontColor(color as Numeric)
Declare external CreateFont(font as String, size as Numeric, type as Numeric, color as Numeric) as FontType
Declare external SelectFont(id as FontType)
' Stifte
Declare external SetPen(width as Numeric, type as Numeric, color as Numeric)
Declare external SetPenWidth(width as Numeric)
Declare external SetPenType(type as Numeric)
Declare external SetPenColor(color as Numeric)
Declare external CreatePen(width as Numeric, type as Numeric, color as Numeric) as PenType
Declare external SelectPen(id as PenType)
' Seitenattribute inkl. RΣnder
Declare external SetBodyMargin(left as Numeric, top as Numeric, right as Numeric, bottom as Numeric)
Declare external SetHeaderMargin(left as Numeric, top as Numeric, right as Numeric, height as Numeric)
Declare external SetFooterMargin(left as Numeric, top as Numeric, right as Numeric, height as Numeric)
' Tabulatoren
Declare external SetTabs(tabs as String)
Declare external RemoveTab(tab as Numeric)
Declare external RemoveAllTabs()
' Druckstatus
Const PAGENUMBER as FormatNumeric("%.0f", GetPageNumber())
Declare external GetPageNumber() as Numeric
Declare external GetAreaLength() as Numeric
Declare external GetAreaWidth() as Numeric
Declare external GetLineHeight() as Numeric
Const PRINTDATE as FormatDate("%d.%m.%Y", Now())
Declare external Now() as Numeric
' Programmname, Version und Formularname
Declare external GetProgramName() as String
Declare external GetProgramVersion() as String
Declare external GetFormFileName() as String
' Formatierungen von Ausgaben
Declare external FormatNumeric(format as String, n as Numeric) as String
Declare external FormatString(format as String, s as String) as String
Declare external FormatDate(format as String, d as Numeric) as String
Declare external SetFormatNumericOptions(mode as Numeric, dp as String, ts as String)
' Seitenumbruch ausl÷sen
Declare external PageBreak()
' ------------------------------------------------------------------------
' Zeichenfunktionen
' ------------------------------------------------------------------------
' Textausgabe
Const T as DrawText
Const TL as DrawTextLn
Const LF as DrawTextLn("")
Declare external DrawText(text as String)
Declare external DrawTextLn(text as String)
Declare external DrawTextExt(x as Numeric, y as Numeric, text as String)
Declare external SetWordWrap(wrap as Bool)
' Linien
Declare external DrawLine(x as Numeric, y as Numeric)
Declare external DrawLineExt(x1 as Numeric, y1 as Numeric, x2 as Numeric, y2 as Numeric)
Declare external DrawHorzLine(bottom as Bool)
' Rechtecke
Declare external DrawRect(x as Numeric, y as Numeric)
Declare external DrawRectExt(x1 as Numeric, y1 as Numeric, x2 as Numeric, y2 as Numeric)
' Bitmaps
Declare external DrawBitmap(x as Numeric, y as Numeric, width as Numeric, height as Numeric, file as String)
' Tabellen
Declare external CreateCell(width as Numeric, height as Numeric, flags as Numeric) as CellType
Declare external CreateCellEx(parent as CellType, width as Numeric, height as Numeric, flags as Numeric,
text as String, font as FontType, align as Numeric, color as Numeric,
pLeft as PenType, pTop as PenType, pRight as PenType, pBottom as PenType, pSep as PenType,
bLeft as Numeric, bTop as Numeric, bRight as Numeric, bBottom as Numeric) as CellType
Declare external CreateCellTemplate(width as Numeric, height as Numeric, flags as Numeric,
font as FontType, align as Numeric, color as Numeric,
pLeft as PenType, pTop as PenType, pRight as PenType, pBottom as PenType, pSep as PenType,
bLeft as Numeric, bTop as Numeric, bRight as Numeric, bBottom as Numeric) as CellTemplateType
Declare external CreateCellFromTemplate(template as CellTemplateType, parent as CellType, text as String) as CellType
Declare external DeleteCell(id as CellType, delChildren as Bool)
Declare external DeleteCellChildren(id as CellType)
Declare external GetCellByIndex(id as CellType, index as Numeric) as CellType
Declare external SetCellParent(id as CellType, parent as CellType)
Declare external DuplicateCell(id as CellType) as Numeric
Declare external SetCellFont(id as CellType, name as String, size as Numeric, type as Numeric, color as Numeric)
Declare external SetCellBackground(id as CellType, color as Numeric)
Declare external SetCellClip(id as CellType, clip as Bool)
Declare external SetCellBorder(id as CellType, which as Numeric, width as Numeric, type as Numeric, color as Numeric)
Declare external SetCellText(id as CellType, text as String)
Declare external SetCellAlign(id as CellType, align as Numeric)
Declare external SetCellTextBorder(id as CellType, left as Numeric, top as Numeric, right as Numeric, bottom as Numeric)
Declare external SetCellSize(id as CellType, width as Numeric, height as Numeric)
Declare external SetCellFlags(id as Numeric, flags as Numeric)
Declare external GetCellWidth(id as CellType) as Numeric
Declare external GetCellHeight(id as CellType) as Numeric
Declare external SetHeaderCell(id as CellType)
Declare external SetFooterCell(id as CellType)
Declare external DrawCell(id as CellType, continue as Bool)
Declare external SelectCellFont(id as CellType, font as FontType)
Declare external SelectCellBorder(id as CellType, which as Numeric, pen as PenType)
Declare external LXPlayMetafile(x as Numeric, y as Numeric, width as Numeric, height as Numeric, file as String)
' ACHTUNG:
' Diese Funktionen werden wom÷glich in den nΣchsten Versionen von
' DruckNT nicht mehr unterstⁿtzt. Deshalb sollten Sie deren Verwendung
' vermeiden
Declare external Round(v as Numeric) as Numeric
Declare external Str(v as Numeric) as String
Declare external Trace(value as String)
Declare external TraceNumeric(value as Numeric)
Declare external TraceBool(value as Bool)
' ------------------------------------------------------------------------
' allgemeine Initialisierungen von globalen Variablen
' ------------------------------------------------------------------------
' globale Pens (Stifte)
Dim hNullPen as PenType = CreatePen(0, PEN_NULL, 0)
Dim hDotPen as PenType = CreatePen(0, PEN_DOT, COLOR_BLACK)
Dim hSolidPen as PenType = CreatePen(0, PEN_SOLID, COLOR_BLACK)