summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-08-06 15:11:00 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-08-06 15:11:00 (GMT)
commitc4ef46195917656ebebed63e3fab5c135d9905a2 (patch)
treeaa501b0916e827fee6032245628509acc64efbba /src/util.h
parent5ad8b41eb93b9ca6a4c2ce90837103f8a4e750d8 (diff)
downloadDoxygen-c4ef46195917656ebebed63e3fab5c135d9905a2.zip
Doxygen-c4ef46195917656ebebed63e3fab5c135d9905a2.tar.gz
Doxygen-c4ef46195917656ebebed63e3fab5c135d9905a2.tar.bz2
Release-1.2.0-20000806
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h44
1 files changed, 14 insertions, 30 deletions
diff --git a/src/util.h b/src/util.h
index 97db3d9..deb5d2a 100644
--- a/src/util.h
+++ b/src/util.h
@@ -23,8 +23,6 @@
#include <qtextstream.h>
#include <ctype.h>
-#include "outputlist.h"
-#include "xml.h"
class ClassDef;
class FileDef;
@@ -41,6 +39,8 @@ class GroupDef;
class NamespaceList;
class OutputList;
+//--------------------------------------------------------------------
+
class TextGeneratorIntf
{
public:
@@ -54,22 +54,12 @@ class TextGeneratorIntf
class TextGeneratorOLImpl : public TextGeneratorIntf
{
public:
- TextGeneratorOLImpl(OutputList &ol) : m_ol(ol) {}
- void writeString(const char *s) const
- { m_ol.docify(s); }
- void writeBreak() const
- {
- m_ol.pushGeneratorState();
- m_ol.disableAllBut(OutputGenerator::Html);
- m_ol.lineBreak();
- m_ol.popGeneratorState();
- }
+ TextGeneratorOLImpl(OutputList &ol);
+ void writeString(const char *s) const;
+ void writeBreak() const;
void writeLink(const char *extRef,const char *file,
const char *anchor,const char *text
- ) const
- {
- m_ol.writeObjectLink(extRef,file,anchor,text);
- }
+ ) const;
private:
OutputList &m_ol;
};
@@ -77,25 +67,18 @@ class TextGeneratorOLImpl : public TextGeneratorIntf
class TextGeneratorXMLImpl : public TextGeneratorIntf
{
public:
- TextGeneratorXMLImpl(QTextStream &t) : m_t(t) {}
- void writeString(const char *s) const
- {
- writeXMLString(m_t,s);
- }
- void writeBreak() const {}
+ TextGeneratorXMLImpl(QTextStream &t);
+ void writeString(const char *s) const;
+ void writeBreak() const;
void writeLink(const char *extRef,const char *file,
const char *anchor,const char *text
- ) const
- {
- if (extRef==0)
- { writeXMLLink(m_t,file,anchor,text); }
- else // external references are not supported for XML
- { writeXMLString(m_t,text); }
- }
+ ) const;
private:
QTextStream &m_t;
};
+//--------------------------------------------------------------------
+
extern void linkifyText(const TextGeneratorIntf &ol,const char *clName,const char *name,
const char *text,bool autoBreak=FALSE,bool external=TRUE);
@@ -105,7 +88,8 @@ extern QCString dateToString(bool);
extern bool getDefs(const QCString &scopeName,const QCString &memberName,
const char *, MemberDef *&md,
ClassDef *&cd,FileDef *&fd,
- NamespaceDef *&nd,GroupDef *&gd
+ NamespaceDef *&nd,GroupDef *&gd,
+ bool forceEmptyScope=FALSE
);
extern bool generateRef(OutputList &ol,const char *,
const char *,bool inSeeBlock,const char * =0);