2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QPDFWRITER_H
|
|
|
|
#define GEN_QPDFWRITER_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QIODevice;
|
|
|
|
class QMetaObject;
|
2024-08-29 07:01:51 +00:00
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QPagedPaintDevice__Margins)
|
|
|
|
typedef QPagedPaintDevice::Margins QPagedPaintDevice__Margins;
|
|
|
|
#else
|
|
|
|
class QPagedPaintDevice__Margins;
|
|
|
|
#endif
|
2024-08-25 04:08:24 +00:00
|
|
|
class QPdfWriter;
|
|
|
|
class QSizeF;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QPagedPaintDevice__Margins QPagedPaintDevice__Margins;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QPdfWriter QPdfWriter;
|
|
|
|
typedef struct QSizeF QSizeF;
|
|
|
|
#endif
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QPdfWriter* QPdfWriter_new(struct miqt_string* filename);
|
2024-08-25 04:08:24 +00:00
|
|
|
QPdfWriter* QPdfWriter_new2(QIODevice* device);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QPdfWriter_MetaObject(const QPdfWriter* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QPdfWriter_Tr(const char* s);
|
|
|
|
struct miqt_string* QPdfWriter_TrUtf8(const char* s);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPdfWriter_SetPdfVersion(QPdfWriter* self, uintptr_t version);
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QPdfWriter_PdfVersion(const QPdfWriter* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QPdfWriter_Title(const QPdfWriter* self);
|
|
|
|
void QPdfWriter_SetTitle(QPdfWriter* self, struct miqt_string* title);
|
|
|
|
struct miqt_string* QPdfWriter_Creator(const QPdfWriter* self);
|
|
|
|
void QPdfWriter_SetCreator(QPdfWriter* self, struct miqt_string* creator);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QPdfWriter_NewPage(QPdfWriter* self);
|
|
|
|
void QPdfWriter_SetResolution(QPdfWriter* self, int resolution);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPdfWriter_Resolution(const QPdfWriter* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_SetDocumentXmpMetadata(QPdfWriter* self, QByteArray* xmpMetadata);
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QPdfWriter_DocumentXmpMetadata(const QPdfWriter* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QPdfWriter_AddFileAttachment(QPdfWriter* self, struct miqt_string* fileName, QByteArray* data);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPdfWriter_SetPageSize(QPdfWriter* self, uintptr_t size);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_SetPageSizeMM(QPdfWriter* self, QSizeF* size);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPdfWriter_SetMargins(QPdfWriter* self, QPagedPaintDevice__Margins* m);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QPdfWriter_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string* QPdfWriter_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string* QPdfWriter_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string* QPdfWriter_TrUtf83(const char* s, const char* c, int n);
|
|
|
|
void QPdfWriter_AddFileAttachment3(QPdfWriter* self, struct miqt_string* fileName, QByteArray* data, struct miqt_string* mimeType);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPdfWriter_Delete(QPdfWriter* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|