summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-02-10 18:17:19 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-02-10 18:17:19 (GMT)
commit24f9a159dd76047cf03b92e7d71010947efaf164 (patch)
treed1468ce96ea2cb67fa7825027a3f93a67bf4d9a6 /src/util.cpp
parent1335cc7076d6a752c43c9a4eef958feef84d3edd (diff)
downloadDoxygen-24f9a159dd76047cf03b92e7d71010947efaf164.zip
Doxygen-24f9a159dd76047cf03b92e7d71010947efaf164.tar.gz
Doxygen-24f9a159dd76047cf03b92e7d71010947efaf164.tar.bz2
Release-1.2.13-20020210
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp33
1 files changed, 28 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 35b26be..ed55620 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -2603,7 +2603,7 @@ bool generateLink(OutputDocInterface &od,const char *clName,
}
else if ((pi=Doxygen::pageSDict->find(linkRef))) // link to a page
{
- GroupDef *gd = pi->inGroup;
+ GroupDef *gd = pi->getGroupDef();
if (gd)
{
SectionInfo *si=0;
@@ -3467,8 +3467,8 @@ void addRelatedPage(const char *name,const QCString &ptitle,
QCString baseName=name;
if (baseName.right(4)==".tex")
baseName=baseName.left(baseName.length()-4);
- else if (baseName.right(5)==".html")
- baseName=baseName.left(baseName.length()-5);
+ else if (baseName.right(htmlFileExtensionLength)==htmlFileExtension)
+ baseName=baseName.left(baseName.length()-htmlFileExtensionLength);
QCString title=ptitle.stripWhiteSpace();
pi=new PageInfo(fileName,startLine,baseName,doc,title);
@@ -3504,9 +3504,9 @@ void addRelatedPage(const char *name,const QCString &ptitle,
{
si->fileName=gd->getOutputFileBase();
}
- else if (pi->inGroup)
+ else if (pi->getGroupDef())
{
- si->fileName=pi->inGroup->getOutputFileBase().copy();
+ si->fileName=pi->getGroupDef()->getOutputFileBase().copy();
}
else
{
@@ -3621,4 +3621,27 @@ void addRefItem(int todoId,int testId,int bugId,const char *prefix,
}
}
+void addGroupListToTitle(OutputList &ol,Definition *d)
+{
+ if (d->partOfGroups()) // write list of group to which this definition belongs
+ {
+ ol.pushGeneratorState();
+ ol.disableAllBut(OutputGenerator::Html);
+ ol.lineBreak();
+ ol.startSmall();
+ ol.docify("[");
+ GroupListIterator gli(*d->partOfGroups());
+ GroupDef *gd;
+ bool first=TRUE;
+ for (gli.toFirst();(gd=gli.current());++gli)
+ {
+ if (!first) { ol.docify(","); ol.writeNonBreakableSpace(1); } else first=FALSE;
+ ol.writeObjectLink(gd->getReference(),
+ gd->getOutputFileBase(),0,gd->groupTitle());
+ }
+ ol.docify("]");
+ ol.endSmall();
+ ol.popGeneratorState();
+ }
+}