6#if !defined(OWL_PRINTER_H)
10#if defined(BI_HAS_PRAGMA_ONCE)
23#include <owl/printer.rh>
52 void SetupWindow()
override;
87 virtual void BeginPrinting();
91 virtual void EndDocument();
92 virtual void EndPrinting();
96 TSize GetPageSize()
const;
98 bool WantBanding()
const;
99 void SetBanding(
bool banding=
true);
100 bool WantForceAllBands()
const;
101 void SetForceAllBands(
bool force=
true);
191 std::vector<char> Buffer;
194 static auto GetDefaultPrinter() ->
tstring;
201 virtual void ClearDevice();
202 virtual void Setup(
TWindow* parent);
208 auto GetDC() -> std::unique_ptr<TPrintDC>;
211 static HDC GetUserAbort();
220 TSize GetPageSize()
const;
222 TSize GetPageSizeInch()
const;
234 virtual void SetPageSizes(
const TPrintDC& dc);
283 auto& s = GetSetup();
319 auto GetBinNames() const -> TBinNames;
320 auto GetBins() const -> TBins;
321 auto CanCollate() const ->
bool;
322 auto IsColorDevice() const ->
bool;
323 auto GetMaxCopies() const ->
int;
325 auto HasDuplexSupport() const ->
bool;
326 auto GetResolutions() const -> TResolutions;
327 auto GetDevModeExtra() const ->
int;
329 auto GetDriverDependencies() const -> TFileDependencies;
331 auto GetReadyMedia() const -> TPaperForms;
332 auto GetMediaTypeNames() const -> TMediaTypeNames;
333 auto GetMediaTypes() const -> TMediaTypes;
335 auto GetLandscapeOrientation() const ->
int;
336 auto GetNupConfigurations() const -> TNupConfigurations;
337 auto GetPaperNames() const -> TPaperNames;
338 auto GetPapers() const -> TPapers;
339 auto GetPaperSizes() const -> TPaperSizes;
340 auto GetDescriptionLanguages() const -> TDescriptionLanguages;
341 auto GetMemoryCapacity() const ->
int;
342 auto GetPrintRate() const ->
int;
343 auto GetPrintRatePpm() const ->
int;
344 auto GetPrintRateUnit() const -> TPrintRateUnit;
345 auto GetDevModeSize() const ->
int;
346 auto CanStaple() const ->
bool;
347 auto GetTrueTypeCapabilities() const ->
DWORD;
348 auto GetDriverSpecificationVersion() const ->
DWORD;
Typically used to obtain information from a user, a dialog box is a window inside of which other cont...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
A DC class that provides access to a printer.
TPrintDialog::TData contains information required to initialize the printer dialog box with the user'...
TPrintDialog displays a modal print or a page setup dialog.
Contains information about the initialization and environment of a printer device.
auto GetData() const -> const DEVMODE *
Returns a pointer to the device data (const).
auto GetData() -> DEVMODE *
Returns a pointer to the device data.
TPrinterAbortDlg is the object type of the default printer-abort dialog box.
HDC PrnDC
Device context to print on.
DECLARE_RESPONSE_TABLE(TPrinterAbortDlg)
TPrinter is an encapsulation around the Windows printer device interface, and represents the physical...
std::vector< tstring > TDescriptionLanguages
Return type for GetDescriptionsLanguages.
std::vector< tstring > TPaperNames
Return type for GetPaperNames.
std::vector< tstring > TPaperForms
Return type for GetReadyMedia.
auto GetSetup() const -> const TPrintDialog::TData &
std::vector< WORD > TBins
Return type for GetBins.
std::vector< tstring > TMediaTypeNames
Return type for GetMediaTypeNames.
std::vector< tstring > TBinNames
Return type for GetBinNames.
std::vector< tstring > TFileDependencies
Return type for GetDriverDependencies.
TPrintRateUnit
Return type for GetPrintRateUnit.
std::vector< int > TNupConfigurations
Return type for GetNupConfigurations.
std::vector< DWORD > TMediaTypes
Return type for GetMediaTypes.
TCapability
Encapsulates the capability constants defined for the Windows API function DeviceCapabilities.
std::vector< TSize > TPaperSizes
Return type for GetPaperSizes.
std::vector< WORD > TPapers
Return type for GetPapers.
auto GetCapability(TCapability capability, TCHAR *output) const -> DWORD
Get information about the device.
std::vector< TSize > TResolutions
Return type for GetResolutions.
TPrintout represents the physical printed document that is to sent to a printer to be printed.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
Classes that inherit from TStreamableBase are known as streamable classes (their objects can be writt...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TXOwl is root class of the ObjectWindows exception hierarchy.
TXPrinter describes an exception that results from an invalid printer object.
TXPrinting describes an exception that indicates that printing failed.
Definition of TDialog class and TDialogAttr struct.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
TPrintoutFlags
TPrintout banding flags.
@ pfText
Current band accepts text.
@ pfBoth
Current band accepts both text and graphics.
@ pfGraphics
Current band accepts graphics.
Object Windows Library (OWLNext Core)
Definition of Print and PrintSetup common Dialogs classes.