9#if !defined(OWL_PRINTDIA_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
200 TPrintDialog(TWindow* parent, TData&,
201 const tstring& printTemplateName,
202 const tstring& setupTemplateName = tstring(),
203 const tstring& title = tstring(),
206 bool GetDefaultPrinter();
207 auto DoExecute() ->
int override;
212 auto DialogFunction(TMsgId, TParam1, TParam2) -> INT_PTR
override;
219 void SetPD(
const PRINTDLG&);
231 PRINTPAGERANGE PdeRange;
249 TResId PrintTemplate;
250 tstring PrintTemplateName;
251 TResId SetupTemplate;
252 tstring SetupTemplateName;
256 TPrintDialog(
const TPrintDialog&);
257 TPrintDialog& operator=(
const TPrintDialog&);
TCommonDialog(TWindow *parent, LPCTSTR title=nullptr, TModule *module=nullptr)
Invokes a TWindow constructor, passing the parent window parent, and constructs a common dialog box t...
TPoint is a support class, derived from tagPOINT.
A DC class that provides access to a printer.
TPrintDialog::TData contains information required to initialize the printer dialog box with the user'...
uint32 PageSetupFlags
Additional page setup dialog flags.
LPCTSTR GetOutputName() const
Gets the name of the physical output medium.
const DEVMODE * GetDevMode() const
Gets a pointer to a DEVMODE structure (a structure containing information necessary to initialize the...
bool UseOldDialog
Flag to force use of the old print dialog under Win2K/XP/.
uint32 Error
If the dialog box is successfully executed, Error returns 0.
TPoint PaperSize
Size of the paper user has chosen.
TRect MinMargin
Minimum allowable margins of the paper.
friend class TPrintDialog
void SetDevNames(const tstring &driver, const tstring &device, const tstring &output)
Sets the values for the DEVNAMES structure.
LPCTSTR GetDriverName() const
Gets the name of the printer device driver.
int MaxPage
MaxPage indicates the maximum number of pages that can be printed.
TPrintDC * TransferDC()
Transfers the printers device context.
void Write(opstream &os)
Writes the object to a peristent stream.
void ClearDevNames()
Accessors and mutators for the internal Win32 DEVNAMES structure.
int FromPage
FromPage indicates the beginning page to print.
LPCTSTR GetDeviceName() const
Gets the name of the output device.
uint32 Flags
Flags , which are used to initialize the printer dialog box, can be one or more of the following valu...
int ToPage
ToPage indicates the ending page to print.
void * Read(ipstream &is, uint32 version)
int MinPage
MinPage indicates the minimum number of pages that can be printed.
TRect Margin
Initial margins for the paper.
void ClearDevMode()
Accessors and mutators for the internal Win32 DEVMODE structure.
const DEVNAMES * GetDevNames() const
Gets a pointer to a DEVNAMES structure (a structure containing three strings used to specify the driv...
void Lock()
Locks memory associated with the DEVMODE and DEVNAMES structures.
int Copies
Copies indicates the actual number of pages to be printed.
void SetDevMode(const DEVMODE *devMode)
Sets the values for the DEVMODE structure.
void Unlock()
Unlocks memory associated with the DEVMODE and DEVNAMES structures.
bool DoPageSetup
Flag to do page setup?
TPrintDialog(TWindow *parent, TData &, TResId printTemplate=TResId{}, TResId setupTemplate=TResId{}, LPCTSTR title=0, TModule *=0)
Constructs a print or print setup dialog box with specified data from the TPrintDialog::TData struct ...
TRect is a mathematical class derived from tagRect.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Base class for writing streamable objects.
Definition of Common Dialog abstract base class.
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
#define DECLARE_RESPONSE_TABLE(cls)
Object Windows Library (OWLNext Core).