6#if !defined(OWL_PRINTER_H)
10#if defined(BI_HAS_PRAGMA_ONCE)
19#include <owl/printer.rh>
49 void SetupWindow()
override;
84 virtual void BeginPrinting();
88 virtual void EndDocument();
89 virtual void EndPrinting();
93 TSize GetPageSize()
const;
95 bool WantBanding()
const;
96 void SetBanding(
bool banding=
true);
97 bool WantForceAllBands()
const;
98 void SetForceAllBands(
bool force=
true);
188 std::vector<char> Buffer;
191 static auto GetDefaultPrinter() ->
tstring;
198 virtual void ClearDevice();
199 virtual void Setup(
TWindow* parent);
205 auto GetDC() -> std::unique_ptr<TPrintDC>;
208 static HDC GetUserAbort();
217 TSize GetPageSize()
const;
219 TSize GetPageSizeInch()
const;
231 virtual void SetPageSizes(
const TPrintDC& dc);
280 auto& s = GetSetup();
316 auto GetBinNames() const -> TBinNames;
317 auto GetBins() const -> TBins;
318 auto CanCollate() const ->
bool;
319 auto IsColorDevice() const ->
bool;
320 auto GetMaxCopies() const ->
int;
322 auto HasDuplexSupport() const ->
bool;
323 auto GetResolutions() const -> TResolutions;
324 auto GetDevModeExtra() const ->
int;
326 auto GetDriverDependencies() const -> TFileDependencies;
328 auto GetReadyMedia() const -> TPaperForms;
329 auto GetMediaTypeNames() const -> TMediaTypeNames;
330 auto GetMediaTypes() const -> TMediaTypes;
332 auto GetLandscapeOrientation() const ->
int;
333 auto GetNupConfigurations() const -> TNupConfigurations;
334 auto GetPaperNames() const -> TPaperNames;
335 auto GetPapers() const -> TPapers;
336 auto GetPaperSizes() const -> TPaperSizes;
337 auto GetDescriptionLanguages() const -> TDescriptionLanguages;
338 auto GetMemoryCapacity() const ->
int;
339 auto GetPrintRate() const ->
int;
340 auto GetPrintRatePpm() const ->
int;
341 auto GetPrintRateUnit() const -> TPrintRateUnit;
342 auto GetDevModeSize() const ->
int;
343 auto CanStaple() const ->
bool;
344 auto GetTrueTypeCapabilities() const ->
DWORD;
345 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.