summaryrefslogtreecommitdiffstats
path: root/src/rtfgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-08-13 17:49:57 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-08-13 17:49:57 (GMT)
commit5ce25000172e185e0ca5b9f20538f80cbbfe0b0e (patch)
tree69018221b85af2e6f7d24d25d207dd6fdc8795ad /src/rtfgen.cpp
parentc4ef46195917656ebebed63e3fab5c135d9905a2 (diff)
downloadDoxygen-5ce25000172e185e0ca5b9f20538f80cbbfe0b0e.zip
Doxygen-5ce25000172e185e0ca5b9f20538f80cbbfe0b0e.tar.gz
Doxygen-5ce25000172e185e0ca5b9f20538f80cbbfe0b0e.tar.bz2
Release-1.2.1
Diffstat (limited to 'src/rtfgen.cpp')
-rw-r--r--src/rtfgen.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp
index 29db892..8fef647 100644
--- a/src/rtfgen.cpp
+++ b/src/rtfgen.cpp
@@ -32,6 +32,7 @@
#include "language.h"
#include "dot.h"
#include "version.h"
+#include "page.h"
//#define DBG_RTF(x) x;
#define DBG_RTF(x)
@@ -935,31 +936,31 @@ void RTFGenerator::endIndexSection(IndexSections is)
case isExampleDocumentation:
{
//t << "}\n";
- PageInfo *pi=exampleList.first();
t << "{\\tc \\v " << theTranslator->trExampleDocumentation() << "}"<< endl;
+ PageSDictIterator pdi(*exampleSDict);
+ PageInfo *pi=pdi.toFirst();
if (pi)
{
t << "\\par " << Rtf_Style["Reset"] << endl;
t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
t << convertFileName(pi->name);
t << "-example.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
- pi=exampleList.next();
}
- while (pi)
+ for (++pdi;(pi=pdi.current());++pdi)
{
t << "\\par " << Rtf_Style["Reset"] << endl;
beginRTFSection();
t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
t << convertFileName(pi->name);
t << "-example.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
- pi=exampleList.next();
}
}
break;
case isPageDocumentation:
{
t << "{\\tc \\v " << theTranslator->trPageDocumentation() << "}"<< endl;
- PageInfo *pi=pageList.first();
+ PageSDictIterator pdi(*pageSDict);
+ PageInfo *pi=pdi.toFirst();
if (pi)
{
QCString pageName;
@@ -971,9 +972,8 @@ void RTFGenerator::endIndexSection(IndexSections is)
t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
t << pageName;
t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
- pi=pageList.next();
}
- while (pi)
+ for (++pdi;(pi=pdi.current());++pdi)
{
QCString pageName;
if (Config::caseSensitiveNames)
@@ -985,7 +985,6 @@ void RTFGenerator::endIndexSection(IndexSections is)
t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
t << pageName;
t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
- pi=pageList.next();
}
}
break;