My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eclipsehelp.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  */
17 /*
18  * eclipsehelp.h
19  *
20  * Created on: 7.11.2009
21  * Author: ondrej
22  */
23 
24 #ifndef ECLIPSEHELP_H
25 #define ECLIPSEHELP_H
26 
27 #include "index.h"
28 #include "ftextstream.h"
29 
30 /* -- forward declarations */
31 class QFile;
32 class Definition;
33 
40 class EclipseHelp : public IndexIntf
41 {
42  public:
43  EclipseHelp();
44  virtual ~EclipseHelp();
45 
46  /* -- index interface */
47  virtual void initialize();
48  virtual void finalize();
49  virtual void incContentsDepth();
50  virtual void decContentsDepth();
51  virtual void addContentsItem(bool isDir, const char *name, const char *ref,
52  const char *file, const char *anchor,bool separateIndex,bool addToNavIndex,
53  Definition *def);
54  virtual void addIndexItem(Definition *context,MemberDef *md,
55  const char *sectionAnchor,const char *title);
56  virtual void addIndexFile(const char *name);
57  virtual void addImageFile(const char *name);
58  virtual void addStyleSheetFile(const char *name);
59 
60  private:
61  int m_depth;
62  bool m_endtag;
64 
65  QFile * m_tocfile;
67  QCString m_pathprefix;
68 
69  /* -- avoid copying */
70  EclipseHelp(const EclipseHelp &);
72 
73  /* -- formatting helpers */
74  void indent();
75  void closedTag();
76  void openedTag();
77 };
78 
79 #endif /* ECLIPSEHELP_H */