![]() |
Mapper
0.9.0
API documentation
|
MapPrintParameters contains all options that control printing and provides methods for saving and loading. More...
#include <map_printer.h>
Public Member Functions | |
MapPrinterConfig (const Map &map) | |
Constructs a default config for the given map. More... | |
MapPrinterConfig (const Map &map, QXmlStreamReader &xml) | |
Constructs a config and loads the map print parameters from an XML stream. More... | |
void | save (QXmlStreamWriter &xml, const QLatin1String &element_name) const |
Saves the map print parameters to an XML stream. More... | |
Public Attributes | |
QString | printer_name |
The name of the printer. More... | |
QRectF | print_area |
The print area. More... | |
MapPrinterPageFormat | page_format |
The page format. More... | |
MapPrinterOptions | options |
Printing options. More... | |
bool | center_print_area |
A flag which indicates to the UI whether to maintain a centered print area when the size of the map or the page changes. More... | |
bool | single_page_print_area |
A flag which indicates to the UI whether to adjust the print area size to the current page size. More... | |
std::shared_ptr< void > | native_data |
Platform-dependent data. More... | |
MapPrintParameters contains all options that control printing and provides methods for saving and loading.
OpenOrienteering::MapPrinterConfig::MapPrinterConfig | ( | const Map & | map | ) |
Constructs a default config for the given map.
OpenOrienteering::MapPrinterConfig::MapPrinterConfig | ( | const Map & | map, |
QXmlStreamReader & | xml | ||
) |
Constructs a config and loads the map print parameters from an XML stream.
void OpenOrienteering::MapPrinterConfig::save | ( | QXmlStreamWriter & | xml, |
const QLatin1String & | element_name | ||
) | const |
Saves the map print parameters to an XML stream.
bool OpenOrienteering::MapPrinterConfig::center_print_area |
A flag which indicates to the UI whether to maintain a centered print area when the size of the map or the page changes.
std::shared_ptr<void> OpenOrienteering::MapPrinterConfig::native_data |
Platform-dependent data.
MapPrinterOptions OpenOrienteering::MapPrinterConfig::options |
Printing options.
MapPrinterPageFormat OpenOrienteering::MapPrinterConfig::page_format |
The page format.
QRectF OpenOrienteering::MapPrinterConfig::print_area |
The print area.
QString OpenOrienteering::MapPrinterConfig::printer_name |
The name of the printer.
bool OpenOrienteering::MapPrinterConfig::single_page_print_area |
A flag which indicates to the UI whether to adjust the print area size to the current page size.