KTextAddons

grammarresultutil.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "grammaraction.h"
9#include "grammarerror.h"
10#include "textgrammarcheck_export.h"
11
12#include <QTextFormat>
13namespace TextGrammarCheck
14{
15namespace GrammarResultUtil
16{
17enum TextInfo {
18 ReplaceFormatInfo = QTextFormat::UserProperty + 1,
19};
20TEXTGRAMMARCHECK_EXPORT void applyGrammarResult(const QVector<TextGrammarCheck::GrammarError> &infos, QTextDocument *document, const QColor &negativeTextColor);
21TEXTGRAMMARCHECK_EXPORT void replaceWord(const TextGrammarCheck::GrammarAction &act, const QString &replacementWord, QTextDocument *document);
22}
23}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.