7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobject.h>
9#include <QtCore/qsize.h>
10#include <QtCore/qrect.h>
11#include <QtCore/qvariant.h>
12#include <QtGui/qfont.h>
13#include <QtCore/qurl.h>
14#include <QtCore/qcontainerfwd.h>
47 virtual void redo() = 0;
60 Q_PROPERTY(
bool undoRedoEnabled READ isUndoRedoEnabled WRITE setUndoRedoEnabled)
61 Q_PROPERTY(
bool modified READ isModified WRITE setModified DESIGNABLE
false)
64 Q_PROPERTY(
bool useDesignMetrics READ useDesignMetrics WRITE setUseDesignMetrics)
65 Q_PROPERTY(
bool layoutEnabled READ isLayoutEnabled WRITE setLayoutEnabled)
70#ifndef QT_NO_CSSPARSER
71 Q_PROPERTY(
QString defaultStyleSheet READ defaultStyleSheet WRITE setDefaultStyleSheet)
73 Q_PROPERTY(
int maximumBlockCount READ maximumBlockCount WRITE setMaximumBlockCount)
74 Q_PROPERTY(
qreal documentMargin READ documentMargin WRITE setDocumentMargin)
88 void setUndoRedoEnabled(
bool enable);
89 bool isUndoRedoEnabled()
const;
91 bool isUndoAvailable()
const;
92 bool isRedoAvailable()
const;
94 int availableUndoSteps()
const;
95 int availableRedoSteps()
const;
107 void setMetaInformation(MetaInformation
info,
const QString &);
108 QString metaInformation(MetaInformation
info)
const;
110#ifndef QT_NO_TEXTHTMLPARSER
112 void setHtml(
const QString &html);
115#if QT_CONFIG(textmarkdownwriter) || QT_CONFIG(textmarkdownreader)
116 enum MarkdownFeature {
117 MarkdownNoHTML = 0x0020 | 0x0040,
118 MarkdownDialectCommonMark = 0,
119 MarkdownDialectGitHub = 0x0004 | 0x0008 | 0x0400 | 0x0100 | 0x0200 | 0x0800 | 0x4000
125#if QT_CONFIG(textmarkdownwriter)
126 QString toMarkdown(MarkdownFeatures features = MarkdownDialectGitHub)
const;
129#if QT_CONFIG(textmarkdownreader)
130 void setMarkdown(
const QString &markdown, MarkdownFeatures features = MarkdownDialectGitHub);
141 FindBackward = 0x00001,
142 FindCaseSensitively = 0x00002,
143 FindWholeWords = 0x00004
147 QTextCursor find(
const QString &subString,
int from = 0, FindFlags options = FindFlags())
const;
150#if QT_CONFIG(regularexpression)
162 QTextBlock findBlockByNumber(
int blockNumber)
const;
163 QTextBlock findBlockByLineNumber(
int blockNumber)
const;
174 QFont defaultFont()
const;
176 void setSuperScriptBaseline(
qreal baseline);
177 qreal superScriptBaseline()
const;
179 void setSubScriptBaseline(
qreal baseline);
180 qreal subScriptBaseline()
const;
182 void setBaselineOffset(
qreal baseline);
183 qreal baselineOffset()
const;
185 int pageCount()
const;
187 bool isModified()
const;
197 StyleSheetResource = 3,
198 MarkdownResource = 4,
217 void markContentsDirty(
int from,
int length);
219 void setUseDesignMetrics(
bool b);
220 bool useDesignMetrics()
const;
222 void setLayoutEnabled(
bool b);
223 bool isLayoutEnabled()
const;
228 qreal textWidth()
const;
230 qreal idealWidth()
const;
232 qreal indentWidth()
const;
235 qreal documentMargin()
const;
236 void setDocumentMargin(
qreal margin);
241 int blockCount()
const;
242 int lineCount()
const;
243 int characterCount()
const;
245#ifndef QT_NO_CSSPARSER
246 void setDefaultStyleSheet(
const QString &sheet);
247 QString defaultStyleSheet()
const;
256 UndoAndRedoStacks = UndoStack | RedoStack
258 void clearUndoRedoStacks(Stacks historyToClear = UndoAndRedoStacks);
260 int maximumBlockCount()
const;
261 void setMaximumBlockCount(
int maximum);
267 void setBaseUrl(
const QUrl &
url);
288 void setModified(
bool m =
true);
virtual ~QAbstractUndoItem()=0
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
\reentrant \inmodule QtGui
\reentrant \inmodule QtGui
ResourceType
This enum describes the types of resources that can be loaded by QTextDocument's loadResource() funct...
void contentsChange(int from, int charsRemoved, int charsAdded)
This signal is emitted whenever the document's content changes; for example, when text is inserted or...
FindFlag
This enum describes the options available to QTextDocument's find function.
MetaInformation
This enum describes the different types of meta information that can be added to a document.
Stacks
\value UndoStack The undo stack.
void redoAvailable(bool)
This signal is emitted whenever redo operations become available (available is true) or unavailable (...
void modificationChanged(bool m)
This signal is emitted whenever the content of the document changes in a way that affects the modific...
void baseUrlChanged(const QUrl &url)
void undoAvailable(bool)
This signal is emitted whenever undo operations become available (available is true) or unavailable (...
void cursorPositionChanged(const QTextCursor &cursor)
This signal is emitted whenever the position of a cursor changed due to an editing operation.
void contentsChanged()
This signal is emitted whenever the document's content changes; for example, when text is inserted or...
void documentLayoutChanged()
std::function< QVariant(const QUrl &)> ResourceProvider
void blockCountChanged(int newBlockCount)
Combined button and popup list for selecting options.
Q_GUI_EXPORT QString convertFromPlainText(const QString &plain, WhiteSpaceMode mode=WhiteSpacePre)
Converts the plain text string plain to an HTML-formatted paragraph while preserving most of its look...
Q_GUI_EXPORT bool mightBeRichText(const QString &)
Returns true if the string text is likely to be rich text; otherwise returns false.
static QString toPlainText(const QString &text)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLboolean GLboolean GLboolean b
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei length
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
QFileInfo info(fileName)
[8]
QUrl url("example.com")
[constructor-url-reference]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent