Class representing print settings.
More...
#include "include/cef_print_settings.h"
|
| virtual bool | IsValid ()=0 |
| | Returns true if this object is valid.
|
| |
| virtual bool | IsReadOnly ()=0 |
| | Returns true if the values of this object are read-only.
|
| |
| virtual void | SetOrientation (bool landscape)=0 |
| | Set the page orientation.
|
| |
| virtual bool | IsLandscape ()=0 |
| | Returns true if the orientation is landscape.
|
| |
| 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.
|
| |
| virtual void | SetDeviceName (const CefString &name)=0 |
| | Set the device name.
|
| |
| virtual CefString | GetDeviceName ()=0 |
| | Get the device name.
|
| |
| virtual void | SetDPI (int dpi)=0 |
| | Set the DPI (dots per inch).
|
| |
| virtual int | GetDPI ()=0 |
| | Get the DPI (dots per inch).
|
| |
| virtual void | SetPageRanges (const PageRangeList &ranges)=0 |
| | Set the page ranges.
|
| |
| virtual size_t | GetPageRangesCount ()=0 |
| | Returns the number of page ranges that currently exist.
|
| |
| virtual void | GetPageRanges (PageRangeList &ranges)=0 |
| | Retrieve the page ranges.
|
| |
| virtual void | SetSelectionOnly (bool selection_only)=0 |
| | Set whether only the selection will be printed.
|
| |
| virtual bool | IsSelectionOnly ()=0 |
| | Returns true if only the selection will be printed.
|
| |
| virtual void | SetCollate (bool collate)=0 |
| | Set whether pages will be collated.
|
| |
| virtual bool | WillCollate ()=0 |
| | Returns true if pages will be collated.
|
| |
| virtual void | SetColorModel (ColorModel model)=0 |
| | Set the color model.
|
| |
| virtual ColorModel | GetColorModel ()=0 |
| | Get the color model.
|
| |
| virtual void | SetCopies (int copies)=0 |
| | Set the number of copies.
|
| |
| virtual int | GetCopies ()=0 |
| | Get the number of copies.
|
| |
| virtual void | SetDuplexMode (DuplexMode mode)=0 |
| | Set the duplex mode.
|
| |
| virtual DuplexMode | GetDuplexMode ()=0 |
| | Get the duplex mode.
|
| |
| virtual void | AddRef () const =0 |
| | Called to increment the reference count for the object.
|
| |
| virtual bool | Release () const =0 |
| | Called to decrement the reference count for the object.
|
| |
| virtual bool | HasOneRef () const =0 |
| | Returns true if the reference count is 1.
|
| |
| virtual bool | HasAtLeastOneRef () const =0 |
| | Returns true if the reference count is at least 1.
|
| |
Class representing print settings.
◆ ColorModel
◆ DuplexMode
◆ PageRangeList
◆ Create()
◆ GetColorModel()
| virtual ColorModel CefPrintSettings::GetColorModel |
( |
| ) |
|
|
pure virtual |
◆ GetCopies()
| virtual int CefPrintSettings::GetCopies |
( |
| ) |
|
|
pure virtual |
Get the number of copies.
◆ GetDeviceName()
| virtual CefString CefPrintSettings::GetDeviceName |
( |
| ) |
|
|
pure virtual |
◆ GetDPI()
| virtual int CefPrintSettings::GetDPI |
( |
| ) |
|
|
pure virtual |
Get the DPI (dots per inch).
◆ GetDuplexMode()
| virtual DuplexMode CefPrintSettings::GetDuplexMode |
( |
| ) |
|
|
pure virtual |
◆ GetPageRanges()
| virtual void CefPrintSettings::GetPageRanges |
( |
PageRangeList & |
ranges | ) |
|
|
pure virtual |
Retrieve the page ranges.
◆ GetPageRangesCount()
| virtual size_t CefPrintSettings::GetPageRangesCount |
( |
| ) |
|
|
pure virtual |
Returns the number of page ranges that currently exist.
◆ IsLandscape()
| virtual bool CefPrintSettings::IsLandscape |
( |
| ) |
|
|
pure virtual |
Returns true if the orientation is landscape.
◆ IsReadOnly()
| virtual bool CefPrintSettings::IsReadOnly |
( |
| ) |
|
|
pure virtual |
Returns true if the values of this object are read-only.
Some APIs may expose read-only objects.
◆ IsSelectionOnly()
| virtual bool CefPrintSettings::IsSelectionOnly |
( |
| ) |
|
|
pure virtual |
Returns true if only the selection will be printed.
◆ IsValid()
| virtual bool CefPrintSettings::IsValid |
( |
| ) |
|
|
pure virtual |
Returns true if this object is valid.
Do not call any other methods if this function returns false.
◆ SetCollate()
| virtual void CefPrintSettings::SetCollate |
( |
bool |
collate | ) |
|
|
pure virtual |
Set whether pages will be collated.
◆ SetColorModel()
| virtual void CefPrintSettings::SetColorModel |
( |
ColorModel |
model | ) |
|
|
pure virtual |
◆ SetCopies()
| virtual void CefPrintSettings::SetCopies |
( |
int |
copies | ) |
|
|
pure virtual |
Set the number of copies.
◆ SetDeviceName()
| virtual void CefPrintSettings::SetDeviceName |
( |
const CefString & |
name | ) |
|
|
pure virtual |
◆ SetDPI()
| virtual void CefPrintSettings::SetDPI |
( |
int |
dpi | ) |
|
|
pure virtual |
Set the DPI (dots per inch).
◆ SetDuplexMode()
| virtual void CefPrintSettings::SetDuplexMode |
( |
DuplexMode |
mode | ) |
|
|
pure virtual |
◆ SetOrientation()
| virtual void CefPrintSettings::SetOrientation |
( |
bool |
landscape | ) |
|
|
pure virtual |
Set the page orientation.
◆ SetPageRanges()
| virtual void CefPrintSettings::SetPageRanges |
( |
const PageRangeList & |
ranges | ) |
|
|
pure virtual |
◆ SetPrinterPrintableArea()
| virtual void CefPrintSettings::SetPrinterPrintableArea |
( |
const CefSize & |
physical_size_device_units, |
|
|
const CefRect & |
printable_area_device_units, |
|
|
bool |
landscape_needs_flip |
|
) |
| |
|
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.
◆ SetSelectionOnly()
| virtual void CefPrintSettings::SetSelectionOnly |
( |
bool |
selection_only | ) |
|
|
pure virtual |
Set whether only the selection will be printed.
◆ WillCollate()
| virtual bool CefPrintSettings::WillCollate |
( |
| ) |
|
|
pure virtual |
Returns true if pages will be collated.
The documentation for this class was generated from the following file: