1// qpagedpaintdevice.sip generated by MetaSIP 2// 3// This file is part of the QtGui Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23class QPagedPaintDevice : QPaintDevice 24{ 25%TypeHeaderCode 26#include <qpagedpaintdevice.h> 27%End 28 29public: 30 QPagedPaintDevice(); 31 virtual ~QPagedPaintDevice(); 32 virtual bool newPage() = 0; 33 34 enum PageSize 35 { 36 A4, 37 B5, 38 Letter, 39 Legal, 40 Executive, 41 A0, 42 A1, 43 A2, 44 A3, 45 A5, 46 A6, 47 A7, 48 A8, 49 A9, 50 B0, 51 B1, 52 B10, 53 B2, 54 B3, 55 B4, 56 B6, 57 B7, 58 B8, 59 B9, 60 C5E, 61 Comm10E, 62 DLE, 63 Folio, 64 Ledger, 65 Tabloid, 66 Custom, 67%If (Qt_5_3_0 -) 68 A10, 69%End 70%If (Qt_5_3_0 -) 71 A3Extra, 72%End 73%If (Qt_5_3_0 -) 74 A4Extra, 75%End 76%If (Qt_5_3_0 -) 77 A4Plus, 78%End 79%If (Qt_5_3_0 -) 80 A4Small, 81%End 82%If (Qt_5_3_0 -) 83 A5Extra, 84%End 85%If (Qt_5_3_0 -) 86 B5Extra, 87%End 88%If (Qt_5_3_0 -) 89 JisB0, 90%End 91%If (Qt_5_3_0 -) 92 JisB1, 93%End 94%If (Qt_5_3_0 -) 95 JisB2, 96%End 97%If (Qt_5_3_0 -) 98 JisB3, 99%End 100%If (Qt_5_3_0 -) 101 JisB4, 102%End 103%If (Qt_5_3_0 -) 104 JisB5, 105%End 106%If (Qt_5_3_0 -) 107 JisB6, 108%End 109%If (Qt_5_3_0 -) 110 JisB7, 111%End 112%If (Qt_5_3_0 -) 113 JisB8, 114%End 115%If (Qt_5_3_0 -) 116 JisB9, 117%End 118%If (Qt_5_3_0 -) 119 JisB10, 120%End 121%If (Qt_5_3_0 -) 122 AnsiC, 123%End 124%If (Qt_5_3_0 -) 125 AnsiD, 126%End 127%If (Qt_5_3_0 -) 128 AnsiE, 129%End 130%If (Qt_5_3_0 -) 131 LegalExtra, 132%End 133%If (Qt_5_3_0 -) 134 LetterExtra, 135%End 136%If (Qt_5_3_0 -) 137 LetterPlus, 138%End 139%If (Qt_5_3_0 -) 140 LetterSmall, 141%End 142%If (Qt_5_3_0 -) 143 TabloidExtra, 144%End 145%If (Qt_5_3_0 -) 146 ArchA, 147%End 148%If (Qt_5_3_0 -) 149 ArchB, 150%End 151%If (Qt_5_3_0 -) 152 ArchC, 153%End 154%If (Qt_5_3_0 -) 155 ArchD, 156%End 157%If (Qt_5_3_0 -) 158 ArchE, 159%End 160%If (Qt_5_3_0 -) 161 Imperial7x9, 162%End 163%If (Qt_5_3_0 -) 164 Imperial8x10, 165%End 166%If (Qt_5_3_0 -) 167 Imperial9x11, 168%End 169%If (Qt_5_3_0 -) 170 Imperial9x12, 171%End 172%If (Qt_5_3_0 -) 173 Imperial10x11, 174%End 175%If (Qt_5_3_0 -) 176 Imperial10x13, 177%End 178%If (Qt_5_3_0 -) 179 Imperial10x14, 180%End 181%If (Qt_5_3_0 -) 182 Imperial12x11, 183%End 184%If (Qt_5_3_0 -) 185 Imperial15x11, 186%End 187%If (Qt_5_3_0 -) 188 ExecutiveStandard, 189%End 190%If (Qt_5_3_0 -) 191 Note, 192%End 193%If (Qt_5_3_0 -) 194 Quarto, 195%End 196%If (Qt_5_3_0 -) 197 Statement, 198%End 199%If (Qt_5_3_0 -) 200 SuperA, 201%End 202%If (Qt_5_3_0 -) 203 SuperB, 204%End 205%If (Qt_5_3_0 -) 206 Postcard, 207%End 208%If (Qt_5_3_0 -) 209 DoublePostcard, 210%End 211%If (Qt_5_3_0 -) 212 Prc16K, 213%End 214%If (Qt_5_3_0 -) 215 Prc32K, 216%End 217%If (Qt_5_3_0 -) 218 Prc32KBig, 219%End 220%If (Qt_5_3_0 -) 221 FanFoldUS, 222%End 223%If (Qt_5_3_0 -) 224 FanFoldGerman, 225%End 226%If (Qt_5_3_0 -) 227 FanFoldGermanLegal, 228%End 229%If (Qt_5_3_0 -) 230 EnvelopeB4, 231%End 232%If (Qt_5_3_0 -) 233 EnvelopeB5, 234%End 235%If (Qt_5_3_0 -) 236 EnvelopeB6, 237%End 238%If (Qt_5_3_0 -) 239 EnvelopeC0, 240%End 241%If (Qt_5_3_0 -) 242 EnvelopeC1, 243%End 244%If (Qt_5_3_0 -) 245 EnvelopeC2, 246%End 247%If (Qt_5_3_0 -) 248 EnvelopeC3, 249%End 250%If (Qt_5_3_0 -) 251 EnvelopeC4, 252%End 253%If (Qt_5_3_0 -) 254 EnvelopeC6, 255%End 256%If (Qt_5_3_0 -) 257 EnvelopeC65, 258%End 259%If (Qt_5_3_0 -) 260 EnvelopeC7, 261%End 262%If (Qt_5_3_0 -) 263 Envelope9, 264%End 265%If (Qt_5_3_0 -) 266 Envelope11, 267%End 268%If (Qt_5_3_0 -) 269 Envelope12, 270%End 271%If (Qt_5_3_0 -) 272 Envelope14, 273%End 274%If (Qt_5_3_0 -) 275 EnvelopeMonarch, 276%End 277%If (Qt_5_3_0 -) 278 EnvelopePersonal, 279%End 280%If (Qt_5_3_0 -) 281 EnvelopeChou3, 282%End 283%If (Qt_5_3_0 -) 284 EnvelopeChou4, 285%End 286%If (Qt_5_3_0 -) 287 EnvelopeInvite, 288%End 289%If (Qt_5_3_0 -) 290 EnvelopeItalian, 291%End 292%If (Qt_5_3_0 -) 293 EnvelopeKaku2, 294%End 295%If (Qt_5_3_0 -) 296 EnvelopeKaku3, 297%End 298%If (Qt_5_3_0 -) 299 EnvelopePrc1, 300%End 301%If (Qt_5_3_0 -) 302 EnvelopePrc2, 303%End 304%If (Qt_5_3_0 -) 305 EnvelopePrc3, 306%End 307%If (Qt_5_3_0 -) 308 EnvelopePrc4, 309%End 310%If (Qt_5_3_0 -) 311 EnvelopePrc5, 312%End 313%If (Qt_5_3_0 -) 314 EnvelopePrc6, 315%End 316%If (Qt_5_3_0 -) 317 EnvelopePrc7, 318%End 319%If (Qt_5_3_0 -) 320 EnvelopePrc8, 321%End 322%If (Qt_5_3_0 -) 323 EnvelopePrc9, 324%End 325%If (Qt_5_3_0 -) 326 EnvelopePrc10, 327%End 328%If (Qt_5_3_0 -) 329 EnvelopeYou4, 330%End 331%If (Qt_5_3_0 -) 332 NPaperSize, 333%End 334%If (Qt_5_3_0 -) 335 AnsiA, 336%End 337%If (Qt_5_3_0 -) 338 AnsiB, 339%End 340%If (Qt_5_3_0 -) 341 EnvelopeC5, 342%End 343%If (Qt_5_3_0 -) 344 EnvelopeDL, 345%End 346%If (Qt_5_3_0 -) 347 Envelope10, 348%End 349%If (Qt_5_3_0 -) 350 LastPageSize, 351%End 352 }; 353 354%If (Qt_5_10_0 -) 355 356 enum PdfVersion 357 { 358 PdfVersion_1_4, 359 PdfVersion_A1b, 360%If (Qt_5_12_0 -) 361 PdfVersion_1_6, 362%End 363 }; 364 365%End 366 virtual void setPageSize(QPagedPaintDevice::PageSize size); 367 QPagedPaintDevice::PageSize pageSize() const; 368 virtual void setPageSizeMM(const QSizeF &size); 369 QSizeF pageSizeMM() const; 370 371 struct Margins 372 { 373%TypeHeaderCode 374#include <qpagedpaintdevice.h> 375%End 376 377 qreal left; 378 qreal right; 379 qreal top; 380 qreal bottom; 381 }; 382 383 virtual void setMargins(const QPagedPaintDevice::Margins &margins); 384 QPagedPaintDevice::Margins margins() const; 385%If (Qt_5_3_0 -) 386 bool setPageLayout(const QPageLayout &pageLayout); 387%End 388%If (Qt_5_3_0 -) 389 bool setPageSize(const QPageSize &pageSize); 390%End 391%If (Qt_5_3_0 -) 392 bool setPageOrientation(QPageLayout::Orientation orientation); 393%End 394%If (Qt_5_3_0 -) 395 bool setPageMargins(const QMarginsF &margins); 396%End 397%If (Qt_5_3_0 -) 398 bool setPageMargins(const QMarginsF &margins, QPageLayout::Unit units); 399%End 400%If (Qt_5_3_0 -) 401 QPageLayout pageLayout() const; 402%End 403}; 404