Chromium Embedded Framework (CEF)
131.2.1+ge081753+chromium-131.0.6778.13
|
Class representing print settings. More...
#include "include/cef_print_settings.h"
Public Types | |
typedef cef_color_model_t | ColorModel |
typedef cef_duplex_mode_t | DuplexMode |
typedef std::vector< CefRange > | PageRangeList |
Public Member Functions | |
virtual bool | IsValid ()=0 |
Returns true if this object is valid. More... | |
virtual bool | IsReadOnly ()=0 |
Returns true if the values of this object are read-only. More... | |
virtual void | SetOrientation (bool landscape)=0 |
Set the page orientation. More... | |
virtual bool | IsLandscape ()=0 |
Returns true if the orientation is landscape. More... | |
virtual void | SetPrinterPrintableArea (const CefSize &physical_size_device_units, const CefRect &printable_area_device_units, bool landscape_needs_flip)=0 |
Set the printer printable area in device units. More... | |
virtual void | SetDeviceName (const CefString &name)=0 |
Set the device name. More... | |
virtual CefString | GetDeviceName ()=0 |
Get the device name. More... | |
virtual void | SetDPI (int dpi)=0 |
Set the DPI (dots per inch). More... | |
virtual int | GetDPI ()=0 |
Get the DPI (dots per inch). More... | |
virtual void | SetPageRanges (const PageRangeList &ranges)=0 |
Set the page ranges. More... | |
virtual size_t | GetPageRangesCount ()=0 |
Returns the number of page ranges that currently exist. More... | |
virtual void | GetPageRanges (PageRangeList &ranges)=0 |
Retrieve the page ranges. More... | |
virtual void | SetSelectionOnly (bool selection_only)=0 |
Set whether only the selection will be printed. More... | |
virtual bool | IsSelectionOnly ()=0 |
Returns true if only the selection will be printed. More... | |
virtual void | SetCollate (bool collate)=0 |
Set whether pages will be collated. More... | |
virtual bool | WillCollate ()=0 |
Returns true if pages will be collated. More... | |
virtual void | SetColorModel (ColorModel model)=0 |
Set the color model. More... | |
virtual ColorModel | GetColorModel ()=0 |
Get the color model. More... | |
virtual void | SetCopies (int copies)=0 |
Set the number of copies. More... | |
virtual int | GetCopies ()=0 |
Get the number of copies. More... | |
virtual void | SetDuplexMode (DuplexMode mode)=0 |
Set the duplex mode. More... | |
virtual DuplexMode | GetDuplexMode ()=0 |
Get the duplex mode. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Static Public Member Functions | |
static CefRefPtr< CefPrintSettings > | Create () |
Create a new CefPrintSettings object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Class representing print settings.
typedef std::vector<CefRange> CefPrintSettings::PageRangeList |
|
static |
Create a new CefPrintSettings object.
|
pure virtual |
Get the color model.
|
pure virtual |
Get the number of copies.
|
pure virtual |
Get the device name.
|
pure virtual |
Get the DPI (dots per inch).
|
pure virtual |
Get the duplex mode.
|
pure virtual |
Retrieve the page ranges.
|
pure virtual |
Returns the number of page ranges that currently exist.
|
pure virtual |
Returns true if the orientation is landscape.
|
pure virtual |
Returns true if the values of this object are read-only.
Some APIs may expose read-only objects.
|
pure virtual |
Returns true if only the selection will be printed.
|
pure virtual |
Returns true if this object is valid.
Do not call any other methods if this function returns false.
|
pure virtual |
Set whether pages will be collated.
|
pure virtual |
Set the color model.
|
pure virtual |
Set the number of copies.
|
pure virtual |
Set the device name.
|
pure virtual |
Set the DPI (dots per inch).
|
pure virtual |
Set the duplex mode.
|
pure virtual |
Set the page orientation.
|
pure virtual |
Set the page ranges.
|
pure virtual |
Set the printer printable area in device units.
Some platforms already provide flipped area. Set |landscape_needs_flip| to false on those platforms to avoid double flipping.
|
pure virtual |
Set whether only the selection will be printed.
|
pure virtual |
Returns true if pages will be collated.