Mapper  0.9.0
API documentation
Public Member Functions | Public Attributes | List of all members
OpenOrienteering::MapPrinterConfig Class Reference

MapPrintParameters contains all options that control printing and provides methods for saving and loading. More...

#include <map_printer.h>

Inheritance diagram for OpenOrienteering::MapPrinterConfig:
Inheritance graph
[legend]
Collaboration diagram for OpenOrienteering::MapPrinterConfig:
Collaboration graph
[legend]

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...
 

Detailed Description

MapPrintParameters contains all options that control printing and provides methods for saving and loading.

Constructor & Destructor Documentation

◆ MapPrinterConfig() [1/2]

OpenOrienteering::MapPrinterConfig::MapPrinterConfig ( const Map map)

Constructs a default config for the given map.

◆ MapPrinterConfig() [2/2]

OpenOrienteering::MapPrinterConfig::MapPrinterConfig ( const Map map,
QXmlStreamReader xml 
)

Constructs a config and loads the map print parameters from an XML stream.

Member Function Documentation

◆ save()

void OpenOrienteering::MapPrinterConfig::save ( QXmlStreamWriter xml,
const QLatin1String element_name 
) const

Saves the map print parameters to an XML stream.

Member Data Documentation

◆ center_print_area

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.

◆ native_data

std::shared_ptr<void> OpenOrienteering::MapPrinterConfig::native_data

Platform-dependent data.

◆ options

MapPrinterOptions OpenOrienteering::MapPrinterConfig::options

Printing options.

◆ page_format

MapPrinterPageFormat OpenOrienteering::MapPrinterConfig::page_format

The page format.

◆ print_area

QRectF OpenOrienteering::MapPrinterConfig::print_area

The print area.

◆ printer_name

QString OpenOrienteering::MapPrinterConfig::printer_name

The name of the printer.

◆ single_page_print_area

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.


The documentation for this class was generated from the following files: