Doxygen
Loading...
Searching...
No Matches
htmlhelp.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Copyright (C) 1997-2020 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 * The code is this file is largely based on a contribution from
15 * Harm van der Heijden <H.v.d.Heijden@phys.tue.nl>
16 * Please send thanks to him and bug reports to me :-)
17 */
18
19#ifndef HTMLHELP_H
20#define HTMLHELP_H
21
22#include <memory>
23
24#include "construct.h"
25#include "dstring.h"
26#include "indexlist.h"
27
28class Definition;
29class MemberDef;
30
31/** A class that generated the HTML Help specific files.
32 *
33 * These files can be used with the Microsoft HTML Help workshop
34 * to generate compressed HTML files (.chm).
35 */
36class HtmlHelp final : public IndexIntf
37{
38 /*! used in imageNumber param of HTMLHelp::addContentsItem() function
39 to specify document icon in tree view.
40 Writes <param name="ImageNumber" value="xx"> in .HHC file. */
64 public:
65 HtmlHelp();
68
69 void initialize();
70 void finalize();
71 void incContentsDepth();
72 void decContentsDepth();
73 void addContentsItem(bool isDir,
74 const DString &name,
75 const DString &ref,
76 const DString &file,
77 const DString &anchor,
78 bool separateIndex,
79 bool addToNavIndex,
80 const Definition *def,
81 const DString &nameAsHtml);
82 void addIndexItem(const Definition *context,const MemberDef *md,
83 const DString &sectionAnchor, const DString &title);
84 void addIndexFile(const DString &name);
85 void addImageFile(const DString &);
86 void addStyleSheetFile(const DString &);
87
88 static inline const DString hhcFileName = "index.hhc";
89 static inline const DString hhkFileName = "index.hhk";
90 static inline const DString hhpFileName = "index.hhp";
91 private:
92 class Private;
93 std::unique_ptr<Private> p;
95
96};
97
98#endif /* HTMLHELP_H */
99
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 addIndexItem(const Definition *context, const MemberDef *md, const DString &sectionAnchor, const DString &title)
Definition htmlhelp.cpp:599
void addImageFile(const DString &)
Definition htmlhelp.cpp:625
static const DString hhkFileName
Definition htmlhelp.h:89
static const DString hhpFileName
Definition htmlhelp.h:90
std::unique_ptr< Private > p
Definition htmlhelp.h:93
static const DString hhcFileName
Definition htmlhelp.h:88
void finalize()
Definition htmlhelp.cpp:489
@ WEB_DOC_NEW
Definition htmlhelp.h:48
@ FOLDER_CLOSED
Definition htmlhelp.h:44
@ EMAIL_NEW
Definition htmlhelp.h:53
@ TOOL_NEW
Definition htmlhelp.h:62
@ MUSIC_NEW
Definition htmlhelp.h:57
@ NOTE_NEW
Definition htmlhelp.h:61
@ FOLDER_OPEN
Definition htmlhelp.h:44
@ IMAGE_NEW
Definition htmlhelp.h:55
@ AUDIO_NEW
Definition htmlhelp.h:56
@ WEB_LINK
Definition htmlhelp.h:49
@ QUERY_NEW
Definition htmlhelp.h:46
@ LINK_NEW
Definition htmlhelp.h:51
@ INDEX_NEW
Definition htmlhelp.h:59
@ TEXT_NEW
Definition htmlhelp.h:47
@ FOLDER_OPEN_NEW
Definition htmlhelp.h:45
@ FOLDER_CLOSED_NEW
Definition htmlhelp.h:45
@ VIDEO_NEW
Definition htmlhelp.h:58
@ BOOK_OPEN
Definition htmlhelp.h:42
@ EMAIL2_NEW
Definition htmlhelp.h:54
@ BOOKLET_NEW
Definition htmlhelp.h:52
@ BOOKLET
Definition htmlhelp.h:52
@ BOOK_OPEN_NEW
Definition htmlhelp.h:43
@ WEB_LINK_NEW
Definition htmlhelp.h:49
@ BOOK_CLOSED_NEW
Definition htmlhelp.h:43
@ IDEA_NEW
Definition htmlhelp.h:60
@ BOOK_CLOSED
Definition htmlhelp.h:42
@ WEB_DOC
Definition htmlhelp.h:48
@ INFO_NEW
Definition htmlhelp.h:50
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 htmlhelp.cpp:543
void addIndexFile(const DString &name)
Definition htmlhelp.cpp:480
void addStyleSheetFile(const DString &)
Definition htmlhelp.cpp:620
void incContentsDepth()
Definition htmlhelp.cpp:514
void initialize()
Definition htmlhelp.cpp:364
DString recode(const DString &s)
void decContentsDepth()
Definition htmlhelp.cpp:525
Abstract interface for index generators.
Definition indexlist.h:34
A model of a class/file/namespace member symbol.
Definition memberdef.h:45
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37