Tool bar icons and functionality

This commit is contained in:
Jakub Melka
2019-11-06 18:25:46 +01:00
parent 06e0036cda
commit e9dff4d747
20 changed files with 1512 additions and 11 deletions

View File

@@ -172,6 +172,15 @@ public:
/// then exception is thrown.
static PDFViewerPreferences parse(const PDFObject& catalogDictionary, const PDFDocument* document);
OptionFlags getOptions() const { return m_optionFlags; }
const QByteArray& getProperty(Properties property) const { return m_properties.at(property); }
NonFullScreenPageMode getNonFullScreenPageMode() const { return m_nonFullScreenPageMode; }
Direction getDirection() const { return m_direction; }
Duplex getDuplex() const { return m_duplex; }
PrintScaling getPrintScaling() const { return m_printScaling; }
const std::vector<std::pair<PDFInteger, PDFInteger>>& getPrintPageRanges() const { return m_printPageRanges; }
PDFInteger getNumberOfCopies() const { return m_numberOfCopies; }
private:
OptionFlags m_optionFlags = None;
std::array<QByteArray, EndProperties> m_properties;