00001 /****************************************************************************** 00002 * 00003 * $Id: reflist.h,v 1.2 2001/03/19 19:27:41 root Exp $ 00004 * 00005 * 00006 * Copyright (C) 1997-2008 by Dimitri van Heesch. 00007 * 00008 * Permission to use, copy, modify, and distribute this software and its 00009 * documentation under the terms of the GNU General Public License is hereby 00010 * granted. No representations are made about the suitability of this software 00011 * for any purpose. It is provided "as is" without express or implied warranty. 00012 * See the GNU General Public License for more details. 00013 * 00014 * Documents produced by Doxygen are derivative works derived from the 00015 * input used in their production; they are not affected by this license. 00016 * 00017 */ 00018 00019 #ifndef _REFLIST_H 00020 #define _REFLIST_H 00021 00022 #include "qtbc.h" 00023 #include <qintdict.h> 00024 //#include "outputgen.h" 00025 00027 struct RefItem 00028 { 00029 RefItem() : written(FALSE) {} 00030 QCString text; 00031 QCString listAnchor; 00032 bool written; 00033 }; 00034 00045 class RefList 00046 { 00047 public: 00048 int addRefItem(); 00049 RefItem *getRefItem(int todoItemId); 00050 RefItem *getFirstRefItem(); 00051 RefItem *getNextRefItem(); 00052 QCString listName() const; 00053 QCString pageTitle() const; 00054 QCString sectionTitle() const; 00055 00056 RefList(const char *listName, 00057 const char *pageTitle,const char *secTitle 00058 ); 00059 ~RefList(); 00060 00061 private: 00062 int m_id; 00063 QCString m_listName; 00064 QCString m_pageTitle; 00065 QCString m_secTitle; 00066 QIntDict<RefItem> *m_dict; 00067 QIntDictIterator<RefItem> *m_dictIterator; 00068 }; 00069 00070 #endif