Class: cWinPrint2

Module location: Winprint2.pkg line 44 (view source)

JJT: Will we need a windows handle for this like old one

Class Hierarchy:

cObjectcWinPrint2

Class Definition

Properties

NumberDFBottom_Margin
IntegerDFCurrent_Color
*** internal properties
IntegerDFCurrent_Diagram
StringDFCurrent_Font
NumberDFCurrent_FontSize
IntegerDFCurrent_HeaderNr
IntegerDFCurrent_HeaderType
StringDFCurrent_OutPut
NumberDFLeft_Margin
*** Default values for margins 2.53 CM = 1 inch
NumberDFright_Margin
NumberDFTop_Margin
IntegerEnablePrintFromPreview
IntegerEnablePrintSetupFromPreview
This does nothing in Wp2 (because you can't to this anyway)
IntegerpbIsSuspended
is the GUI Suspended. This is privately maintained and is used to figure out if a preview panel is up or not
IntegerPrintDlgInPreview
If WP1 this defaults to false. In 2, it is true which means that the print job dialog appears when you hitprint in previewer.

Functions and Procedures

booleanArePrintersInstalled()
Construct_Object()
DFBeginHeaderType(Integer iHeaderNr Integer eHeaderType)
***
BooleanDFCheckPrintDialogFlag(Dword dwPDFlag)
*** *** Returns PRN_TRUE= if the flag is set (1) *** Returns PRN_FALSE= If the flag not is set (0) ***
DFClearDiagramList()
DFClearDoc()
***
DFClearPrinter()
***
DFClosePreview()
DFCreateDiagram(Integer eType Integer eFx Number nHeight Number nWidth Integer bXyAxis)
***
stringDFCurrent_Metrics()
**** Properties Maintained for compatibility with old Winprint (obsolete)
DFDiagram_Item(handle hDiagram String sLabel Number nValue Dword dwBColor Dword dwFColor Integer eFill Integer iDec Integer eValueOrPercent Integer eExt)
***
DFDiagramLabel(handle hDiagram String sLabel)
***
DFDiagramXLabel(handle hDiagram String sLabel)
***
DFDiagramYLabel(handle hDiagram String sLabel Boolean bVertical)
***
DFDrawDiagram(Handle hDiagram Number nYPos Number nXPos Boolean bUCp)
***
DFEndDocument()
DFEndHeaderType()
***
DwordDFGetColor(Integer iColor)
DwordDFGetCurrentColor()
StringDFGetCurrentDevice()
***
IntegerDFGetCurrentDiagram()
************************************************************* *** This procedures and functions are used when building *** *** complex graphics when you need to change value of the *** *** current diagram, so you can mix diagrams within each *** *** other. *** *************************************************************
IntegerDFGetDFColor(Integer iRed Integer iGreen Integer iBlue)
***
IntegerDFGetDiagramList(Integer iItem)
booleanDFGetLandscape()
bIsLandscape
IntegerDFGetMetrics()
DwordDFGetPrintDialogFlags()
Note: DfGetCurrentPort and DFGetCurrentDriver do not exist in winprint2. Trying to use these will result in a runtime error (which is good - don't use them) ***
integerDFGetPrinterBin()
eBinType
integerDFGetPrinterPaper()
ePaperType
integerDFGetPrinterResolution()
eResType
NumberDFGetUserDefinedLength()
***
NumberDFGetUserDefinedWidth()
***
DFHeaderFrameType(Integer eFrame integer iColor Number nWeight Integer iFillColor Boolean bFillFrame)
***
DFHeaderLineCheck(Integer iLines)
***
DFHeaderMargin(Integer eType Number nSize)
DFHeaderPosition(Integer ePlace)
***
DFHeaderWrap(Integer eOnOff)
***
DFLineCheck(Integer iLines)
***
DFLockDiagram(Handle hDiagram)
***
DFNewDoc(Boolean bAutoPreview)
IntegerDFNewPage(Integer Columns)
***
DfPreview()
DFPreviewNoWait()
*** This does a modeless preview. This is what you'd want during report generation and it may be what you want for report viewing.
DFPreviewWait()
*** This does a modal preview. You might want this for report viewing as the program knows when the viewer is closed Note that this is a private message and it was never intended that this should be used. We expect winprint reports to use modeless viewers.
DFPrint()
*** This invokes the print job dialog, prints the report, then clears the report document. This should be called after the report is complete.
BooleanDFPrintDialog()
***
DFPrintDoc()
***
DFPrinterBinFirstPage(Integer eBin)
DFPrintFlags(Integer Flags)
***
DFPrintSetup()
*** Provided for backwards compatibility. DFPrintSetupDialog is more flexible because it returns a false if cancel was selected.
BooleanDFPrintSetupDialog()
*** You can only invoke the print setup if the report is cleared. If you try to to do this in the wrong state you will get an error.
DFSelectPrinter(String sDriver String sDevice String sPort Boolean bUpdate)
*** obsolete and maintained for winprint-I backwards compatibility (maybe should be removed)
DFSetBold(Boolean bBold)
***
DFSetBottomMargin(Number nBottom)
***
DFSetCurrentDiagram(Integer iDiagram)
DFSetDevice(String sDevice)
*** Preferred usage for WinprintII
DFSetDFColor(Dword dwColor)
***
DFSetDiagramList(Integer iItem Integer iDiagram)
DFSetFont(String sFontName)
***
DFSetFontSize(Integer iHeight Integer iWidth)
***
DFSetFontStyle(DWORD dwStyle)
***
DFSetItalic(Boolean bItalic)
***
DFSetJMode(Integer eAlign)
***
DFSetLandscape(boolean bIsLandscape)
DFSetLeftMargin(Number nLeft)
***
DFSetMargins(Number nLeft Number nTop Number nRight Number nBottom)
***
DFSetMetrics(String sMetrics)
DFSetNumberOfCopies(Integer iNrOfCopies)
DFSetPrinterBin(integer eBinType)
DFSetPrinterPaper(integer ePaperType)
DFSetPrinterResolution(integer eResType)
DFSetRightMargin(Number nRight)
***
DFSetSpecPrintFlag(Dword dwPDFlag)
***
DFSetStrikeout(Boolean bStrikeout)
***
DFSetTopBottom(Number nTop Number nBottom Boolean bAllPages)
***
DFSetTopMargin(Number nTop)
***
DFSetUnderline(boolean bUnderline)
***
DFSetUserDefinedPapersize(Number nLength Number nWidth)
*** To be set in CM
DFSuspendGui(boolean bSuspend)
DFWrite(String sText DWORD iStyle Integer iColumn Integer iDecimal Boolean bTrim)
***
DFWriteBMP(String sFileName Number nStartX Number nStartY Number nHeight Number nWidth Boolean bUCp)
***
DFWriteEllip(Number nStartX Number nStartY Number nHeight Number nWidth Dword dwBColor Dword dwFColor Boolean bFill Number nWeight Boolean bWrap Boolean bUCp)
***
DFWriteHeaderType(Integer iHeaderNr Integer eHeaderType)
***
DFWriteLine(Number nStartX Number nStartY Number nLength Boolean bHorizontal Dword dwColor Number nWeight Boolean bUCp)
***
DFWriteLn(String sText DWORD iStyle Integer iColumn Integer iDecimal Boolean bTrim)
***
DFWriteLnPos(String sText integer iStyle Number nPosition Integer iDecimal Number nMaxLength boolean bTrim)
***
DFWritePos(String sText integer iStyle Number nPosition Integer iDecimal Number nMaxLength boolean bTrim)
***
DFWriteRect(Number nStartX Number nStartY Number nHeight Number nWidth Dword dwBColor Dword dwFColor Boolean bFill Number nWeight Boolean bWrap Boolean bUCp)
***
DFWriteText(String sText Integer iStyle Integer iColumn Integer iDecimal Boolean bNewLineAfterPrint)
***
DFWriteTextAtPosition(String sText integer iStyle Number nPosition Integer iDecimal Number nMaxLength Boolean bNewLineAfterPrint)
***
DFWriteXYLine(Number nStartX Number nStartY Number nStopX Number nStopY Dword dwColor Number nWeight Boolean bWrap Boolean bUCp)
***
DFZeroCounters()
Might still be called from report class. Leave dummy stub
IntegerDocumentStatus()
returns docucument state: dsNotStarted, dsStarted, dsFinished
BooleanIsPrinterValid()
booleanIsViewerActive()
integerPreviewYesNoBox(string sCaption string sText)
integerPrintFlagRange(integer iTopVal integer iStep)
internal function, used to extract different printer flags ranges based on the print flag integer. These flags use a decimal style of packing information where different printer options (paper, bin, etc) use different ranges and different steps. Everything above iTopVal is removed and everything that is not within the iStep range is removed.
PumpMsgQueue()
this is protected so that the queue is only pumped if the gui is suspended.
handleReport_Window_Handle()
***Return handle to use for winprint dialog. If main_window exists, use it. Else, get object's handle
integerRGBToWPColor(integer iRgb)
Set(string sCMorINCH)
SetProgressCaption(string sCaption)
SetReportTitle(string sTitle)
BooleanViewerWantsToClose()

Instances

oEvalObjcInternetSessionBusinessProcess.pkg88