summaryrefslogtreecommitdiffstats
path: root/addon/doxmlparser/src
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-02-18 21:34:02 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-02-18 21:34:02 (GMT)
commit9793ce49f1d7641854ef0608b34c1dd2d4891a20 (patch)
tree714079396631ac6488c45cce3d6acfb51e31f9a8 /addon/doxmlparser/src
parentb698431e32befbc1d4e2196dc96b0507ed8ab15a (diff)
downloadDoxygen-9793ce49f1d7641854ef0608b34c1dd2d4891a20.zip
Doxygen-9793ce49f1d7641854ef0608b34c1dd2d4891a20.tar.gz
Doxygen-9793ce49f1d7641854ef0608b34c1dd2d4891a20.tar.bz2
Release-1.2.14
Diffstat (limited to 'addon/doxmlparser/src')
-rw-r--r--addon/doxmlparser/src/dochandler.cpp5
-rw-r--r--addon/doxmlparser/src/dochandler.h18
-rw-r--r--addon/doxmlparser/src/doxmlintf.h5
3 files changed, 26 insertions, 2 deletions
diff --git a/addon/doxmlparser/src/dochandler.cpp b/addon/doxmlparser/src/dochandler.cpp
index 344e457..12a3a24 100644
--- a/addon/doxmlparser/src/dochandler.cpp
+++ b/addon/doxmlparser/src/dochandler.cpp
@@ -805,6 +805,11 @@ void VariableListHandler::startListItem(const QXmlAttributes& attrib)
m_curEntry->startListItem(attrib);
}
+IDocIterator *VariableListHandler::entries() const
+{
+ return new VariableListIterator(*this);
+}
+
//----------------------------------------------------------------------
// HighlightHandler
//----------------------------------------------------------------------
diff --git a/addon/doxmlparser/src/dochandler.h b/addon/doxmlparser/src/dochandler.h
index 3aaef72..0161576 100644
--- a/addon/doxmlparser/src/dochandler.h
+++ b/addon/doxmlparser/src/dochandler.h
@@ -533,7 +533,8 @@ class SimpleSectHandler : public IDocSimpleSect,
/* \brief Node representing an named item of a VariableList.
*
*/
-class VariableListEntryHandler : public IDocVariableListEntry, public BaseHandler<VariableListEntryHandler>
+class VariableListEntryHandler : public IDocVariableListEntry,
+ public BaseHandler<VariableListEntryHandler>
{
public:
virtual void startVarListEntry(const QXmlAttributes& attrib);
@@ -549,6 +550,8 @@ class VariableListEntryHandler : public IDocVariableListEntry, public BaseHandle
// IDocVariableListEntry
virtual Kind kind() const { return VariableListEntry; }
+ virtual QString term() const { return m_term; }
+ virtual IDocPara *description() const { return m_description; }
private:
IBaseHandler *m_parent;
@@ -562,8 +565,11 @@ class VariableListEntryHandler : public IDocVariableListEntry, public BaseHandle
*
*/
// children: varlistentry, listitem
-class VariableListHandler : public IDocVariableList, public BaseHandler<VariableListHandler>
+class VariableListHandler : public IDocVariableList,
+ public BaseHandler<VariableListHandler>
{
+ friend class VariableListIterator;
+
public:
virtual void startVariableList(const QXmlAttributes& attrib);
virtual void endVariableList();
@@ -575,6 +581,7 @@ class VariableListHandler : public IDocVariableList, public BaseHandler<Variable
// IDocVariableList
virtual Kind kind() const { return VariableList; }
+ virtual IDocIterator *entries() const;
private:
IBaseHandler *m_parent;
@@ -582,6 +589,13 @@ class VariableListHandler : public IDocVariableList, public BaseHandler<Variable
VariableListEntryHandler *m_curEntry;
};
+class VariableListIterator : public BaseIterator<IDocIterator,IDoc,VariableListEntryHandler>
+{
+ public:
+ VariableListIterator(const VariableListHandler &handler) :
+ BaseIterator<IDocIterator,IDoc,VariableListEntryHandler>(handler.m_entries) {}
+};
+
//-----------------------------------------------------------------------------
/*! \brief Node representing a highlighted text fragment.
diff --git a/addon/doxmlparser/src/doxmlintf.h b/addon/doxmlparser/src/doxmlintf.h
index 0ca2cc8..03a8b3a 100644
--- a/addon/doxmlparser/src/doxmlintf.h
+++ b/addon/doxmlparser/src/doxmlintf.h
@@ -249,10 +249,15 @@ class IDocRef : public IDoc
class IDocVariableList : public IDoc
{
+ public:
+ virtual IDocIterator *entries() const = 0;
};
class IDocVariableListEntry : public IDoc
{
+ public:
+ virtual QString term() const = 0;
+ virtual IDocPara *description() const = 0;
};
class IDocHRuler : public IDoc