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
#include "
qcstring.h
"
24
#include "
construct.h
"
25
#include "
indexlist.h
"
26
27
class
Definition
;
28
class
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
*/
35
class
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. */
40
enum
ImageNumber
{
41
BOOK_CLOSED
=1,
BOOK_OPEN
,
42
BOOK_CLOSED_NEW
,
BOOK_OPEN_NEW
,
43
FOLDER_CLOSED
,
FOLDER_OPEN
,
44
FOLDER_CLOSED_NEW
,
FOLDER_OPEN_NEW
,
45
QUERY
,
QUERY_NEW
,
46
TEXT
,
TEXT_NEW
,
47
WEB_DOC
,
WEB_DOC_NEW
,
48
WEB_LINK
,
WEB_LINK_NEW
,
49
INFO
,
INFO_NEW
,
50
LINK
,
LINK_NEW
,
51
BOOKLET
,
BOOKLET_NEW
,
52
EMAIL
,
EMAIL_NEW
,
53
EMAIL2
,
EMAIL2_NEW
,
54
IMAGE
,
IMAGE_NEW
,
55
AUDIO
,
AUDIO_NEW
,
56
MUSIC
,
MUSIC_NEW
,
57
VIDEO
,
VIDEO_NEW
,
58
INDEX
,
INDEX_NEW
,
59
IDEA
,
IDEA_NEW
,
60
NOTE
,
NOTE_NEW
,
61
TOOL
,
TOOL_NEW
62
};
63
public
:
64
HtmlHelp
();
65
~HtmlHelp
();
66
NON_COPYABLE
(
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
const
QCString
&nameAsHtml);
81
void
addIndexItem
(
const
Definition
*context,
const
MemberDef
*md,
82
const
QCString
§ionAnchor,
const
QCString
&title);
83
void
addIndexFile
(
const
QCString
&name);
84
void
addImageFile
(
const
QCString
&);
85
void
addStyleSheetFile
(
const
QCString
&);
86
87
static
inline
const
QCString
hhcFileName
=
"index.hhc"
;
88
static
inline
const
QCString
hhkFileName
=
"index.hhk"
;
89
static
inline
const
QCString
hhpFileName
=
"index.hhp"
;
90
private
:
91
class
Private
;
92
std::unique_ptr<Private>
p
;
93
QCString
recode
(
const
QCString
&s);
94
95
};
96
97
#endif
/* HTMLHELP_H */
98
Definition
The common base class of all entity definitions found in the sources.
Definition
definition.h:77
HtmlHelp::Private
Definition
htmlhelp.cpp:336
HtmlHelp::addImageFile
void addImageFile(const QCString &)
Definition
htmlhelp.cpp:625
HtmlHelp::addIndexFile
void addIndexFile(const QCString &name)
Definition
htmlhelp.cpp:481
HtmlHelp::HtmlHelp
HtmlHelp()
Definition
htmlhelp.cpp:357
HtmlHelp::hhkFileName
static const QCString hhkFileName
Definition
htmlhelp.h:88
HtmlHelp::addContentsItem
void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def, const QCString &nameAsHtml)
Definition
htmlhelp.cpp:544
HtmlHelp::addIndexItem
void addIndexItem(const Definition *context, const MemberDef *md, const QCString §ionAnchor, const QCString &title)
Definition
htmlhelp.cpp:600
HtmlHelp::hhpFileName
static const QCString hhpFileName
Definition
htmlhelp.h:89
HtmlHelp::~HtmlHelp
~HtmlHelp()
HtmlHelp::p
std::unique_ptr< Private > p
Definition
htmlhelp.h:92
HtmlHelp::finalize
void finalize()
Definition
htmlhelp.cpp:490
HtmlHelp::recode
QCString recode(const QCString &s)
HtmlHelp::ImageNumber
ImageNumber
Definition
htmlhelp.h:40
HtmlHelp::WEB_DOC_NEW
@ WEB_DOC_NEW
Definition
htmlhelp.h:47
HtmlHelp::FOLDER_CLOSED
@ FOLDER_CLOSED
Definition
htmlhelp.h:43
HtmlHelp::EMAIL_NEW
@ EMAIL_NEW
Definition
htmlhelp.h:52
HtmlHelp::VIDEO
@ VIDEO
Definition
htmlhelp.h:57
HtmlHelp::TOOL_NEW
@ TOOL_NEW
Definition
htmlhelp.h:61
HtmlHelp::MUSIC_NEW
@ MUSIC_NEW
Definition
htmlhelp.h:56
HtmlHelp::NOTE_NEW
@ NOTE_NEW
Definition
htmlhelp.h:60
HtmlHelp::FOLDER_OPEN
@ FOLDER_OPEN
Definition
htmlhelp.h:43
HtmlHelp::IMAGE_NEW
@ IMAGE_NEW
Definition
htmlhelp.h:54
HtmlHelp::TEXT
@ TEXT
Definition
htmlhelp.h:46
HtmlHelp::AUDIO
@ AUDIO
Definition
htmlhelp.h:55
HtmlHelp::AUDIO_NEW
@ AUDIO_NEW
Definition
htmlhelp.h:55
HtmlHelp::WEB_LINK
@ WEB_LINK
Definition
htmlhelp.h:48
HtmlHelp::QUERY_NEW
@ QUERY_NEW
Definition
htmlhelp.h:45
HtmlHelp::LINK_NEW
@ LINK_NEW
Definition
htmlhelp.h:50
HtmlHelp::INDEX_NEW
@ INDEX_NEW
Definition
htmlhelp.h:58
HtmlHelp::TEXT_NEW
@ TEXT_NEW
Definition
htmlhelp.h:46
HtmlHelp::FOLDER_OPEN_NEW
@ FOLDER_OPEN_NEW
Definition
htmlhelp.h:44
HtmlHelp::EMAIL
@ EMAIL
Definition
htmlhelp.h:52
HtmlHelp::IMAGE
@ IMAGE
Definition
htmlhelp.h:54
HtmlHelp::FOLDER_CLOSED_NEW
@ FOLDER_CLOSED_NEW
Definition
htmlhelp.h:44
HtmlHelp::VIDEO_NEW
@ VIDEO_NEW
Definition
htmlhelp.h:57
HtmlHelp::MUSIC
@ MUSIC
Definition
htmlhelp.h:56
HtmlHelp::INDEX
@ INDEX
Definition
htmlhelp.h:58
HtmlHelp::BOOK_OPEN
@ BOOK_OPEN
Definition
htmlhelp.h:41
HtmlHelp::LINK
@ LINK
Definition
htmlhelp.h:50
HtmlHelp::QUERY
@ QUERY
Definition
htmlhelp.h:45
HtmlHelp::NOTE
@ NOTE
Definition
htmlhelp.h:60
HtmlHelp::EMAIL2_NEW
@ EMAIL2_NEW
Definition
htmlhelp.h:53
HtmlHelp::TOOL
@ TOOL
Definition
htmlhelp.h:61
HtmlHelp::BOOKLET_NEW
@ BOOKLET_NEW
Definition
htmlhelp.h:51
HtmlHelp::BOOKLET
@ BOOKLET
Definition
htmlhelp.h:51
HtmlHelp::BOOK_OPEN_NEW
@ BOOK_OPEN_NEW
Definition
htmlhelp.h:42
HtmlHelp::WEB_LINK_NEW
@ WEB_LINK_NEW
Definition
htmlhelp.h:48
HtmlHelp::BOOK_CLOSED_NEW
@ BOOK_CLOSED_NEW
Definition
htmlhelp.h:42
HtmlHelp::IDEA
@ IDEA
Definition
htmlhelp.h:59
HtmlHelp::IDEA_NEW
@ IDEA_NEW
Definition
htmlhelp.h:59
HtmlHelp::INFO
@ INFO
Definition
htmlhelp.h:49
HtmlHelp::BOOK_CLOSED
@ BOOK_CLOSED
Definition
htmlhelp.h:41
HtmlHelp::EMAIL2
@ EMAIL2
Definition
htmlhelp.h:53
HtmlHelp::WEB_DOC
@ WEB_DOC
Definition
htmlhelp.h:47
HtmlHelp::INFO_NEW
@ INFO_NEW
Definition
htmlhelp.h:49
HtmlHelp::addStyleSheetFile
void addStyleSheetFile(const QCString &)
Definition
htmlhelp.cpp:620
HtmlHelp::incContentsDepth
void incContentsDepth()
Definition
htmlhelp.cpp:515
HtmlHelp::initialize
void initialize()
Definition
htmlhelp.cpp:365
HtmlHelp::decContentsDepth
void decContentsDepth()
Definition
htmlhelp.cpp:526
HtmlHelp::hhcFileName
static const QCString hhcFileName
Definition
htmlhelp.h:87
IndexIntf
Abstract interface for index generators.
Definition
indexlist.h:33
MemberDef
A model of a class/file/namespace member symbol.
Definition
memberdef.h:48
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
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
indexlist.h
qcstring.h
src
htmlhelp.h
Generated by
1.17.0