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 
34 /** Generator for Eclipse help files.
35  *
36  * This class generates the Eclipse specific help files.
37  * These files can be used to generate a help plugin readable
38  * by the Eclipse IDE.
39  */
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 
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 */
static QCString name
Definition: declinfo.cpp:673
void openedTag()
Definition: eclipsehelp.cpp:48
virtual void addIndexFile(const char *name)
virtual void addImageFile(const char *name)
QCString m_pathprefix
Definition: eclipsehelp.h:67
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
virtual void finalize()
Finish generation of the Eclipse specific help files.
void indent()
Definition: eclipsehelp.cpp:30
FTextStream m_tocstream
Definition: eclipsehelp.h:66
virtual void addStyleSheetFile(const char *name)
virtual ~EclipseHelp()
Definition: eclipsehelp.cpp:26
QFile * m_tocfile
Definition: eclipsehelp.h:65
EclipseHelp & operator=(const EclipseHelp &)
int m_openTags
Definition: eclipsehelp.h:63
bool m_endtag
Definition: eclipsehelp.h:62
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
Abstract interface for index generators.
Definition: index.h:30
void closedTag()
Definition: eclipsehelp.cpp:39
virtual void initialize()
Initialize the Eclipse generator.
Definition: eclipsehelp.cpp:64
virtual void addContentsItem(bool isDir, const char *name, const char *ref, const char *file, const char *anchor, bool separateIndex, bool addToNavIndex, Definition *def)
Add an item to the content.
virtual void incContentsDepth()
Increase the level of content hierarchy.
virtual void addIndexItem(Definition *context, MemberDef *md, const char *sectionAnchor, const char *title)
virtual void decContentsDepth()
Decrease the level of content hierarchy.