2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2018-02-09 14:02:11 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "completionassistprovider.h"
|
|
|
|
|
|
|
|
|
|
#include "texteditor/texteditorconstants.h"
|
|
|
|
|
|
|
|
|
|
namespace TextEditor {
|
|
|
|
|
|
|
|
|
|
class TEXTEDITOR_EXPORT DocumentContentCompletionProvider : public CompletionAssistProvider
|
|
|
|
|
{
|
2019-05-16 11:09:55 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
2018-02-09 14:02:11 +01:00
|
|
|
public:
|
|
|
|
|
DocumentContentCompletionProvider(
|
|
|
|
|
const QString &snippetGroup = QString(Constants::TEXT_SNIPPET_GROUP_ID));
|
|
|
|
|
|
2021-09-15 07:04:12 +02:00
|
|
|
IAssistProcessor *createProcessor(const AssistInterface *) const override;
|
2018-02-09 14:02:11 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString m_snippetGroup;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // TextEditor
|