summaryrefslogtreecommitdiffstats
path: root/src/eclipsehelp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/eclipsehelp.h')
-rw-r--r--src/eclipsehelp.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/eclipsehelp.h b/src/eclipsehelp.h
index 5d63768..1ba4df4 100644
--- a/src/eclipsehelp.h
+++ b/src/eclipsehelp.h
@@ -1,12 +1,12 @@
/******************************************************************************
*
- *
+ *
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
- * documentation under the terms of the GNU General Public License is hereby
- * granted. No representations are made about the suitability of this software
+ * documentation under the terms of the GNU General Public License is hereby
+ * granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
@@ -24,11 +24,11 @@
#ifndef ECLIPSEHELP_H
#define ECLIPSEHELP_H
+#include <fstream>
+
#include "index.h"
-#include "ftextstream.h"
/* -- forward declarations */
-class QFile;
class Definition;
/** Generator for Eclipse help files.
@@ -37,7 +37,7 @@ class Definition;
* These files can be used to generate a help plugin readable
* by the Eclipse IDE.
*/
-class EclipseHelp : public IndexIntf
+class EclipseHelp : public IndexIntf
{
public:
EclipseHelp();
@@ -48,22 +48,21 @@ class EclipseHelp : public IndexIntf
virtual void finalize();
virtual void incContentsDepth();
virtual void decContentsDepth();
- virtual void addContentsItem(bool isDir, const char *name, const char *ref,
- const char *file, const char *anchor,bool separateIndex,bool addToNavIndex,
+ virtual void addContentsItem(bool isDir, const QCString &name, const QCString &ref,
+ const QCString &file, const QCString &anchor,bool separateIndex,bool addToNavIndex,
const Definition *def);
virtual void addIndexItem(const Definition *context,const MemberDef *md,
- const char *sectionAnchor,const char *title);
- virtual void addIndexFile(const char *name);
- virtual void addImageFile(const char *name);
- virtual void addStyleSheetFile(const char *name);
+ const QCString &sectionAnchor,const QCString &title);
+ virtual void addIndexFile(const QCString &name);
+ virtual void addImageFile(const QCString &name);
+ virtual void addStyleSheetFile(const QCString &name);
private:
int m_depth;
bool m_endtag;
int m_openTags;
- QFile * m_tocfile;
- FTextStream m_tocstream;
+ std::ofstream m_tocstream;
QCString m_pathprefix;
/* -- avoid copying */