Doxygen
Loading...
Searching...
No Matches
ftvhelp.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 1997-2026 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/******************************************************************************
17 * ftvhelp.h,v 1.0 2000/09/06 16:09:00
18 *
19 * Kenney Wong <kwong@ea.com>
20 *
21 * Folder Tree View for offline help on browsers that do not support HTML Help.
22 */
23
24#ifndef FTVHELP_H
25#define FTVHELP_H
26
27#include <memory>
28#include <vector>
29
30#include "construct.h"
31#include "indexlist.h"
32
33class Definition;
34class DString;
35class MemberDef;
36class TextStream;
37
38/** A class that generates a dynamic tree view side panel.
39 */
40class FTVHelp final : public IndexIntf
41{
42 public:
43 FTVHelp(bool LTI);
46
47 void initialize();
48 void finalize();
49 void incContentsDepth();
50 void decContentsDepth();
51 void addContentsItem(bool isDir,
52 const DString &name,
53 const DString &ref,
54 const DString &file,
55 const DString &anchor,
56 bool separateIndex,
57 bool addToNavIndex,
58 const Definition *def,
59 const DString &nameAsHtml=DString());
60 void addIndexItem(const Definition *,const MemberDef *,const DString &,const DString &) {}
61 void addIndexFile(const DString &) {}
62 void addImageFile(const DString &) {}
63 void addStyleSheetFile(const DString &) {}
64 void generateTreeView();
67 private:
68 struct Private;
69 std::unique_ptr<Private> p;
70};
71
72constexpr auto JAVASCRIPT_LICENSE_TEXT = R"LIC(/*
73 @licstart The following is the entire license notice for the JavaScript code in this file.
74
75 The MIT License (MIT)
76
77 Copyright (C) 1997-2026 by Dimitri van Heesch
78
79 Permission is hereby granted, free of charge, to any person obtaining a copy of this software
80 and associated documentation files (the "Software"), to deal in the Software without restriction,
81 including without limitation the rights to use, copy, modify, merge, publish, distribute,
82 sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
83 furnished to do so, subject to the following conditions:
84
85 The above copyright notice and this permission notice shall be included in all copies or
86 substantial portions of the Software.
87
88 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
89 BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
90 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
91 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
93
94 @licend The above is the entire license notice for the JavaScript code in this file
95*/
96)LIC";
97
98#endif /* FTVHELP_H */
99
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:88
DString()=default
The common base class of all entity definitions found in the sources.
Definition definition.h:77
std::unique_ptr< Private > p
Definition ftvhelp.h:69
void generateTreeView()
Definition ftvhelp.cpp:946
void addIndexFile(const DString &)
Definition ftvhelp.h:61
void decContentsDepth()
Definition ftvhelp.cpp:154
void finalize()
Definition ftvhelp.cpp:134
void initialize()
Definition ftvhelp.cpp:126
void addIndexItem(const Definition *, const MemberDef *, const DString &, const DString &)
Definition ftvhelp.h:60
FTVHelp(bool LTI)
Definition ftvhelp.cpp:120
void incContentsDepth()
Definition ftvhelp.cpp:143
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=DString())
Definition ftvhelp.cpp:186
void generateTreeViewScripts()
Definition ftvhelp.cpp:872
void addStyleSheetFile(const DString &)
Definition ftvhelp.h:63
void addImageFile(const DString &)
Definition ftvhelp.h:62
void generateTreeViewInline(TextStream &t)
Definition ftvhelp.cpp:881
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
constexpr auto JAVASCRIPT_LICENSE_TEXT
Definition ftvhelp.h:72