File indexing completed on 2024-05-12 16:16:00

0001 /*
0002    SPDX-FileCopyrightText: 2022-2023 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "grammaraction.h"
0009 #include "grammarerror.h"
0010 #include "textgrammarcheck_export.h"
0011 
0012 #include <QTextFormat>
0013 namespace TextGrammarCheck
0014 {
0015 namespace GrammarResultUtil
0016 {
0017 enum TextInfo {
0018     ReplaceFormatInfo = QTextFormat::UserProperty + 1,
0019 };
0020 TEXTGRAMMARCHECK_EXPORT void applyGrammarResult(const QVector<TextGrammarCheck::GrammarError> &infos, QTextDocument *document, const QColor &negativeTextColor);
0021 TEXTGRAMMARCHECK_EXPORT void replaceWord(const TextGrammarCheck::GrammarAction &act, const QString &replacementWord, QTextDocument *document);
0022 }
0023 }