9#if !defined(OWL_RICHEDPR_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
98 int& selFromPage,
int& selToPage);
TDC is the root class for GDI DC wrappers.
Derived from TWindow, TLayoutWindow provides functionality for defining the layout metrics for a wind...
TPreviewPage encapsulates a window which displays print-preview data.
TPreviewPage(TWindow *parent, TPrintout &printout, TPrintDC &prndc, TSize &printExtent, int pagenum=1)
Constructs a TPreviewPage object where parent is the parent window, printout is a reference to the co...
TPreviewWin(TWindow *parentWindow, TPrinter &printer, TPrintout &printout, TWindow &dataWindow, LPCTSTR title, TLayoutWindow *client)
Destructor of Preview frame window. Performs general cleanup.
A DC class that provides access to a printer.
TPrinter is an encapsulation around the Windows printer device interface, and represents the physical...
TPrintout represents the physical printed document that is to sent to a printer to be printed.
TPrintout(LPCTSTR title)
Constructs an instance of TPrintout with the given title.
TRect is a mathematical class derived from tagRect.
TRichEdit encapsulates a rich edit control, a window in which a user can enter, edit and format text.
void Paint(TDC &dc, bool, TRect &clip)
WM_PAINT handler of RichEdit PagePreview window.
TRichEditPagePreview(TWindow *parent, TPrintout &printout, TPrintDC &prndc, TSize &printExtent, int pagenum=1)
Constructor of RichEdit PagePreview object.
TRichEditPreviewFrame(TWindow *parentWindow, TPrinter &printer, TPrintout &printout, TRichEdit &richEdit, LPCTSTR title, TLayoutWindow *client)
Constructor of a RichEdit Preview Frame.
TPreviewPage * GetNewPreviewPage(TWindow *parent, TPrintout &printout, TPrintDC &prndc, TSize &printExtent, int pagenum=1)
Returns pointer to a preview page object.
void GetDialogInfo(int &minPage, int &maxPage, int &selFromPage, int &selToPage)
This method is invoked by the printer or print-preview classes to allow the printout to update the pa...
int TextLen
Length of text formatted.
TIntArray PageIndices
Index of page offsets.
TRichEdit & RichEdit
Ref. to associated control.
void PrintPage(int page, TRect &rect, uint flags)
This routine is invoked to request the printout object to print a page.
int PageCount
Number of pages formatted.
void BeginPrinting()
This routine is invoked to inform the printout that a printing operation has started.
TFormatRange FmtRange
Range of text to format.
void SetPrintParams(TPrintDC *dc, TSize pageSize)
This method is invoked by the printer or print-preview objects to hand the printout object the target...
bool FlushCache
Have cached formatted data.
TSize SizePhysInch
Size of printer in inches.
int PageOfOffset(int offset)
Returns the index of the page at the particular offset within the buffer of an edit control.
TSize SizePhysPage
Physical size of printer (pels).
bool HasPage(int pageNumber)
This routine is invoked to asked the printout object whether it has necessary information to print th...
void EndPrinting()
This routine is invoked to inform the printout that the printint operation has ended.
void CleanupPrintParams()
This is an overriden virtual method of TPrintout.
TSize Margins
Size of margins.
TPrinter & Printer
Ref. to associated printer.
TRichEditPrintout(TPrinter &printer, TRichEdit &richEdit, LPCTSTR title)
Constructs a Printout object which represent a RICHEDIT's document.
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of container classes used and made available by OWL.
Definition of classes TLayoutMetrics & TLayoutWindow.
Object Windows Library (OWLNext Core).
TTypedArray< int, int, TStandardAllocator > TIntArray
Definition of print preview classes.
Definition of TPreviewWin, the Preview Window class.
Definition of class TRichEdit.
Definition of container classes used and made available by OWL.