My Project
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
htmlhelp.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
* Documents produced by Doxygen are derivative works derived from the
14
* input used in their production; they are not affected by this license.
15
*
16
* The code is this file is largely based on a contribution from
17
* Harm van der Heijden <H.v.d.Heijden@phys.tue.nl>
18
* Please send thanks to him and bug reports to me :-)
19
*/
20
21
#ifndef HTMLHELP_H
22
#define HTMLHELP_H
23
24
#include <qstrlist.h>
25
#include <qdict.h>
26
#include "
index.h
"
27
#include "
ftextstream.h
"
28
29
class
QFile;
30
class
Definition
;
31
class
HtmlHelpIndex
;
32
38
class
HtmlHelp
:
public
IndexIntf
39
{
43
enum
ImageNumber
{
44
BOOK_CLOSED
=1,
BOOK_OPEN
,
45
BOOK_CLOSED_NEW
,
BOOK_OPEN_NEW
,
46
FOLDER_CLOSED
,
FOLDER_OPEN
,
47
FOLDER_CLOSED_NEW
,
FOLDER_OPEN_NEW
,
48
QUERY
,
QUERY_NEW
,
49
TEXT
,
TEXT_NEW
,
50
WEB_DOC
,
WEB_DOC_NEW
,
51
WEB_LINK
,
WEB_LINK_NEW
,
52
INFO
,
INFO_NEW
,
53
LINK
,
LINK_NEW
,
54
BOOKLET
,
BOOKLET_NEW
,
55
EMAIL
,
EMAIL_NEW
,
56
EMAIL2
,
EMAIL2_NEW
,
57
IMAGE
,
IMAGE_NEW
,
58
AUDIO
,
AUDIO_NEW
,
59
MUSIC
,
MUSIC_NEW
,
60
VIDEO
,
VIDEO_NEW
,
61
INDEX
,
INDEX_NEW
,
62
IDEA
,
IDEA_NEW
,
63
NOTE
,
NOTE_NEW
,
64
TOOL
,
TOOL_NEW
65
};
66
public
:
67
//static HtmlHelp *getInstance();
68
HtmlHelp
();
69
~HtmlHelp
();
70
void
initialize
();
71
void
finalize
();
72
void
incContentsDepth
();
73
void
decContentsDepth
();
74
void
addContentsItem
(
bool
isDir,
75
const
char
*name,
76
const
char
*ref,
77
const
char
*file,
78
const
char
*anchor,
79
bool
separateIndex,
80
bool
addToNavIndex,
81
Definition
*def);
82
void
addIndexItem
(
Definition
*context,
MemberDef
*md,
83
const
char
*sectionAnchor,
const
char
*title);
84
void
addIndexFile
(
const
char
*name);
85
void
addImageFile
(
const
char
*);
86
void
addStyleSheetFile
(
const
char
*) {}
87
static
QCString
getLanguageString
();
88
89
private
:
90
friend
class
HtmlHelpIndex
;
91
void
createProjectFile
();
92
93
QFile *
cf
,*
kf
;
94
FTextStream
cts
,
kts
;
95
HtmlHelpIndex
*
index
;
96
int
dc
;
97
QStrList
indexFiles
;
98
QStrList
imageFiles
;
99
QDict<void>
indexFileDict
;
100
static
HtmlHelp
*
theInstance
;
101
QCString
recode
(
const
QCString &s);
102
void
*
m_fromUtf8
;
103
};
104
105
#endif
/* HTMLHELP_H */
106