#include <wx/cmndata.h>
This class represents a range of pages to be printed.
Public Member Functions | |
| wxPrintPageRange ()=default | |
| Default constructor creates an uninitialized range. | |
| wxPrintPageRange (int from, int to) | |
| Constructor creating a range from from to to (inclusive). | |
| bool | IsValid () const |
| Return true if both components are initialized correctly. | |
| int | GetNumberOfPages () const |
| Return the number of pages in this range if it is valid. | |
Public Attributes | |
| int | fromPage = 0 |
| int | toPage = 0 |
|
default |
Default constructor creates an uninitialized range.
| wxPrintPageRange::wxPrintPageRange | ( | int | from, |
| int | to ) |
Constructor creating a range from from to to (inclusive).
Parameters must be valid, i.e. from must be strictly positive and to must be greater or equal to from.
| int wxPrintPageRange::GetNumberOfPages | ( | ) | const |
Return the number of pages in this range if it is valid.
| bool wxPrintPageRange::IsValid | ( | ) | const |
Return true if both components are initialized correctly.
| int wxPrintPageRange::fromPage = 0 |
| int wxPrintPageRange::toPage = 0 |