summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-02-10 18:17:19 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-02-10 18:17:19 (GMT)
commitd1e917df5d2bb4125a22eba3c984640c099a7096 (patch)
treed1468ce96ea2cb67fa7825027a3f93a67bf4d9a6 /src/util.cpp
parent88c84f0affadf69d1813d1a971692a5097f8870a (diff)
downloadDoxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.zip
Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.tar.gz
Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.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();
+ }
+}