Doxygen
Loading...
Searching...
No Matches
docsets.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 1997-2021 by Dimitri van Heesch.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation under the terms of the GNU General Public License is hereby
7 * granted. No representations are made about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied warranty.
9 * See the GNU General Public License for more details.
10 *
11 * Documents produced by Doxygen are derivative works derived from the
12 * input used in their production; they are not affected by this license.
13 *
14 */
15
16#ifndef DOCSETS_H
17#define DOCSETS_H
18
19#include <memory>
20
21#include "construct.h"
22#include "indexlist.h"
23
24class DString;
25class Definition;
26class MemberDef;
27class TextStream;
28
29/** A class that generates docset files.
30 *
31 * These files can be used to create context help
32 * for use within Apple's Xcode 3.0 development environment
33 */
34class DocSets final : public IndexIntf
35{
36 public:
37 DocSets();
40
41 void initialize();
42 void finalize();
43 void incContentsDepth();
44 void decContentsDepth();
45 void addContentsItem(bool isDir,
46 const DString &name,
47 const DString &ref,
48 const DString &file,
49 const DString &anchor,
50 bool separateIndex,
51 bool addToNavIndex,
52 const Definition *def,
53 const DString &nameAsHtml
54 );
55 void addIndexItem(const Definition *context,const MemberDef *md,
56 const DString &sectionAnchor,const DString &title);
57 void addIndexFile(const DString &name);
58 void addImageFile(const DString &) {}
59 void addStyleSheetFile(const DString &) {}
60
61 private:
62 void writeToken(TextStream &t, const Definition *d,
63 const DString &type, const DString &lang,
64 const DString &scope=DString(), const DString &anchor=DString(),
65 const DString &decl=DString());
66 struct Private;
67 std::unique_ptr<Private> p;
68
69};
70
71#endif /* DOCSETS_H */
72
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:88
The common base class of all entity definitions found in the sources.
Definition definition.h:77
void addStyleSheetFile(const DString &)
Definition docsets.h:59
void decContentsDepth()
Definition docsets.cpp:214
void addContentsItem(bool isDir, const DString &name, const DString &ref, const DString &file, const DString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def, const DString &nameAsHtml)
Definition docsets.cpp:225
void incContentsDepth()
Definition docsets.cpp:207
void addIndexFile(const DString &name)
Definition docsets.cpp:510
std::unique_ptr< Private > p
Definition docsets.h:67
void addIndexItem(const Definition *context, const MemberDef *md, const DString &sectionAnchor, const DString &title)
Definition docsets.cpp:272
void writeToken(TextStream &t, const Definition *d, const DString &type, const DString &lang, const DString &scope=DString(), const DString &anchor=DString(), const DString &decl=DString())
Definition docsets.cpp:465
void initialize()
Definition docsets.cpp:47
void finalize()
Definition docsets.cpp:181
DocSets()
Definition docsets.cpp:44
void addImageFile(const DString &)
Definition docsets.h:58
Abstract interface for index generators.
Definition indexlist.h:34
A model of a class/file/namespace member symbol.
Definition memberdef.h:45
Text streaming class that buffers data.
Definition textstream.h:36
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37