2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_GEN_QTEXTDOCUMENTWRITER_H
|
|
|
|
#define MIQT_QT6_GEN_QTEXTDOCUMENTWRITER_H
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QIODevice;
|
|
|
|
class QTextDocument;
|
|
|
|
class QTextDocumentFragment;
|
|
|
|
class QTextDocumentWriter;
|
|
|
|
#else
|
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QTextDocument QTextDocument;
|
|
|
|
typedef struct QTextDocumentFragment QTextDocumentFragment;
|
|
|
|
typedef struct QTextDocumentWriter QTextDocumentWriter;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTextDocumentWriter_new(QTextDocumentWriter** outptr_QTextDocumentWriter);
|
|
|
|
void QTextDocumentWriter_new2(QIODevice* device, struct miqt_string format, QTextDocumentWriter** outptr_QTextDocumentWriter);
|
|
|
|
void QTextDocumentWriter_new3(struct miqt_string fileName, QTextDocumentWriter** outptr_QTextDocumentWriter);
|
|
|
|
void QTextDocumentWriter_new4(struct miqt_string fileName, struct miqt_string format, QTextDocumentWriter** outptr_QTextDocumentWriter);
|
2024-10-20 05:21:03 +00:00
|
|
|
void QTextDocumentWriter_SetFormat(QTextDocumentWriter* self, struct miqt_string format);
|
|
|
|
struct miqt_string QTextDocumentWriter_Format(const QTextDocumentWriter* self);
|
|
|
|
void QTextDocumentWriter_SetDevice(QTextDocumentWriter* self, QIODevice* device);
|
|
|
|
QIODevice* QTextDocumentWriter_Device(const QTextDocumentWriter* self);
|
|
|
|
void QTextDocumentWriter_SetFileName(QTextDocumentWriter* self, struct miqt_string fileName);
|
|
|
|
struct miqt_string QTextDocumentWriter_FileName(const QTextDocumentWriter* self);
|
|
|
|
bool QTextDocumentWriter_Write(QTextDocumentWriter* self, QTextDocument* document);
|
|
|
|
bool QTextDocumentWriter_WriteWithFragment(QTextDocumentWriter* self, QTextDocumentFragment* fragment);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QTextDocumentWriter_SupportedDocumentFormats();
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTextDocumentWriter_Delete(QTextDocumentWriter* self, bool isSubclass);
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|