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
indexserializationcontext.qdoc
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \struct IndexSerializationContext
6 \internal
7 \brief Supplies publication locations and policy to the index section serializer.
8
9 The caller owns this context for the duration of serialization. Index
10 export and WebXML supply separate contexts; the serializer does not choose
11 a generator or derive an href from an output extension. Caller-provided
12 locations may still come from a legacy generator during migration.
13*/
14
15/*!
16 \enum IndexSerializationContext::ExampleEntries
17 \internal
18
19 Controls whether example file and image entries appear inside their
20 example section.
21
22 \value Inline Write nested entries and resolve their hrefs through
23 exampleFileLocation.
24 \value Separate Omit nested entries; the caller writes them separately.
25*/
26
27/*!
28 \variable IndexSerializationContext::documentLocation
29 Returns the complete href for a document node, including its fragment.
30 The serializer writes the href without changing its path or fragment.
31 This callback must remain valid throughout serialization.
32*/
33
34/*!
35 \variable IndexSerializationContext::exampleFileLocation
36 Returns a complete href for an example file or image. Required when
37 exampleEntries is Inline and an example contains files or images.
38 This callback must remain valid throughout serialization.
39*/
40
41/*!
42 \variable IndexSerializationContext::inclusionPolicy
43 Filters serialized nodes and functions independently of the renderer.
44*/
45
46/*!
47 \variable IndexSerializationContext::project
48 The project name written to the INDEX element. WebXML sections do not
49 use this value.
50*/
51
52/*!
53 \variable IndexSerializationContext::exampleEntries
54 Selects whether example files and images are nested in the section or
55 written separately by the caller.
56*/
57
58/*!
59 \variable IndexSerializationContext::storeLocationInfo
60 Includes declaration file paths and line numbers when available.
61*/