Doxygen
eclipsehelp.h
浏览该文件的文档.
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 <fstream>
28 
29 #include "index.h"
30 
31 /* -- forward declarations */
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 QCString &name, const QCString &ref,
52  const QCString &file, const QCString &anchor,bool separateIndex,bool addToNavIndex,
53  const Definition *def);
54  virtual void addIndexItem(const Definition *context,const MemberDef *md,
55  const QCString &sectionAnchor,const QCString &title);
56  virtual void addIndexFile(const QCString &name);
57  virtual void addImageFile(const QCString &name);
58  virtual void addStyleSheetFile(const QCString &name);
59 
60  private:
61  int m_depth;
62  bool m_endtag;
64 
65  std::ofstream m_tocstream;
67 
68  /* -- avoid copying */
69  EclipseHelp(const EclipseHelp &);
71 
72  /* -- formatting helpers */
73  void indent();
74  void closedTag();
75  void openedTag();
76 };
77 
78 #endif /* ECLIPSEHELP_H */
EclipseHelp::m_pathprefix
QCString m_pathprefix
Definition: eclipsehelp.h:66
EclipseHelp::addStyleSheetFile
virtual void addStyleSheetFile(const QCString &name)
Definition: eclipsehelp.cpp:225
Definition
The common base class of all entity definitions found in the sources.
Definition: definition.h:76
EclipseHelp::indent
void indent()
Definition: eclipsehelp.cpp:29
index.h
EclipseHelp::finalize
virtual void finalize()
Finish generation of the Eclipse specific help files
Definition: eclipsehelp.cpp:95
EclipseHelp::addImageFile
virtual void addImageFile(const QCString &name)
Definition: eclipsehelp.cpp:221
EclipseHelp::incContentsDepth
virtual void incContentsDepth()
Increase the level of content hierarchy
Definition: eclipsehelp.cpp:123
MemberDef
A model of a class/file/namespace member symbol.
Definition: memberdef.h:45
EclipseHelp::openedTag
void openedTag()
Definition: eclipsehelp.cpp:47
EclipseHelp::initialize
virtual void initialize()
Initialize the Eclipse generator
Definition: eclipsehelp.cpp:63
EclipseHelp::addContentsItem
virtual void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def)
Add an item to the content
Definition: eclipsehelp.cpp:160
EclipseHelp::closedTag
void closedTag()
Definition: eclipsehelp.cpp:38
EclipseHelp::m_tocstream
std::ofstream m_tocstream
Definition: eclipsehelp.h:65
EclipseHelp::m_endtag
bool m_endtag
Definition: eclipsehelp.h:62
EclipseHelp
Generator for Eclipse help files.
Definition: eclipsehelp.h:40
EclipseHelp::addIndexItem
virtual void addIndexItem(const Definition *context, const MemberDef *md, const QCString &sectionAnchor, const QCString &title)
Definition: eclipsehelp.cpp:209
EclipseHelp::m_depth
int m_depth
Definition: eclipsehelp.h:61
EclipseHelp::~EclipseHelp
virtual ~EclipseHelp()
Definition: eclipsehelp.cpp:25
EclipseHelp::addIndexFile
virtual void addIndexFile(const QCString &name)
Definition: eclipsehelp.cpp:217
EclipseHelp::operator=
EclipseHelp & operator=(const EclipseHelp &)
EclipseHelp::m_openTags
int m_openTags
Definition: eclipsehelp.h:63
EclipseHelp::EclipseHelp
EclipseHelp()
Definition: eclipsehelp.cpp:21
EclipseHelp::decContentsDepth
virtual void decContentsDepth()
Decrease the level of content hierarchy
Definition: eclipsehelp.cpp:134
IndexIntf
Abstract interface for index generators.
Definition: index.h:32
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108