Orb/Doxygen/src/pagedef.cpp
changeset 4 468f4c8d3d5b
parent 0 42188c7ea2d9
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
    69 
    69 
    70 void PageDef::writeDocumentation(OutputList &ol)
    70 void PageDef::writeDocumentation(OutputList &ol)
    71 {
    71 {
    72   //outputList->disable(OutputGenerator::Man);
    72   //outputList->disable(OutputGenerator::Man);
    73   QCString pageName;
    73   QCString pageName;
    74   pageName=escapeCharsInString(name(),FALSE);
    74   pageName=escapeCharsInString(name(),FALSE,TRUE);
    75 
    75 
    76   startFile(ol,pageName,pageName,title(),HLI_Pages,TRUE);
    76   startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,TRUE);
    77 
    77 
    78   ol.pushGeneratorState();
    78   ol.pushGeneratorState();
    79   //1.{ 
    79   //1.{ 
    80 
    80 
    81   if (m_nestingLevel>0 
    81   if (m_nestingLevel>0 
    94   {
    94   {
    95     getOuterScope()->writeNavigationPath(ol);
    95     getOuterScope()->writeNavigationPath(ol);
    96   }
    96   }
    97 
    97 
    98   ol.endQuickIndices();
    98   ol.endQuickIndices();
    99   ol.startContents();
       
   100 
    99 
   101   // save old generator state and write title only to Man generator
   100   // save old generator state and write title only to Man generator
   102   ol.pushGeneratorState();
   101   ol.pushGeneratorState();
   103   //2.{
   102   //2.{
   104   ol.disableAllBut(OutputGenerator::Man);
   103   ol.disableAllBut(OutputGenerator::Man);
   112   //2.{
   111   //2.{
   113   ol.disable(OutputGenerator::Latex);
   112   ol.disable(OutputGenerator::Latex);
   114   ol.disable(OutputGenerator::RTF);
   113   ol.disable(OutputGenerator::RTF);
   115   SectionInfo *si=0;
   114   SectionInfo *si=0;
   116   if (!title().isEmpty() && !name().isEmpty() &&
   115   if (!title().isEmpty() && !name().isEmpty() &&
   117       (si=Doxygen::sectionDict.find(pageName))!=0)
   116       (si=Doxygen::sectionDict.find(name()))!=0)
   118   {
   117   {
   119     ol.startSection(si->label,si->title,si->type);
   118     //ol.startSection(si->label,si->title,si->type);
       
   119     startTitle(ol,getOutputFileBase(),this);
   120     ol.parseDoc(docFile(),docLine(),this,0,si->title,TRUE,FALSE,0,TRUE,FALSE);
   120     ol.parseDoc(docFile(),docLine(),this,0,si->title,TRUE,FALSE,0,TRUE,FALSE);
   121     //stringToSearchIndex(getOutputFileBase(),
   121     //stringToSearchIndex(getOutputFileBase(),
   122     //                    theTranslator->trPage(TRUE,TRUE)+" "+si->title,
   122     //                    theTranslator->trPage(TRUE,TRUE)+" "+si->title,
   123     //                    si->title);
   123     //                    si->title);
   124     ol.endSection(si->label,si->type);
   124     //ol.endSection(si->label,si->type);
   125   }
   125     endTitle(ol,getOutputFileBase(),name());
       
   126   }
       
   127   ol.startContents();
   126   ol.popGeneratorState();
   128   ol.popGeneratorState();
   127   //2.}
   129   //2.}
   128 
   130 
   129   writePageDocumentation(ol);
   131   writePageDocumentation(ol);
   130 
   132