mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 14:18:37 +00:00
56 lines
2.1 KiB
C
56 lines
2.1 KiB
C
|
#ifndef GEN_QPDFWRITER_H
|
||
|
#define GEN_QPDFWRITER_H
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
#include <stddef.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
class QByteArray;
|
||
|
class QIODevice;
|
||
|
class QMetaObject;
|
||
|
class QPdfWriter;
|
||
|
class QSizeF;
|
||
|
#else
|
||
|
typedef struct QByteArray QByteArray;
|
||
|
typedef struct QIODevice QIODevice;
|
||
|
typedef struct QMetaObject QMetaObject;
|
||
|
typedef struct QPdfWriter QPdfWriter;
|
||
|
typedef struct QSizeF QSizeF;
|
||
|
#endif
|
||
|
|
||
|
QPdfWriter* QPdfWriter_new(const char* filename, size_t filename_Strlen);
|
||
|
QPdfWriter* QPdfWriter_new2(QIODevice* device);
|
||
|
QMetaObject* QPdfWriter_MetaObject(QPdfWriter* self);
|
||
|
void QPdfWriter_Tr(char* s, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_TrUtf8(char* s, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_Title(QPdfWriter* self, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_SetTitle(QPdfWriter* self, const char* title, size_t title_Strlen);
|
||
|
void QPdfWriter_Creator(QPdfWriter* self, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_SetCreator(QPdfWriter* self, const char* creator, size_t creator_Strlen);
|
||
|
bool QPdfWriter_NewPage(QPdfWriter* self);
|
||
|
void QPdfWriter_SetResolution(QPdfWriter* self, int resolution);
|
||
|
int QPdfWriter_Resolution(QPdfWriter* self);
|
||
|
void QPdfWriter_SetDocumentXmpMetadata(QPdfWriter* self, QByteArray* xmpMetadata);
|
||
|
QByteArray* QPdfWriter_DocumentXmpMetadata(QPdfWriter* self);
|
||
|
void QPdfWriter_AddFileAttachment(QPdfWriter* self, const char* fileName, size_t fileName_Strlen, QByteArray* data);
|
||
|
void QPdfWriter_SetPageSizeMM(QPdfWriter* self, QSizeF* size);
|
||
|
void QPdfWriter_Tr2(char* s, char* c, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen);
|
||
|
void QPdfWriter_AddFileAttachment3(QPdfWriter* self, const char* fileName, size_t fileName_Strlen, QByteArray* data, const char* mimeType, size_t mimeType_Strlen);
|
||
|
void QPdfWriter_Delete(QPdfWriter* self);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern C */
|
||
|
#endif
|
||
|
|
||
|
#endif
|