My Project
 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 {
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;
96  int dc;
97  QStrList indexFiles;
98  QStrList imageFiles;
99  QDict<void> indexFileDict;
101  QCString recode(const QCString &s);
102  void *m_fromUtf8;
103 };
104 
105 #endif /* HTMLHELP_H */
106