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#include "qcstring.h"
24#include "construct.h"
25#include "indexlist.h"
26
27class Definition;
28class MemberDef;
29
30/** A class that generated the HTML Help specific files.
31 *
32 * These files can be used with the Microsoft HTML Help workshop
33 * to generate compressed HTML files (.chm).
34 */
35class HtmlHelp : public IndexIntf
36{
37 /*! used in imageNumber param of HTMLHelp::addContentsItem() function
38 to specify document icon in tree view.
39 Writes <param name="ImageNumber" value="xx"> in .HHC file. */
63 public:
64 HtmlHelp();
67
68 void initialize();
69 void finalize();
70 void incContentsDepth();
71 void decContentsDepth();
72 void addContentsItem(bool isDir,
73 const QCString &name,
74 const QCString &ref,
75 const QCString &file,
76 const QCString &anchor,
77 bool separateIndex,
78 bool addToNavIndex,
79 const Definition *def);
80 void addIndexItem(const Definition *context,const MemberDef *md,
81 const QCString &sectionAnchor, const QCString &title);
82 void addIndexFile(const QCString &name);
83 void addImageFile(const QCString &);
84 void addStyleSheetFile(const QCString &);
85
86 static inline const QCString hhcFileName = "index.hhc";
87 static inline const QCString hhkFileName = "index.hhk";
88 static inline const QCString hhpFileName = "index.hhp";
89 private:
90 class Private;
91 std::unique_ptr<Private> p;
92 QCString recode(const QCString &s);
93
94};
95
96#endif /* HTMLHELP_H */
97
The common base class of all entity definitions found in the sources.
Definition definition.h:76
void addImageFile(const QCString &)
Definition htmlhelp.cpp:627
void addIndexFile(const QCString &name)
Definition htmlhelp.cpp:485
static const QCString hhkFileName
Definition htmlhelp.h:87
void addIndexItem(const Definition *context, const MemberDef *md, const QCString &sectionAnchor, const QCString &title)
Definition htmlhelp.cpp:602
static const QCString hhpFileName
Definition htmlhelp.h:88
std::unique_ptr< Private > p
Definition htmlhelp.h:91
void finalize()
Definition htmlhelp.cpp:494
void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def)
Definition htmlhelp.cpp:547
QCString recode(const QCString &s)
@ WEB_DOC_NEW
Definition htmlhelp.h:47
@ FOLDER_CLOSED
Definition htmlhelp.h:43
@ EMAIL_NEW
Definition htmlhelp.h:52
@ TOOL_NEW
Definition htmlhelp.h:61
@ MUSIC_NEW
Definition htmlhelp.h:56
@ NOTE_NEW
Definition htmlhelp.h:60
@ FOLDER_OPEN
Definition htmlhelp.h:43
@ IMAGE_NEW
Definition htmlhelp.h:54
@ AUDIO_NEW
Definition htmlhelp.h:55
@ WEB_LINK
Definition htmlhelp.h:48
@ QUERY_NEW
Definition htmlhelp.h:45
@ LINK_NEW
Definition htmlhelp.h:50
@ INDEX_NEW
Definition htmlhelp.h:58
@ TEXT_NEW
Definition htmlhelp.h:46
@ FOLDER_OPEN_NEW
Definition htmlhelp.h:44
@ FOLDER_CLOSED_NEW
Definition htmlhelp.h:44
@ VIDEO_NEW
Definition htmlhelp.h:57
@ BOOK_OPEN
Definition htmlhelp.h:41
@ EMAIL2_NEW
Definition htmlhelp.h:53
@ BOOKLET_NEW
Definition htmlhelp.h:51
@ BOOKLET
Definition htmlhelp.h:51
@ BOOK_OPEN_NEW
Definition htmlhelp.h:42
@ WEB_LINK_NEW
Definition htmlhelp.h:48
@ BOOK_CLOSED_NEW
Definition htmlhelp.h:42
@ IDEA_NEW
Definition htmlhelp.h:59
@ BOOK_CLOSED
Definition htmlhelp.h:41
@ WEB_DOC
Definition htmlhelp.h:47
@ INFO_NEW
Definition htmlhelp.h:49
void addStyleSheetFile(const QCString &)
Definition htmlhelp.cpp:622
void incContentsDepth()
Definition htmlhelp.cpp:519
void initialize()
Definition htmlhelp.cpp:369
void decContentsDepth()
Definition htmlhelp.cpp:530
static const QCString hhcFileName
Definition htmlhelp.h:86
Abstract interface for index generators.
Definition indexlist.h:33
A model of a class/file/namespace member symbol.
Definition memberdef.h:48
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37