MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / MapPrinterConfig

Method MapPrinterConfig

src/core/map_printer.cpp:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189// ### MapPrinterConfig ###
190
191MapPrinterConfig::MapPrinterConfig(const Map& map)
192 : printer_name(QString::fromLatin1("DEFAULT")),
193 print_area(map.calculateExtent()),
194 page_format(MapPrinterPageFormat::fromDefaultPrinter()),
195 options(map.getScaleDenominator()),
196 center_print_area(false),
197 single_page_print_area(false)
198{
199 if (print_area.isEmpty())
200 print_area = page_format.page_rect;
201}
202
203MapPrinterConfig::MapPrinterConfig(const Map& map, QXmlStreamReader& xml)
204 : printer_name(QString::fromLatin1("DEFAULT")),

Callers

nothing calls this directly

Calls 10

QLatin1StringClass · 0.85
toUtf8Method · 0.80
nameMethod · 0.80
hasAttributeMethod · 0.80
XmlElementReaderClass · 0.50
calculateExtentMethod · 0.45
getScaleDenominatorMethod · 0.45
isEmptyMethod · 0.45
containsMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected