qprintengine.sip 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // qprintengine.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtPrintSupport Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. %If (PyQt_Printer)
  22. class QPrintEngine
  23. {
  24. %TypeHeaderCode
  25. #include <qprintengine.h>
  26. %End
  27. public:
  28. virtual ~QPrintEngine();
  29. enum PrintEnginePropertyKey
  30. {
  31. PPK_CollateCopies,
  32. PPK_ColorMode,
  33. PPK_Creator,
  34. PPK_DocumentName,
  35. PPK_FullPage,
  36. PPK_NumberOfCopies,
  37. PPK_Orientation,
  38. PPK_OutputFileName,
  39. PPK_PageOrder,
  40. PPK_PageRect,
  41. PPK_PageSize,
  42. PPK_PaperRect,
  43. PPK_PaperSource,
  44. PPK_PrinterName,
  45. PPK_PrinterProgram,
  46. PPK_Resolution,
  47. PPK_SelectionOption,
  48. PPK_SupportedResolutions,
  49. PPK_WindowsPageSize,
  50. PPK_FontEmbedding,
  51. PPK_Duplex,
  52. PPK_PaperSources,
  53. PPK_CustomPaperSize,
  54. PPK_PageMargins,
  55. PPK_PaperSize,
  56. PPK_CopyCount,
  57. PPK_SupportsMultipleCopies,
  58. PPK_PaperName,
  59. PPK_QPageSize,
  60. PPK_QPageMargins,
  61. PPK_QPageLayout,
  62. PPK_CustomBase,
  63. };
  64. virtual void setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant &value) = 0;
  65. virtual QVariant property(QPrintEngine::PrintEnginePropertyKey key) const = 0;
  66. virtual bool newPage() = 0;
  67. virtual bool abort() = 0;
  68. virtual int metric(QPaintDevice::PaintDeviceMetric) const = 0;
  69. virtual QPrinter::PrinterState printerState() const = 0;
  70. };
  71. %End