summaryrefslogtreecommitdiffstats
path: root/addon/xmlparse/dochandler.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-08-05 12:03:04 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-08-05 12:03:04 (GMT)
commit0c6e5ac9eab4ff31bb5650ac2faf9f6c5fc46e68 (patch)
treeae6f91b471c21991428c9b75a29ff8df55d1889d /addon/xmlparse/dochandler.cpp
parent071e39254b00ad7ffed5de8cdeb44072278d4d57 (diff)
downloadDoxygen-0c6e5ac9eab4ff31bb5650ac2faf9f6c5fc46e68.zip
Doxygen-0c6e5ac9eab4ff31bb5650ac2faf9f6c5fc46e68.tar.gz
Doxygen-0c6e5ac9eab4ff31bb5650ac2faf9f6c5fc46e68.tar.bz2
Release-1.2.9.1
Diffstat (limited to 'addon/xmlparse/dochandler.cpp')
-rw-r--r--addon/xmlparse/dochandler.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/addon/xmlparse/dochandler.cpp b/addon/xmlparse/dochandler.cpp
index c9a96c4..4e91d8f 100644
--- a/addon/xmlparse/dochandler.cpp
+++ b/addon/xmlparse/dochandler.cpp
@@ -1,3 +1,18 @@
+/******************************************************************************
+ *
+ * $Id$
+ *
+ *
+ * Copyright (C) 1997-2001 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
+ * for any purpose. It is provided "as is" without express or implied warranty.
+ * See the GNU General Public License for more details.
+ *
+ */
+
#include "dochandler.h"
//----------------------------------------------------------------------
@@ -218,6 +233,37 @@ void ListHandler::startListItem(const QXmlAttributes& attrib)
}
//----------------------------------------------------------------------
+// ParameterHandler
+//----------------------------------------------------------------------
+
+
+//----------------------------------------------------------------------
+// ParameterListHandler
+//----------------------------------------------------------------------
+
+ParameterListHandler::ParameterListHandler(IBaseHandler *parent)
+ : DocNode(ParameterList), m_parent(parent)
+{
+ addEndHandler("parameterlist",this,&ParameterListHandler::endParameterList);
+ m_parameters.setAutoDelete(TRUE);
+ m_curParam=0;
+}
+
+ParameterListHandler::~ParameterListHandler()
+{
+}
+
+void ParameterListHandler::startParameterList(const QXmlAttributes& /*attrib*/)
+{
+ m_parent->setDelegate(this);
+}
+
+void ParameterListHandler::endParameterList()
+{
+ m_parent->setDelegate(0);
+}
+
+//----------------------------------------------------------------------
// ParagraphHandler
//----------------------------------------------------------------------
@@ -268,6 +314,14 @@ void ParagraphHandler::startOrderedList(const QXmlAttributes& attrib)
m_children.append(listHandler);
}
+void ParagraphHandler::startParameterList(const QXmlAttributes& attrib)
+{
+ addTextNode();
+ ParameterListHandler *parListHandler = new ParameterListHandler(this);
+ parListHandler->startParameterList(attrib);
+ m_children.append(parListHandler);
+}
+
void ParagraphHandler::addTextNode()
{
if (!m_curString.isEmpty())