2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTEXTDOCUMENT_H
|
|
|
|
#define GEN_QTEXTDOCUMENT_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QAbstractTextDocumentLayout;
|
|
|
|
class QAbstractUndoItem;
|
|
|
|
class QByteArray;
|
|
|
|
class QChar;
|
|
|
|
class QFont;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QPagedPaintDevice;
|
|
|
|
class QPainter;
|
|
|
|
class QRectF;
|
2024-08-29 07:01:51 +00:00
|
|
|
class QRegExp;
|
|
|
|
class QRegularExpression;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QSizeF;
|
|
|
|
class QTextBlock;
|
|
|
|
class QTextCursor;
|
|
|
|
class QTextDocument;
|
|
|
|
class QTextFormat;
|
|
|
|
class QTextFrame;
|
|
|
|
class QTextObject;
|
|
|
|
class QTextOption;
|
|
|
|
class QUrl;
|
|
|
|
class QVariant;
|
|
|
|
#else
|
|
|
|
typedef struct QAbstractTextDocumentLayout QAbstractTextDocumentLayout;
|
|
|
|
typedef struct QAbstractUndoItem QAbstractUndoItem;
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QChar QChar;
|
|
|
|
typedef struct QFont QFont;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QPagedPaintDevice QPagedPaintDevice;
|
|
|
|
typedef struct QPainter QPainter;
|
|
|
|
typedef struct QRectF QRectF;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QRegExp QRegExp;
|
|
|
|
typedef struct QRegularExpression QRegularExpression;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QSizeF QSizeF;
|
|
|
|
typedef struct QTextBlock QTextBlock;
|
|
|
|
typedef struct QTextCursor QTextCursor;
|
|
|
|
typedef struct QTextDocument QTextDocument;
|
|
|
|
typedef struct QTextFormat QTextFormat;
|
|
|
|
typedef struct QTextFrame QTextFrame;
|
|
|
|
typedef struct QTextObject QTextObject;
|
|
|
|
typedef struct QTextOption QTextOption;
|
|
|
|
typedef struct QUrl QUrl;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void QAbstractUndoItem_Undo(QAbstractUndoItem* self);
|
|
|
|
void QAbstractUndoItem_Redo(QAbstractUndoItem* self);
|
|
|
|
void QAbstractUndoItem_Delete(QAbstractUndoItem* self);
|
|
|
|
|
|
|
|
QTextDocument* QTextDocument_new();
|
|
|
|
QTextDocument* QTextDocument_new2(const char* text, size_t text_Strlen);
|
|
|
|
QTextDocument* QTextDocument_new3(QObject* parent);
|
|
|
|
QTextDocument* QTextDocument_new4(const char* text, size_t text_Strlen, QObject* parent);
|
|
|
|
QMetaObject* QTextDocument_MetaObject(QTextDocument* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
QTextDocument* QTextDocument_Clone(QTextDocument* self);
|
|
|
|
bool QTextDocument_IsEmpty(QTextDocument* self);
|
|
|
|
void QTextDocument_Clear(QTextDocument* self);
|
|
|
|
void QTextDocument_SetUndoRedoEnabled(QTextDocument* self, bool enable);
|
|
|
|
bool QTextDocument_IsUndoRedoEnabled(QTextDocument* self);
|
|
|
|
bool QTextDocument_IsUndoAvailable(QTextDocument* self);
|
|
|
|
bool QTextDocument_IsRedoAvailable(QTextDocument* self);
|
|
|
|
int QTextDocument_AvailableUndoSteps(QTextDocument* self);
|
|
|
|
int QTextDocument_AvailableRedoSteps(QTextDocument* self);
|
|
|
|
int QTextDocument_Revision(QTextDocument* self);
|
|
|
|
void QTextDocument_SetDocumentLayout(QTextDocument* self, QAbstractTextDocumentLayout* layout);
|
|
|
|
QAbstractTextDocumentLayout* QTextDocument_DocumentLayout(QTextDocument* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_SetMetaInformation(QTextDocument* self, uintptr_t info, const char* param2, size_t param2_Strlen);
|
|
|
|
void QTextDocument_MetaInformation(QTextDocument* self, uintptr_t info, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTextDocument_ToHtml(QTextDocument* self, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_SetHtml(QTextDocument* self, const char* html, size_t html_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_ToMarkdown(QTextDocument* self, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_SetMarkdown(QTextDocument* self, const char* markdown, size_t markdown_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTextDocument_ToRawText(QTextDocument* self, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_ToPlainText(QTextDocument* self, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_SetPlainText(QTextDocument* self, const char* text, size_t text_Strlen);
|
|
|
|
QChar* QTextDocument_CharacterAt(QTextDocument* self, int pos);
|
2024-08-29 07:01:51 +00:00
|
|
|
QTextCursor* QTextDocument_Find(QTextDocument* self, const char* subString, size_t subString_Strlen);
|
|
|
|
QTextCursor* QTextDocument_Find2(QTextDocument* self, const char* subString, size_t subString_Strlen, QTextCursor* cursor);
|
|
|
|
QTextCursor* QTextDocument_FindWithExpr(QTextDocument* self, QRegExp* expr);
|
|
|
|
QTextCursor* QTextDocument_Find3(QTextDocument* self, QRegExp* expr, QTextCursor* cursor);
|
|
|
|
QTextCursor* QTextDocument_Find4(QTextDocument* self, QRegularExpression* expr);
|
|
|
|
QTextCursor* QTextDocument_Find5(QTextDocument* self, QRegularExpression* expr, QTextCursor* cursor);
|
2024-08-25 04:08:24 +00:00
|
|
|
QTextFrame* QTextDocument_FrameAt(QTextDocument* self, int pos);
|
|
|
|
QTextFrame* QTextDocument_RootFrame(QTextDocument* self);
|
|
|
|
QTextObject* QTextDocument_Object(QTextDocument* self, int objectIndex);
|
|
|
|
QTextObject* QTextDocument_ObjectForFormat(QTextDocument* self, QTextFormat* param1);
|
|
|
|
QTextBlock* QTextDocument_FindBlock(QTextDocument* self, int pos);
|
|
|
|
QTextBlock* QTextDocument_FindBlockByNumber(QTextDocument* self, int blockNumber);
|
|
|
|
QTextBlock* QTextDocument_FindBlockByLineNumber(QTextDocument* self, int blockNumber);
|
|
|
|
QTextBlock* QTextDocument_Begin(QTextDocument* self);
|
|
|
|
QTextBlock* QTextDocument_End(QTextDocument* self);
|
|
|
|
QTextBlock* QTextDocument_FirstBlock(QTextDocument* self);
|
|
|
|
QTextBlock* QTextDocument_LastBlock(QTextDocument* self);
|
|
|
|
void QTextDocument_SetPageSize(QTextDocument* self, QSizeF* size);
|
|
|
|
QSizeF* QTextDocument_PageSize(QTextDocument* self);
|
|
|
|
void QTextDocument_SetDefaultFont(QTextDocument* self, QFont* font);
|
|
|
|
QFont* QTextDocument_DefaultFont(QTextDocument* self);
|
|
|
|
int QTextDocument_PageCount(QTextDocument* self);
|
|
|
|
bool QTextDocument_IsModified(QTextDocument* self);
|
|
|
|
void QTextDocument_Print(QTextDocument* self, QPagedPaintDevice* printer);
|
|
|
|
QVariant* QTextDocument_Resource(QTextDocument* self, int typeVal, QUrl* name);
|
|
|
|
void QTextDocument_AddResource(QTextDocument* self, int typeVal, QUrl* name, QVariant* resource);
|
|
|
|
void QTextDocument_AllFormats(QTextDocument* self, QTextFormat*** _out, size_t* _out_len);
|
|
|
|
void QTextDocument_MarkContentsDirty(QTextDocument* self, int from, int length);
|
|
|
|
void QTextDocument_SetUseDesignMetrics(QTextDocument* self, bool b);
|
|
|
|
bool QTextDocument_UseDesignMetrics(QTextDocument* self);
|
|
|
|
void QTextDocument_DrawContents(QTextDocument* self, QPainter* painter);
|
|
|
|
void QTextDocument_SetTextWidth(QTextDocument* self, double width);
|
|
|
|
double QTextDocument_TextWidth(QTextDocument* self);
|
|
|
|
double QTextDocument_IdealWidth(QTextDocument* self);
|
|
|
|
double QTextDocument_IndentWidth(QTextDocument* self);
|
|
|
|
void QTextDocument_SetIndentWidth(QTextDocument* self, double width);
|
|
|
|
double QTextDocument_DocumentMargin(QTextDocument* self);
|
|
|
|
void QTextDocument_SetDocumentMargin(QTextDocument* self, double margin);
|
|
|
|
void QTextDocument_AdjustSize(QTextDocument* self);
|
|
|
|
QSizeF* QTextDocument_Size(QTextDocument* self);
|
|
|
|
int QTextDocument_BlockCount(QTextDocument* self);
|
|
|
|
int QTextDocument_LineCount(QTextDocument* self);
|
|
|
|
int QTextDocument_CharacterCount(QTextDocument* self);
|
|
|
|
void QTextDocument_SetDefaultStyleSheet(QTextDocument* self, const char* sheet, size_t sheet_Strlen);
|
|
|
|
void QTextDocument_DefaultStyleSheet(QTextDocument* self, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_Undo(QTextDocument* self, QTextCursor* cursor);
|
|
|
|
void QTextDocument_Redo(QTextDocument* self, QTextCursor* cursor);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_ClearUndoRedoStacks(QTextDocument* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QTextDocument_MaximumBlockCount(QTextDocument* self);
|
|
|
|
void QTextDocument_SetMaximumBlockCount(QTextDocument* self, int maximum);
|
|
|
|
QTextOption* QTextDocument_DefaultTextOption(QTextDocument* self);
|
|
|
|
void QTextDocument_SetDefaultTextOption(QTextDocument* self, QTextOption* option);
|
|
|
|
QUrl* QTextDocument_BaseUrl(QTextDocument* self);
|
|
|
|
void QTextDocument_SetBaseUrl(QTextDocument* self, QUrl* url);
|
2024-08-29 07:01:51 +00:00
|
|
|
uintptr_t QTextDocument_DefaultCursorMoveStyle(QTextDocument* self);
|
|
|
|
void QTextDocument_SetDefaultCursorMoveStyle(QTextDocument* self, uintptr_t style);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTextDocument_ContentsChange(QTextDocument* self, int from, int charsRemoved, int charsAdded);
|
|
|
|
void QTextDocument_connect_ContentsChange(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_ContentsChanged(QTextDocument* self);
|
|
|
|
void QTextDocument_connect_ContentsChanged(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_UndoAvailable(QTextDocument* self, bool param1);
|
|
|
|
void QTextDocument_connect_UndoAvailable(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_RedoAvailable(QTextDocument* self, bool param1);
|
|
|
|
void QTextDocument_connect_RedoAvailable(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_UndoCommandAdded(QTextDocument* self);
|
|
|
|
void QTextDocument_connect_UndoCommandAdded(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_ModificationChanged(QTextDocument* self, bool m);
|
|
|
|
void QTextDocument_connect_ModificationChanged(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_CursorPositionChanged(QTextDocument* self, QTextCursor* cursor);
|
|
|
|
void QTextDocument_connect_CursorPositionChanged(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_BlockCountChanged(QTextDocument* self, int newBlockCount);
|
|
|
|
void QTextDocument_connect_BlockCountChanged(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_BaseUrlChanged(QTextDocument* self, QUrl* url);
|
|
|
|
void QTextDocument_connect_BaseUrlChanged(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_DocumentLayoutChanged(QTextDocument* self);
|
|
|
|
void QTextDocument_connect_DocumentLayoutChanged(QTextDocument* self, void* slot);
|
|
|
|
void QTextDocument_Undo2(QTextDocument* self);
|
|
|
|
void QTextDocument_Redo2(QTextDocument* self);
|
|
|
|
void QTextDocument_SetModified(QTextDocument* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
QTextDocument* QTextDocument_Clone1(QTextDocument* self, QObject* parent);
|
|
|
|
void QTextDocument_ToHtml1(QTextDocument* self, QByteArray* encoding, char** _out, int* _out_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_ToMarkdown1(QTextDocument* self, int features, char** _out, int* _out_Strlen);
|
|
|
|
void QTextDocument_SetMarkdown2(QTextDocument* self, const char* markdown, size_t markdown_Strlen, int features);
|
|
|
|
QTextCursor* QTextDocument_Find22(QTextDocument* self, const char* subString, size_t subString_Strlen, int from);
|
|
|
|
QTextCursor* QTextDocument_Find32(QTextDocument* self, const char* subString, size_t subString_Strlen, int from, int options);
|
|
|
|
QTextCursor* QTextDocument_Find33(QTextDocument* self, const char* subString, size_t subString_Strlen, QTextCursor* cursor, int options);
|
|
|
|
QTextCursor* QTextDocument_Find23(QTextDocument* self, QRegExp* expr, int from);
|
|
|
|
QTextCursor* QTextDocument_Find34(QTextDocument* self, QRegExp* expr, int from, int options);
|
|
|
|
QTextCursor* QTextDocument_Find35(QTextDocument* self, QRegExp* expr, QTextCursor* cursor, int options);
|
|
|
|
QTextCursor* QTextDocument_Find24(QTextDocument* self, QRegularExpression* expr, int from);
|
|
|
|
QTextCursor* QTextDocument_Find36(QTextDocument* self, QRegularExpression* expr, int from, int options);
|
|
|
|
QTextCursor* QTextDocument_Find37(QTextDocument* self, QRegularExpression* expr, QTextCursor* cursor, int options);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTextDocument_DrawContents2(QTextDocument* self, QPainter* painter, QRectF* rect);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextDocument_ClearUndoRedoStacks1(QTextDocument* self, uintptr_t historyToClear);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTextDocument_SetModified1(QTextDocument* self, bool m);
|
|
|
|
void QTextDocument_Delete(QTextDocument* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|