88 ForceAllBands =
force;
231#if OWL_PERSISTENT_STREAMS
241 char*
title =
is.freadString();
245 GetObject()->Title =
is.freadString();
247 is >> GetObject()->Banding;
248 is >> GetObject()->ForceAllBands;
256TPrintout::Streamer::Write(opstream&
os)
const
259 os.fwriteString(
_W2A(GetObject()->Title.c_str()));
260 os << GetObject()->Banding;
261 os << GetObject()->ForceAllBands;
A DC class that provides access to a printer.
TPrintout represents the physical printed document that is to sent to a printer to be printed.
virtual void BeginDocument(int startPage, int endPage, uint flags)
The printer object's Print function calls BeginDocument once before printing each copy of a document.
bool WantForceAllBands() const
Returns true if the force all bands.
LPCTSTR GetTitle() const
Returns the title of the current printout.
virtual bool HasPage(int pageNumber)
HasPage is called after every page is printed.
TPrintDC * GetPrintDC()
Returns the DC associated with the printout.
void SetBanding(bool banding=true)
Sets the banding flag for the printout.
virtual void EndPrinting()
The printer object's Print function calls EndPrinting after all copies of the document finish printin...
TPrintout(LPCTSTR title)
Constructs an instance of TPrintout with the given title.
virtual void EndDocument()
The printer object's Print function calls EndDocument after each copy of the document finishes printi...
virtual void SetPrintParams(TPrintDC *dc, TSize pageSize)
SetPrintParams sets DC to dc and PageSize to pageSize.
virtual void PrintPage(int page, TRect &rect, uint flags)
PrintPage is called for every page (or band, if Banding is true) and must be overridden to print the ...
void SetPageSize(const TSize &pagesize)
Sets the size of the page.
void SetForceAllBands(bool force=true)
Sets the force banding flag.
TSize GetPageSize() const
Retrieves the size of the page.
bool WantBanding() const
Returns true if banding is desired.
void SetTitle(LPCTSTR title)
Sets a new title for this printout.
virtual void GetDialogInfo(int &minPage, int &maxPage, int &selFromPage, int &selToPage)
Retrieves information needed to allow the printing of selected pages of the document and returns true...
virtual void BeginPrinting()
The printer object's Print function calls BeginPrinting once at the beginning of a print job,...
virtual ~TPrintout()
Place-holder.
void SetPrintDC(TPrintDC *dc)
Sets the associated DC.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
#define IMPLEMENT_STREAMABLE(cls)
Object Windows Library (OWLNext Core)