Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlformatting_p.h
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQMLFORMATTING_P_H
6
#
define
QQMLFORMATTING_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
private
/
qlanguageserver_p
.
h
>
20
#
include
<
private
/
qqmlbasemodule_p
.
h
>
21
22
#
include
<
QtQmlFormat
/
private
/
qqmlformatoptions_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
Q_DECLARE_LOGGING_CATEGORY
(
formatLog
)
27
28
struct
DocumentFormattingRequest
29
:
public
BaseRequest
<
QLspSpecification
::
DocumentFormattingParams
,
30
QLspSpecification
::
Responses
::
DocumentFormattingResponseType
>
31
{
32
};
33
34
class
QQmlDocumentFormatting
:
public
QQmlBaseModule
<
DocumentFormattingRequest
>
35
{
36
Q_OBJECT
37
public
:
38
QQmlDocumentFormatting
(
QmlLsp
::
QQmlCodeModelManager
*
codeModel
);
39
void
registerHandlers
(QLanguageServer *server, QLanguageServerProtocol *protocol)
override
;
40
void
setupCapabilities
(QLspSpecification::ServerCapabilities &caps)
override
;
41
void
process
(RequestPointerArgument req)
override
;
42
43
private
:
44
QQmlFormatOptions m_formatOptions;
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QQMLFORMATTING_P_H
QQmlDocumentFormatting
Definition
qqmlformatting_p.h:35
QQmlDocumentFormatting::process
void process(RequestPointerArgument req) override
Definition
qqmlformatting.cpp:34
QQmlDocumentFormatting::setupCapabilities
void setupCapabilities(QLspSpecification::ServerCapabilities &caps) override
Definition
qqmlformatting.cpp:28
QQmlDocumentFormatting::registerHandlers
void registerHandlers(QLanguageServer *server, QLanguageServerProtocol *protocol) override
Definition
qqmlformatting.cpp:23
QmlLsp::OpenDocument
Definition
qqmlcodemodel_p.h:65
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QmlLsp
Definition
qmllsmain.cpp:50
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
DocumentFormattingRequest
Definition
qqmlformatting_p.h:31
qtdeclarative
src
qmlls
qqmlformatting_p.h
Generated on
for Qt by
1.16.1