Doxygen
Toggle main menu visibility
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
28
class
Definition
;
29
class
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
*/
36
class
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. */
41
enum
ImageNumber
{
42
BOOK_CLOSED
=1,
BOOK_OPEN
,
43
BOOK_CLOSED_NEW
,
BOOK_OPEN_NEW
,
44
FOLDER_CLOSED
,
FOLDER_OPEN
,
45
FOLDER_CLOSED_NEW
,
FOLDER_OPEN_NEW
,
46
QUERY
,
QUERY_NEW
,
47
TEXT
,
TEXT_NEW
,
48
WEB_DOC
,
WEB_DOC_NEW
,
49
WEB_LINK
,
WEB_LINK_NEW
,
50
INFO
,
INFO_NEW
,
51
LINK
,
LINK_NEW
,
52
BOOKLET
,
BOOKLET_NEW
,
53
EMAIL
,
EMAIL_NEW
,
54
EMAIL2
,
EMAIL2_NEW
,
55
IMAGE
,
IMAGE_NEW
,
56
AUDIO
,
AUDIO_NEW
,
57
MUSIC
,
MUSIC_NEW
,
58
VIDEO
,
VIDEO_NEW
,
59
INDEX
,
INDEX_NEW
,
60
IDEA
,
IDEA_NEW
,
61
NOTE
,
NOTE_NEW
,
62
TOOL
,
TOOL_NEW
63
};
64
public
:
65
HtmlHelp
();
66
~HtmlHelp
();
67
NON_COPYABLE
(
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
§ionAnchor,
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
;
94
DString
recode
(
const
DString
&s);
95
96
};
97
98
#endif
/* HTMLHELP_H */
99
DString
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition
dstring.h:88
Definition
The common base class of all entity definitions found in the sources.
Definition
definition.h:77
HtmlHelp::Private
Definition
htmlhelp.cpp:335
HtmlHelp::addIndexItem
void addIndexItem(const Definition *context, const MemberDef *md, const DString §ionAnchor, const DString &title)
Definition
htmlhelp.cpp:599
HtmlHelp::addImageFile
void addImageFile(const DString &)
Definition
htmlhelp.cpp:625
HtmlHelp::HtmlHelp
HtmlHelp()
Definition
htmlhelp.cpp:356
HtmlHelp::hhkFileName
static const DString hhkFileName
Definition
htmlhelp.h:89
HtmlHelp::hhpFileName
static const DString hhpFileName
Definition
htmlhelp.h:90
HtmlHelp::~HtmlHelp
~HtmlHelp()
HtmlHelp::p
std::unique_ptr< Private > p
Definition
htmlhelp.h:93
HtmlHelp::hhcFileName
static const DString hhcFileName
Definition
htmlhelp.h:88
HtmlHelp::finalize
void finalize()
Definition
htmlhelp.cpp:489
HtmlHelp::ImageNumber
ImageNumber
Definition
htmlhelp.h:41
HtmlHelp::WEB_DOC_NEW
@ WEB_DOC_NEW
Definition
htmlhelp.h:48
HtmlHelp::FOLDER_CLOSED
@ FOLDER_CLOSED
Definition
htmlhelp.h:44
HtmlHelp::EMAIL_NEW
@ EMAIL_NEW
Definition
htmlhelp.h:53
HtmlHelp::VIDEO
@ VIDEO
Definition
htmlhelp.h:58
HtmlHelp::TOOL_NEW
@ TOOL_NEW
Definition
htmlhelp.h:62
HtmlHelp::MUSIC_NEW
@ MUSIC_NEW
Definition
htmlhelp.h:57
HtmlHelp::NOTE_NEW
@ NOTE_NEW
Definition
htmlhelp.h:61
HtmlHelp::FOLDER_OPEN
@ FOLDER_OPEN
Definition
htmlhelp.h:44
HtmlHelp::IMAGE_NEW
@ IMAGE_NEW
Definition
htmlhelp.h:55
HtmlHelp::TEXT
@ TEXT
Definition
htmlhelp.h:47
HtmlHelp::AUDIO
@ AUDIO
Definition
htmlhelp.h:56
HtmlHelp::AUDIO_NEW
@ AUDIO_NEW
Definition
htmlhelp.h:56
HtmlHelp::WEB_LINK
@ WEB_LINK
Definition
htmlhelp.h:49
HtmlHelp::QUERY_NEW
@ QUERY_NEW
Definition
htmlhelp.h:46
HtmlHelp::LINK_NEW
@ LINK_NEW
Definition
htmlhelp.h:51
HtmlHelp::INDEX_NEW
@ INDEX_NEW
Definition
htmlhelp.h:59
HtmlHelp::TEXT_NEW
@ TEXT_NEW
Definition
htmlhelp.h:47
HtmlHelp::FOLDER_OPEN_NEW
@ FOLDER_OPEN_NEW
Definition
htmlhelp.h:45
HtmlHelp::EMAIL
@ EMAIL
Definition
htmlhelp.h:53
HtmlHelp::IMAGE
@ IMAGE
Definition
htmlhelp.h:55
HtmlHelp::FOLDER_CLOSED_NEW
@ FOLDER_CLOSED_NEW
Definition
htmlhelp.h:45
HtmlHelp::VIDEO_NEW
@ VIDEO_NEW
Definition
htmlhelp.h:58
HtmlHelp::MUSIC
@ MUSIC
Definition
htmlhelp.h:57
HtmlHelp::INDEX
@ INDEX
Definition
htmlhelp.h:59
HtmlHelp::BOOK_OPEN
@ BOOK_OPEN
Definition
htmlhelp.h:42
HtmlHelp::LINK
@ LINK
Definition
htmlhelp.h:51
HtmlHelp::QUERY
@ QUERY
Definition
htmlhelp.h:46
HtmlHelp::NOTE
@ NOTE
Definition
htmlhelp.h:61
HtmlHelp::EMAIL2_NEW
@ EMAIL2_NEW
Definition
htmlhelp.h:54
HtmlHelp::TOOL
@ TOOL
Definition
htmlhelp.h:62
HtmlHelp::BOOKLET_NEW
@ BOOKLET_NEW
Definition
htmlhelp.h:52
HtmlHelp::BOOKLET
@ BOOKLET
Definition
htmlhelp.h:52
HtmlHelp::BOOK_OPEN_NEW
@ BOOK_OPEN_NEW
Definition
htmlhelp.h:43
HtmlHelp::WEB_LINK_NEW
@ WEB_LINK_NEW
Definition
htmlhelp.h:49
HtmlHelp::BOOK_CLOSED_NEW
@ BOOK_CLOSED_NEW
Definition
htmlhelp.h:43
HtmlHelp::IDEA
@ IDEA
Definition
htmlhelp.h:60
HtmlHelp::IDEA_NEW
@ IDEA_NEW
Definition
htmlhelp.h:60
HtmlHelp::INFO
@ INFO
Definition
htmlhelp.h:50
HtmlHelp::BOOK_CLOSED
@ BOOK_CLOSED
Definition
htmlhelp.h:42
HtmlHelp::EMAIL2
@ EMAIL2
Definition
htmlhelp.h:54
HtmlHelp::WEB_DOC
@ WEB_DOC
Definition
htmlhelp.h:48
HtmlHelp::INFO_NEW
@ INFO_NEW
Definition
htmlhelp.h:50
HtmlHelp::addContentsItem
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
HtmlHelp::addIndexFile
void addIndexFile(const DString &name)
Definition
htmlhelp.cpp:480
HtmlHelp::addStyleSheetFile
void addStyleSheetFile(const DString &)
Definition
htmlhelp.cpp:620
HtmlHelp::incContentsDepth
void incContentsDepth()
Definition
htmlhelp.cpp:514
HtmlHelp::initialize
void initialize()
Definition
htmlhelp.cpp:364
HtmlHelp::recode
DString recode(const DString &s)
HtmlHelp::decContentsDepth
void decContentsDepth()
Definition
htmlhelp.cpp:525
IndexIntf
Abstract interface for index generators.
Definition
indexlist.h:34
MemberDef
A model of a class/file/namespace member symbol.
Definition
memberdef.h:45
construct.h
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
dstring.h
indexlist.h
src
htmlhelp.h
Generated by
1.19.0