File indexing completed on 2024-04-28 04:32:05

0001 /*
0002  * Copyright (C) 2010-2015 by Stephen Allewell
0003  * steve.allewell@gmail.com
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 2 of the License, or
0008  * (at your option) any later version.
0009  */
0010 
0011 #ifndef PaperSizes_H
0012 #define PaperSizes_H
0013 
0014 #include <QPageLayout>
0015 #include <QVector>
0016 
0017 class PageSizes
0018 {
0019 public:
0020     static QVector<QPageSize::PageSizeId> sizesForPrint();
0021     static int width(QPageSize::PageSizeId, QPageLayout::Orientation);
0022     static int height(QPageSize::PageSizeId, QPageLayout::Orientation);
0023 };
0024 
0025 #endif // PaperSizes_H