18#ifndef INKSCAPE_UTIL_PAPER_H
19#define INKSCAPE_UTIL_PAPER_H
Cartesian point / 2D vector and related operations.
Two-dimensional point that doubles as a vector.
Data class used to store common paper dimensions from pages.csv.
PaperSize(const PaperSize &other)
Inkscape::Util::Unit const * unit
static const std::vector< PaperSize > & getPageSizes()
Returns a list of page sizes.
static std::string toDescription(std::string name, double x, double y, Inkscape::Util::Unit const *unit)
static std::string toDimsString(double x, double y, Util::Unit const *unit)
std::string getDescription(bool landscape) const
pointer to object in UnitTable, do not delete
static const PaperSize * findPaperSize(double width, double height, Inkscape::Util::Unit const *unit)
Returns a matching paper size, if possible.
static std::string formatNumber(double val)
void assign(const PaperSize &other)
PaperSize & operator=(const PaperSize &other)
Helper class to stream background task notifications as a series of messages.