Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ManGenerator Class Reference

#include <mangen.h>

Inheritance diagram for ManGenerator:
OutputGenerator BaseOutputDocInterface CodeOutputInterface

Public Member Functions

 ManGenerator ()
 
 ~ManGenerator ()
 
void enable ()
 
void disable ()
 
void enableIf (OutputType o)
 
void disableIf (OutputType o)
 
void disableIfNot (OutputType o)
 
bool isEnabled (OutputType o)
 
OutputGeneratorget (OutputType o)
 
void writeDoc (DocNode *, Definition *, MemberDef *)
 
void startFile (const char *name, const char *manName, const char *title)
 
void writeSearchInfo ()
 
void writeFooter (const char *)
 
void endFile ()
 
void clearBuffer ()
 
void startIndexSection (IndexSections)
 
void endIndexSection (IndexSections)
 
void writePageLink (const char *, bool)
 
void startProjectNumber ()
 
void endProjectNumber ()
 
void writeStyleInfo (int)
 
void startTitleHead (const char *)
 
void endTitleHead (const char *, const char *)
 
void startTitle ()
 
void endTitle ()
 
void newParagraph ()
 
void startParagraph ()
 
void endParagraph ()
 
void writeString (const char *text)
 
void startIndexListItem ()
 
void endIndexListItem ()
 
void startIndexList ()
 
void endIndexList ()
 
void startIndexKey ()
 
void endIndexKey ()
 
void startIndexValue (bool)
 
void endIndexValue (const char *, bool)
 
void startItemList ()
 
void endItemList ()
 
void startIndexItem (const char *ref, const char *file)
 
void endIndexItem (const char *ref, const char *file)
 
void docify (const char *text)
 
void codify (const char *text)
 
void writeObjectLink (const char *ref, const char *file, const char *anchor, const char *name)
 
void writeCodeLink (const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip)
 
void writeTooltip (const char *, const DocLinkInfo &, const char *, const char *, const SourceLinkInfo &, const SourceLinkInfo &)
 
void startTextLink (const char *, const char *)
 
void endTextLink ()
 
void startHtmlLink (const char *url)
 
void endHtmlLink ()
 
void startTypewriter ()
 
void endTypewriter ()
 
void startGroupHeader (int)
 
void endGroupHeader (int)
 
void startMemberSections ()
 
void endMemberSections ()
 
void startHeaderSection ()
 
void endHeaderSection ()
 
void startMemberHeader (const char *)
 
void endMemberHeader ()
 
void insertMemberAlign (bool)
 
void startMemberSubtitle ()
 
void endMemberSubtitle ()
 
void startItemListItem ()
 
void endItemListItem ()
 
void startMemberDocList ()
 
void endMemberDocList ()
 
void startMemberList ()
 
void endMemberList ()
 
void startInlineHeader ()
 
void endInlineHeader ()
 
void startAnonTypeScope (int)
 
void endAnonTypeScope (int)
 
void startMemberItem (const char *, int, const char *)
 
void endMemberItem ()
 
void startMemberTemplateParams ()
 
void endMemberTemplateParams (const char *, const char *)
 
void startMemberGroupHeader (bool)
 
void endMemberGroupHeader ()
 
void startMemberGroupDocs ()
 
void endMemberGroupDocs ()
 
void startMemberGroup ()
 
void endMemberGroup (bool)
 
void writeRuler ()
 
void writeAnchor (const char *, const char *)
 
void startCodeFragment ()
 
void endCodeFragment ()
 
void writeLineNumber (const char *, const char *, const char *, int l)
 
void startCodeLine (bool)
 
void endCodeLine ()
 
void startEmphasis ()
 
void endEmphasis ()
 
void startBold ()
 
void endBold ()
 
void startDescription ()
 
void endDescription ()
 
void startDescItem ()
 
void endDescItem ()
 
void lineBreak (const char *)
 
void writeChar (char c)
 
void startMemberDoc (const char *, const char *, const char *, const char *, bool)
 
void endMemberDoc (bool)
 
void startDoxyAnchor (const char *, const char *, const char *, const char *, const char *)
 
void endDoxyAnchor (const char *, const char *)
 
void writeLatexSpacing ()
 
void writeStartAnnoItem (const char *type, const char *file, const char *path, const char *name)
 
void writeEndAnnoItem (const char *)
 
void startSubsection ()
 
void endSubsection ()
 
void startSubsubsection ()
 
void endSubsubsection ()
 
void startCenter ()
 
void endCenter ()
 
void startSmall ()
 
void endSmall ()
 
void startMemberDescription (const char *, const char *)
 
void endMemberDescription ()
 
void startMemberDeclaration ()
 
void endMemberDeclaration (const char *, const char *)
 
void writeInheritedSectionTitle (const char *, const char *, const char *, const char *, const char *, const char *)
 
void startDescList (SectionTypes)
 
void endDescList ()
 
void startSimpleSect (SectionTypes, const char *, const char *, const char *)
 
void endSimpleSect ()
 
void startParamList (ParamListTypes, const char *title)
 
void endParamList ()
 
void startDescForItem ()
 
void endDescForItem ()
 
void startSection (const char *, const char *, SectionInfo::SectionType)
 
void endSection (const char *, SectionInfo::SectionType)
 
void addIndexItem (const char *, const char *)
 
void startIndent ()
 
void endIndent ()
 
void writeSynopsis ()
 
void startClassDiagram ()
 
void endClassDiagram (const ClassDiagram &, const char *, const char *)
 
void startPageRef ()
 
void endPageRef (const char *, const char *)
 
void startQuickIndices ()
 
void endQuickIndices ()
 
void writeSplitBar (const char *)
 
void writeNavigationPath (const char *)
 
void writeLogo ()
 
void writeQuickLinks (bool, HighlightedItem, const char *)
 
void writeSummaryLink (const char *, const char *, const char *, bool)
 
void startContents ()
 
void endContents ()
 
void writeNonBreakableSpace (int n)
 
void startDescTable (const char *t)
 
void endDescTable ()
 
void startDescTableTitle ()
 
void endDescTableTitle ()
 
void startDescTableData ()
 
void endDescTableData ()
 
void startDotGraph ()
 
void endDotGraph (const DotClassGraph &)
 
void startInclDepGraph ()
 
void endInclDepGraph (const DotInclDepGraph &)
 
void startGroupCollaboration ()
 
void endGroupCollaboration (const DotGroupCollaboration &)
 
void startCallGraph ()
 
void endCallGraph (const DotCallGraph &)
 
void startDirDepGraph ()
 
void endDirDepGraph (const DotDirDeps &)
 
void writeGraphicalHierarchy (const DotGfxHierarchyTable &)
 
void startTextBlock (bool)
 
void endTextBlock (bool)
 
void lastIndexPage ()
 
void startMemberDocPrefixItem ()
 
void endMemberDocPrefixItem ()
 
void startMemberDocName (bool)
 
void endMemberDocName ()
 
void startParameterType (bool, const char *)
 
void endParameterType ()
 
void startParameterName (bool)
 
void endParameterName (bool, bool, bool)
 
void startParameterList (bool)
 
void endParameterList ()
 
void exceptionEntry (const char *, bool)
 
void startFontClass (const char *)
 
void endFontClass ()
 
void startConstraintList (const char *)
 
void startConstraintParam ()
 
void endConstraintParam ()
 
void startConstraintType ()
 
void endConstraintType ()
 
void startConstraintDocs ()
 
void endConstraintDocs ()
 
void endConstraintList ()
 
void startMemberDocSimple ()
 
void endMemberDocSimple ()
 
void startInlineMemberType ()
 
void endInlineMemberType ()
 
void startInlineMemberName ()
 
void endInlineMemberName ()
 
void startInlineMemberDoc ()
 
void endInlineMemberDoc ()
 
void startLabels ()
 
void writeLabel (const char *l, bool isLast)
 
void endLabels ()
 
void writeCodeAnchor (const char *)
 
void setCurrentDoc (Definition *, const char *, bool)
 
void addWord (const char *, bool)
 
- Public Member Functions inherited from OutputGenerator
 OutputGenerator ()
 
virtual ~OutputGenerator ()
 
void startPlainFile (const char *name)
 
void endPlainFile ()
 
bool isEnabled () const
 
void pushGeneratorState ()
 
void popGeneratorState ()
 
- Public Member Functions inherited from BaseOutputDocInterface
virtual ~BaseOutputDocInterface ()
 
virtual bool parseText (const QCString &s)
 
- Public Member Functions inherited from CodeOutputInterface
virtual ~CodeOutputInterface ()
 

Static Public Member Functions

static void init ()
 

Private Member Functions

 ManGenerator (const ManGenerator &g)
 
ManGeneratoroperator= (const ManGenerator &g)
 

Private Attributes

bool firstCol
 
bool paragraph
 
int col
 
bool upperCase
 
bool insideTabbing
 
bool inHeader
 

Additional Inherited Members

- Public Types inherited from OutputGenerator
enum  OutputType {
  Html, Latex, Man, RTF,
  XML, DEF, Perl
}
 
- Public Types inherited from BaseOutputDocInterface
enum  ParamListTypes { Param, RetVal, Exception }
 
enum  SectionTypes { EnumValues, Examples }
 
- Protected Attributes inherited from OutputGenerator
FTextStream t
 
QFilefile
 
QCString fileName
 
QCString dir
 
bool active
 
QStack< bool > * genStack
 

Detailed Description

Generator for Man page output.

Definition at line 26 of file mangen.h.

Constructor & Destructor Documentation

ManGenerator::ManGenerator ( )

Definition at line 77 of file mangen.cpp.

77  : OutputGenerator()
78 {
79  dir=Config_getString("MAN_OUTPUT") + "/" + getSubdir();
80  firstCol=TRUE;
82  col=0;
86 }
const bool FALSE
Definition: qglobal.h:370
static QCString getSubdir()
Definition: mangen.cpp:67
bool inHeader
Definition: mangen.h:270
#define Config_getString(val)
Definition: config.cpp:660
bool firstCol
Definition: mangen.h:265
bool insideTabbing
Definition: mangen.h:269
QCString dir
Definition: outputgen.h:489
bool upperCase
Definition: mangen.h:268
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
ManGenerator::~ManGenerator ( )

Definition at line 88 of file mangen.cpp.

89 {
90 }
ManGenerator::ManGenerator ( const ManGenerator g)
private

Member Function Documentation

void ManGenerator::addIndexItem ( const char *  ,
const char *   
)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 180 of file mangen.h.

180 {}
void ManGenerator::addWord ( const char *  ,
bool   
)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 262 of file mangen.h.

262 {}
void ManGenerator::clearBuffer ( )
void ManGenerator::codify ( const char *  s)
virtual

Writes an code fragment to the output. This function should keep spaces visible, should break lines at a newline and should convert tabs to the right number of spaces.

Implements CodeOutputInterface.

Definition at line 323 of file mangen.cpp.

324 {
325  //static char spaces[]=" ";
326  if (str)
327  {
328  const char *p=str;
329  char c;
330  int spacesToNextTabStop;
331  while (*p)
332  {
333  c=*p++;
334  switch(c)
335  {
336  case '.': t << "\\&."; break; // see bug652277
337  case '\t': spacesToNextTabStop =
338  Config_getInt("TAB_SIZE") - (col%Config_getInt("TAB_SIZE"));
339  t << Doxygen::spaces.left(spacesToNextTabStop);
340  col+=spacesToNextTabStop;
341  break;
342  case '\n': t << "\n"; firstCol=TRUE; col=0; break;
343  case '\\': t << "\\"; col++; break;
344  case '\"': // no break!
345  default: p=writeUtf8Char(t,p-1); firstCol=FALSE; col++; break;
346  }
347  }
348  //printf("%s",str);fflush(stdout);
349  }
351 }
const bool FALSE
Definition: qglobal.h:370
QCString left(uint len) const
Definition: qcstring.cpp:213
#define Config_getInt(val)
Definition: config.cpp:661
const char * writeUtf8Char(FTextStream &t, const char *s)
Definition: util.cpp:7165
p
Definition: test.py:223
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
static QCString spaces
Definition: doxygen.h:151
const bool TRUE
Definition: qglobal.h:371
static QCString str
void ManGenerator::disable ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 37 of file mangen.h.

37 { active=FALSE; }
const bool FALSE
Definition: qglobal.h:370
void ManGenerator::disableIf ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 39 of file mangen.h.

39 { if (o==Man) disable(); }
void disable()
Definition: mangen.h:37
void ManGenerator::disableIfNot ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 40 of file mangen.h.

40 { if (o!=Man) disable(); }
void disable()
Definition: mangen.h:37
void ManGenerator::docify ( const char *  s)
virtual

Writes an ASCII string to the output. Converts characters that have A special meaning, like & in html.

Implements BaseOutputDocInterface.

Definition at line 299 of file mangen.cpp.

300 {
301  if (str)
302  {
303  const char *p=str;
304  char c=0;
305  while ((c=*p++))
306  {
307  switch(c)
308  {
309  case '-': t << "\\-"; break; // see bug747780
310  case '.': t << "\\&."; break; // see bug652277
311  case '\\': t << "\\\\"; col++; break;
312  case '\n': t << "\n"; col=0; break;
313  case '\"': c = '\''; // no break!
314  default: t << c; col++; break;
315  }
316  }
317  firstCol=(c=='\n');
318  //printf("%s",str);fflush(stdout);
319  }
321 }
const bool FALSE
Definition: qglobal.h:370
p
Definition: test.py:223
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
static QCString str
void ManGenerator::enable ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 35 of file mangen.h.

36  { if (genStack->top()) active=*genStack->top(); else active=TRUE; }
QStack< bool > * genStack
Definition: outputgen.h:491
const bool TRUE
Definition: qglobal.h:371
type * top() const
Definition: qstack.h:63
void ManGenerator::enableIf ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 38 of file mangen.h.

38 { if (o==Man) enable(); }
void enable()
Definition: mangen.h:35
void ManGenerator::endAnonTypeScope ( int  indentLevel)
virtual

Implements OutputGenerator.

Definition at line 546 of file mangen.cpp.

547 {
548  if (indentLevel==0)
549  {
551  }
552 }
const bool FALSE
Definition: qglobal.h:370
bool insideTabbing
Definition: mangen.h:269
void ManGenerator::endBold ( )
inlinevirtual

End a section of text displayed in bold face.

Implements BaseOutputDocInterface.

Definition at line 140 of file mangen.h.

140 { t << "\\fP"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endCallGraph ( const DotCallGraph )
inlinevirtual

Implements OutputGenerator.

Definition at line 214 of file mangen.h.

214 {}
void ManGenerator::endCenter ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 160 of file mangen.h.

160 {}
void ManGenerator::endClassDiagram ( const ClassDiagram ,
const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 185 of file mangen.h.

185 {}
void ManGenerator::endCodeFragment ( )
virtual

Ends a source code fragment

Implements BaseOutputDocInterface.

Definition at line 412 of file mangen.cpp.

413 {
414  if (!firstCol) t << endl;
415  t << ".fi" << endl;
416  firstCol=TRUE;
418  col=0;
419 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endCodeLine ( )
inlinevirtual

Ends a line of code started with startCodeLine()

Implements CodeOutputInterface.

Definition at line 136 of file mangen.h.

136 { codify("\n"); col=0; }
void codify(const char *text)
Definition: mangen.cpp:323
void ManGenerator::endConstraintDocs ( )
virtual

Implements OutputGenerator.

Definition at line 740 of file mangen.cpp.

741 {
742  t << endl; firstCol=TRUE;
743 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endConstraintList ( )
virtual

Implements OutputGenerator.

Definition at line 745 of file mangen.cpp.

746 {
747 }
void ManGenerator::endConstraintParam ( )
virtual

Implements OutputGenerator.

Definition at line 719 of file mangen.cpp.

720 {
721  endEmphasis();
722  endItemListItem();
723  t << " : ";
724 }
void endEmphasis()
Definition: mangen.h:138
void endItemListItem()
Definition: mangen.cpp:400
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endConstraintType ( )
virtual

Implements OutputGenerator.

Definition at line 731 of file mangen.cpp.

732 {
733  endEmphasis();
734 }
void endEmphasis()
Definition: mangen.h:138
void ManGenerator::endContents ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 196 of file mangen.h.

196 {}
void ManGenerator::endDescForItem ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 528 of file mangen.cpp.

529 {
530 }
void ManGenerator::endDescItem ( )
virtual

Ends an item of a description list and starts the description itself: e.g. </dt> in HTML.

Implements BaseOutputDocInterface.

Definition at line 532 of file mangen.cpp.

533 {
534  t << "\" 1c" << endl;
535  firstCol=TRUE;
536 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endDescList ( )
inline

Definition at line 170 of file mangen.h.

170 {}
void ManGenerator::endDescription ( )
inlinevirtual

Ends a description list: e.g. </dl> in HTML

Implements BaseOutputDocInterface.

Definition at line 142 of file mangen.h.

142 {}
void ManGenerator::endDescTable ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 201 of file mangen.h.

void endDescForItem()
Definition: mangen.cpp:528
void endSimpleSect()
Definition: mangen.cpp:668
void ManGenerator::endDescTableData ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 205 of file mangen.h.

205 {}
void ManGenerator::endDescTableTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 203 of file mangen.h.

203 { endEmphasis(); endBold(); }
void endBold()
Definition: mangen.h:140
void endEmphasis()
Definition: mangen.h:138
void ManGenerator::endDirDepGraph ( const DotDirDeps )
inlinevirtual

Implements OutputGenerator.

Definition at line 216 of file mangen.h.

216 {}
void ManGenerator::endDotGraph ( const DotClassGraph )
inlinevirtual

Implements OutputGenerator.

Definition at line 208 of file mangen.h.

208 {}
void ManGenerator::endDoxyAnchor ( const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 150 of file mangen.h.

150 {}
void ManGenerator::endEmphasis ( )
inlinevirtual

Ends a section of text displayed in italic.

Implements BaseOutputDocInterface.

Definition at line 138 of file mangen.h.

138 { t << "\\fP"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endFile ( )
virtual

Implements OutputGenerator.

Definition at line 174 of file mangen.cpp.

175 {
176  t << endl;
177  endPlainFile();
178 }
void endPlainFile()
Definition: outputgen.cpp:55
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void ManGenerator::endFontClass ( )
inlinevirtual

Ends a block started with startFontClass()

Implements CodeOutputInterface.

Definition at line 236 of file mangen.h.

236 {}
void ManGenerator::endGroupCollaboration ( const DotGroupCollaboration )
inlinevirtual

Implements OutputGenerator.

Definition at line 212 of file mangen.h.

212 {}
void ManGenerator::endGroupHeader ( int  )
virtual

Implements OutputGenerator.

Definition at line 278 of file mangen.cpp.

279 {
280  t << "\"\n.PP " << endl;
281  firstCol=TRUE;
282  paragraph=TRUE;
284 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool upperCase
Definition: mangen.h:268
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endHeaderSection ( )
virtual

Implements OutputGenerator.

Definition at line 830 of file mangen.cpp.

831 {
832 }
void ManGenerator::endHtmlLink ( )
virtual

Ends a link started by startHtmlLink().

Implements BaseOutputDocInterface.

Definition at line 261 of file mangen.cpp.

262 {
263 }
void ManGenerator::endInclDepGraph ( const DotInclDepGraph )
inlinevirtual

Implements OutputGenerator.

Definition at line 210 of file mangen.h.

210 {}
void ManGenerator::endIndent ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 182 of file mangen.h.

182 {}
void ManGenerator::endIndexItem ( const char *  ref,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 235 of file mangen.cpp.

236 {
237 }
void ManGenerator::endIndexKey ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 73 of file mangen.h.

73 {}
void ManGenerator::endIndexList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 71 of file mangen.h.

71 { newParagraph(); }
void newParagraph()
Definition: mangen.cpp:200
void ManGenerator::endIndexListItem ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 69 of file mangen.h.

69 {}
void ManGenerator::endIndexSection ( IndexSections  )
inlinevirtual

Implements OutputGenerator.

Definition at line 54 of file mangen.h.

54 {}
void ManGenerator::endIndexValue ( const char *  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 75 of file mangen.h.

75 {}
void ManGenerator::endInlineHeader ( )
virtual

Implements OutputGenerator.

Definition at line 759 of file mangen.cpp.

760 {
761  t << "\\fP\"" << endl << ".in +1c" << endl;
762  firstCol = FALSE;
763 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void ManGenerator::endInlineMemberDoc ( )
virtual

Implements OutputGenerator.

Definition at line 808 of file mangen.cpp.

809 {
810  if (!firstCol) t << endl;
811  t << ".br" << endl;
812  t << ".PP" << endl;
813  firstCol=TRUE;
814 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endInlineMemberName ( )
virtual

Implements OutputGenerator.

Definition at line 799 of file mangen.cpp.

800 {
801  t << "\\fP ";
802 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endInlineMemberType ( )
virtual

Implements OutputGenerator.

Definition at line 789 of file mangen.cpp.

790 {
791  t << " ";
792 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endItemList ( )
inlinevirtual

Ends a bullet list: e.g. </ul> in html

Implements BaseOutputDocInterface.

Definition at line 77 of file mangen.h.

77 { newParagraph(); }
void newParagraph()
Definition: mangen.cpp:200
void ManGenerator::endItemListItem ( )
virtual

Writes a list item for a bullet or enumerated list: e.g. </li> in html

Implements BaseOutputDocInterface.

Definition at line 400 of file mangen.cpp.

401 {
402 }
void ManGenerator::endLabels ( )
virtual

Implements OutputGenerator.

Definition at line 826 of file mangen.cpp.

827 {
828 }
void ManGenerator::endMemberDeclaration ( const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 166 of file mangen.h.

166 {}
void ManGenerator::endMemberDescription ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 164 of file mangen.h.

164 { t << "\\fP\""; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endMemberDoc ( bool  )
virtual

Implements OutputGenerator.

Definition at line 465 of file mangen.cpp.

466 {
467  t << "\"\n";
468 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endMemberDocList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 111 of file mangen.h.

111 {}
void ManGenerator::endMemberDocName ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 226 of file mangen.h.

226 {}
void ManGenerator::endMemberDocPrefixItem ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 224 of file mangen.h.

224 {}
void ManGenerator::endMemberDocSimple ( )
virtual

Implements OutputGenerator.

Definition at line 777 of file mangen.cpp.

778 {
779  if (!firstCol) t << endl;
780  t << ".RE" << endl;
781  t << ".PP" << endl;
782  firstCol=TRUE;
783 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endMemberGroup ( bool  )
virtual

Implements OutputGenerator.

Definition at line 608 of file mangen.cpp.

609 {
610  t << "\n.in -1c";
611  firstCol=FALSE;
612 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endMemberGroupDocs ( )
virtual

Implements OutputGenerator.

Definition at line 598 of file mangen.cpp.

599 {
600  t << "\n.PP";
601 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endMemberGroupHeader ( )
virtual

Implements OutputGenerator.

Definition at line 588 of file mangen.cpp.

589 {
590  t << "\\fP\"\n.br\n";
591  firstCol=TRUE;
592 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
void ManGenerator::endMemberHeader ( )
virtual

Implements OutputGenerator.

Definition at line 292 of file mangen.cpp.

293 {
294  t << "\"\n";
295  firstCol=TRUE;
297 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
void ManGenerator::endMemberItem ( )
virtual

Implements OutputGenerator.

Definition at line 562 of file mangen.cpp.

563 {
564  t << "\"\n.br";
565 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endMemberList ( )
virtual

Implements OutputGenerator.

Definition at line 575 of file mangen.cpp.

576 {
577  if (!insideTabbing)
578  {
579  t << "\n.in -1c"; firstCol=FALSE;
580  }
581 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
bool insideTabbing
Definition: mangen.h:269
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endMemberSections ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 99 of file mangen.h.

99 {}
void ManGenerator::endMemberSubtitle ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 106 of file mangen.h.

106 {}
void ManGenerator::endMemberTemplateParams ( const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 121 of file mangen.h.

121 {}
void ManGenerator::endPageRef ( const char *  ,
const char *   
)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 187 of file mangen.h.

187 {}
void ManGenerator::endParagraph ( )
virtual

Ends a paragraph

Implements BaseOutputDocInterface.

Definition at line 222 of file mangen.cpp.

223 {
224 }
void ManGenerator::endParameterList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 232 of file mangen.h.

232 {}
void ManGenerator::endParameterName ( bool  ,
bool  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 230 of file mangen.h.

230 {}
void ManGenerator::endParameterType ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 228 of file mangen.h.

228 {}
void ManGenerator::endParamList ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 686 of file mangen.cpp.

687 {
688 }
void ManGenerator::endProjectNumber ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 57 of file mangen.h.

57 {}
void ManGenerator::endQuickIndices ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 189 of file mangen.h.

189 {}
void ManGenerator::endSection ( const char *  ,
SectionInfo::SectionType  type 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 630 of file mangen.cpp.

631 {
632  if( !inHeader )
633  {
634  switch(type)
635  {
636  case SectionInfo::Page: endGroupHeader(0); break;
637  case SectionInfo::Section: endGroupHeader(0); break;
641  default: ASSERT(0); break;
642  }
643  }
644  else
645  {
646  t << "\n";
647  firstCol=TRUE;
649  inHeader=FALSE;
650  }
651 }
const bool FALSE
Definition: qglobal.h:370
void endMemberHeader()
Definition: mangen.cpp:292
bool inHeader
Definition: mangen.h:270
bool firstCol
Definition: mangen.h:265
void endGroupHeader(int)
Definition: mangen.cpp:278
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
#define ASSERT(x)
Definition: qglobal.h:590
void ManGenerator::endSimpleSect ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 668 of file mangen.cpp.

669 {
670 }
void ManGenerator::endSmall ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 162 of file mangen.h.

162 {}
void ManGenerator::endSubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 478 of file mangen.cpp.

479 {
480  t << "\"";
481 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endSubsubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 492 of file mangen.cpp.

493 {
494  t << "\"";
495 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endTextBlock ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 220 of file mangen.h.

220 {}
void ManGenerator::endTextLink ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 91 of file mangen.h.

91 {}
void ManGenerator::endTitle ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 386 of file mangen.cpp.

387 {
388  t << "\"";
389 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::endTitleHead ( const char *  ,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 180 of file mangen.cpp.

181 {
182  t << ".TH \"" << name << "\" " << getExtension() << " \""
183  << dateToString(FALSE) << "\" \"";
184  if (!Config_getString("PROJECT_NUMBER").isEmpty())
185  t << "Version " << Config_getString("PROJECT_NUMBER") << "\" \"";
186  if (Config_getString("PROJECT_NAME").isEmpty())
187  t << "Doxygen";
188  else
189  t << Config_getString("PROJECT_NAME");
190  t << "\" \\\" -*- nroff -*-" << endl;
191  t << ".ad l" << endl;
192  t << ".nh" << endl;
193  t << ".SH NAME" << endl;
194  t << name << " \\- ";
195  firstCol=FALSE;
196  paragraph=TRUE;
197  inHeader=TRUE;
198 }
static QCString name
Definition: declinfo.cpp:673
const bool FALSE
Definition: qglobal.h:370
bool inHeader
Definition: mangen.h:270
QCString dateToString(bool includeTime)
Definition: util.cpp:2473
#define Config_getString(val)
Definition: config.cpp:660
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
static QCString getExtension()
Definition: mangen.cpp:34
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::endTypewriter ( )
inlinevirtual

End a section of text displayed in typewriter style.

Implements BaseOutputDocInterface.

Definition at line 95 of file mangen.h.

95 { t << "\\fP"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::exceptionEntry ( const char *  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 233 of file mangen.h.

233 {}
OutputGenerator* ManGenerator::get ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 42 of file mangen.h.

42 { return (o==Man) ? this : 0; }
void ManGenerator::init ( )
static

Definition at line 108 of file mangen.cpp.

109 {
110  QCString &manOutput = Config_getString("MAN_OUTPUT");
111 
112  QDir d(manOutput);
113  if (!d.exists() && !d.mkdir(manOutput))
114  {
115  err("Could not create output directory %s\n",manOutput.data());
116  exit(1);
117  }
118  d.setPath(manOutput + "/" + getSubdir());
119  if (!d.exists() && !d.mkdir(manOutput + "/" + getSubdir()))
120  {
121  err("Could not create output directory %s/%s\n",manOutput.data(), getSubdir().data());
122  exit(1);
123  }
124  createSubDirs(d);
125 }
Traverses directory structures and contents in a platform-independent way.
Definition: qdir.h:52
static QCString getSubdir()
Definition: mangen.cpp:67
const char * data() const
Definition: qcstring.h:207
#define Config_getString(val)
Definition: config.cpp:660
void err(const char *fmt,...)
Definition: message.cpp:226
void createSubDirs(QDir &d)
Definition: util.cpp:5458
void ManGenerator::insertMemberAlign ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 104 of file mangen.h.

104 {}
bool ManGenerator::isEnabled ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 41 of file mangen.h.

41 { return (o==Man && active); }
void ManGenerator::lastIndexPage ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 221 of file mangen.h.

221 {}
void ManGenerator::lineBreak ( const char *  )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 145 of file mangen.h.

145 { t << "\n.br" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void ManGenerator::newParagraph ( )

Definition at line 200 of file mangen.cpp.

201 {
202  if (!paragraph)
203  {
204  if (!firstCol) t << endl;
205  t << ".PP" << endl;
206  firstCol=TRUE;
207  }
208  paragraph=TRUE;
209 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
ManGenerator& ManGenerator::operator= ( const ManGenerator g)
private
void ManGenerator::setCurrentDoc ( Definition ,
const char *  ,
bool   
)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 261 of file mangen.h.

261 {}
void ManGenerator::startAnonTypeScope ( int  indentLevel)
virtual

Implements OutputGenerator.

Definition at line 538 of file mangen.cpp.

539 {
540  if (indentLevel==0)
541  {
543  }
544 }
bool insideTabbing
Definition: mangen.h:269
const bool TRUE
Definition: qglobal.h:371
void ManGenerator::startBold ( )
inlinevirtual

Changes the text font to bold face. The bold section ends with endBold()

Implements BaseOutputDocInterface.

Definition at line 139 of file mangen.h.

139 { t << "\\fB"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startCallGraph ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 213 of file mangen.h.

213 {}
void ManGenerator::startCenter ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 159 of file mangen.h.

159 {}
void ManGenerator::startClassDiagram ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 184 of file mangen.h.

184 {}
void ManGenerator::startCodeFragment ( )
virtual

Starts a source code fragment. The fragment will be fed to the code parser (see code.h) for syntax highlighting and cross-referencing. The fragment ends by a call to endCodeFragment()

Implements BaseOutputDocInterface.

Definition at line 404 of file mangen.cpp.

405 {
406  newParagraph();
407  t << ".nf" << endl;
408  firstCol=TRUE;
410 }
void newParagraph()
Definition: mangen.cpp:200
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startCodeLine ( bool  )
inlinevirtual

Implements CodeOutputInterface.

Definition at line 135 of file mangen.h.

135 {}
void ManGenerator::startConstraintDocs ( )
virtual

Implements OutputGenerator.

Definition at line 736 of file mangen.cpp.

737 {
738 }
void ManGenerator::startConstraintList ( const char *  header)
virtual

Implements OutputGenerator.

Definition at line 699 of file mangen.cpp.

700 {
701  if (!firstCol)
702  { t << endl << ".PP" << endl;
704  col=0;
705  }
707  startBold();
708  docify(header);
709  endBold();
710  paragraph=TRUE;
711 }
void endBold()
Definition: mangen.h:140
const bool FALSE
Definition: qglobal.h:370
void docify(const char *text)
Definition: mangen.cpp:299
void startBold()
Definition: mangen.h:139
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startConstraintParam ( )
virtual

Implements OutputGenerator.

Definition at line 713 of file mangen.cpp.

714 {
716  startEmphasis();
717 }
void startEmphasis()
Definition: mangen.h:137
void startItemListItem()
Definition: mangen.cpp:391
void ManGenerator::startConstraintType ( )
virtual

Implements OutputGenerator.

Definition at line 726 of file mangen.cpp.

727 {
728  startEmphasis();
729 }
void startEmphasis()
Definition: mangen.h:137
void ManGenerator::startContents ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 195 of file mangen.h.

195 {}
void ManGenerator::startDescForItem ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 518 of file mangen.cpp.

519 {
520  if (!firstCol) t << endl;
521  if (!paragraph) t << ".in -1c" << endl;
522  t << ".in +1c" << endl;
523  firstCol=TRUE;
525  col=0;
526 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startDescItem ( )
virtual

Starts an item of a description list: e.g. <dt> in HTML.

Implements BaseOutputDocInterface.

Definition at line 505 of file mangen.cpp.

506 {
507  if (!firstCol) t << endl;
508  t << ".IP \"";
509  firstCol=FALSE;
510 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void ManGenerator::startDescList ( SectionTypes  )

Definition at line 367 of file mangen.cpp.

368 {
369  if (!firstCol)
370  { t << endl << ".PP" << endl;
372  col=0;
373  }
375  startBold();
376 }
const bool FALSE
Definition: qglobal.h:370
void startBold()
Definition: mangen.h:139
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startDescription ( )
inlinevirtual

Starts a description list: e.g. <dl> in HTML Items are surrounded by startDescItem() and endDescItem()

Implements BaseOutputDocInterface.

Definition at line 141 of file mangen.h.

141 {}
void ManGenerator::startDescTable ( const char *  t)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 199 of file mangen.h.

void startDescForItem()
Definition: mangen.cpp:518
void startSimpleSect(SectionTypes, const char *, const char *, const char *)
Definition: mangen.cpp:653
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startDescTableData ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 204 of file mangen.h.

204 { t << endl; firstCol=TRUE; }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startDescTableTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 202 of file mangen.h.

void startEmphasis()
Definition: mangen.h:137
void startItemListItem()
Definition: mangen.cpp:391
void endItemListItem()
Definition: mangen.cpp:400
void startBold()
Definition: mangen.h:139
void ManGenerator::startDirDepGraph ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 215 of file mangen.h.

215 {}
void ManGenerator::startDotGraph ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 207 of file mangen.h.

207 {}
void ManGenerator::startDoxyAnchor ( const char *  ,
const char *  manName,
const char *  ,
const char *  name,
const char *   
)
virtual

Implements OutputGenerator.

Definition at line 429 of file mangen.cpp.

432 {
433  // something to be done?
434  if( !Config_getBool("MAN_LINKS") )
435  {
436  return; // no
437  }
438 
439  // the name of the link file is derived from the name of the anchor:
440  // - truncate after an (optional) ::
442  int i=baseName.findRev("::");
443  if (i!=-1) baseName=baseName.right(baseName.length()-i-2);
444 
445  //printf("Converting man link '%s'->'%s'->'%s'\n",
446  // name,baseName.data(),buildFileName(baseName).data());
447 
448  // - remove dangerous characters and append suffix, then add dir prefix
449  QCString fileName=dir+"/"+buildFileName( baseName );
450  QFile linkfile( fileName );
451  // - only create file if it doesn't exist already
452  if ( !linkfile.open( IO_ReadOnly ) )
453  {
454  if ( linkfile.open( IO_WriteOnly ) )
455  {
456  FTextStream linkstream;
457  linkstream.setDevice(&linkfile);
458  //linkstream.setEncoding(QTextStream::UnicodeUTF8);
459  linkstream << ".so " << getSubdir() << "/" << buildFileName( manName ) << endl;
460  }
461  }
462  linkfile.close();
463 }
static QCString name
Definition: declinfo.cpp:673
static QCString buildFileName(const char *name)
Definition: mangen.cpp:127
uint length() const
Definition: qcstring.h:195
#define IO_WriteOnly
Definition: qiodevice.h:62
void setDevice(QIODevice *)
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:95
static QCString getSubdir()
Definition: mangen.cpp:67
#define IO_ReadOnly
Definition: qiodevice.h:61
QCString right(uint len) const
Definition: qcstring.cpp:231
#define Config_getBool(val)
Definition: config.cpp:664
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
static QCString baseName
Definition: scanner.cpp:10890
QTextStream & endl(QTextStream &s)
void ManGenerator::startEmphasis ( )
inlinevirtual

Changes the text font to italic. The italic section ends with endEmphasis()

Implements BaseOutputDocInterface.

Definition at line 137 of file mangen.h.

137 { t << "\\fI"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startFile ( const char *  name,
const char *  manName,
const char *  title 
)
virtual

Implements OutputGenerator.

Definition at line 168 of file mangen.cpp.

169 {
170  startPlainFile( buildFileName( manName ) );
171  firstCol=TRUE;
172 }
static QCString buildFileName(const char *name)
Definition: mangen.cpp:127
void startPlainFile(const char *name)
Definition: outputgen.cpp:42
bool firstCol
Definition: mangen.h:265
const bool TRUE
Definition: qglobal.h:371
void ManGenerator::startFontClass ( const char *  clsName)
inlinevirtual

Starts a block with a certain meaning. Used for syntax highlighting, which elements of the same type are rendered using the same 'font class'.

Parameters
clsNameThe category name.

Implements CodeOutputInterface.

Definition at line 235 of file mangen.h.

235 {}
void ManGenerator::startGroupCollaboration ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 211 of file mangen.h.

211 {}
void ManGenerator::startGroupHeader ( int  )
virtual

Implements OutputGenerator.

Definition at line 270 of file mangen.cpp.

271 {
272  if (!firstCol) t << endl;
273  t << ".SH \"";
274  upperCase=TRUE;
275  firstCol=FALSE;
276 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool upperCase
Definition: mangen.h:268
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startHeaderSection ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 100 of file mangen.h.

100 {}
void ManGenerator::startHtmlLink ( const char *  url)
virtual

Starts a (link to an) URL found in the documentation.

Parameters
urlThe URL to link to.

Implements BaseOutputDocInterface.

Definition at line 257 of file mangen.cpp.

258 {
259 }
void ManGenerator::startInclDepGraph ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 209 of file mangen.h.

209 {}
void ManGenerator::startIndent ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 181 of file mangen.h.

181 {}
void ManGenerator::startIndexItem ( const char *  ref,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 231 of file mangen.cpp.

232 {
233 }
void ManGenerator::startIndexKey ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 72 of file mangen.h.

72 {}
void ManGenerator::startIndexList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 70 of file mangen.h.

70 {}
void ManGenerator::startIndexListItem ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 68 of file mangen.h.

68 {}
void ManGenerator::startIndexSection ( IndexSections  )
inlinevirtual

Implements OutputGenerator.

Definition at line 53 of file mangen.h.

53 {}
void ManGenerator::startIndexValue ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 74 of file mangen.h.

74 {}
void ManGenerator::startInlineHeader ( )
virtual

Implements OutputGenerator.

Definition at line 750 of file mangen.cpp.

751 {
752  if (!firstCol)
753  {
754  t << endl << ".PP" << endl << ".in -1c" << endl;
755  }
756  t << ".RI \"\\fB";
757 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void ManGenerator::startInlineMemberDoc ( )
virtual

Implements OutputGenerator.

Definition at line 804 of file mangen.cpp.

805 {
806 }
void ManGenerator::startInlineMemberName ( )
virtual

Implements OutputGenerator.

Definition at line 794 of file mangen.cpp.

795 {
796  t << "\\fI";
797 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startInlineMemberType ( )
virtual

Implements OutputGenerator.

Definition at line 785 of file mangen.cpp.

786 {
787 }
void ManGenerator::startItemList ( )
inlinevirtual

Start of a bullet list: e.g. <ul> in html. startItemListItem() is Used for the bullet items.

Implements BaseOutputDocInterface.

Definition at line 76 of file mangen.h.

76 {}
void ManGenerator::startItemListItem ( )
virtual

Writes a list item for a bullet or enumerated list: e.g. <li> in html

Implements BaseOutputDocInterface.

Definition at line 391 of file mangen.cpp.

392 {
393  if (!firstCol) t << endl;
394  t << ".TP" << endl;
395  firstCol=TRUE;
397  col=0;
398 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startLabels ( )
virtual

Implements OutputGenerator.

Definition at line 816 of file mangen.cpp.

817 {
818 }
void ManGenerator::startMemberDeclaration ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 165 of file mangen.h.

165 {}
void ManGenerator::startMemberDescription ( const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 163 of file mangen.h.

163 { t << "\n.RI \"\\fI"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startMemberDoc ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
bool   
)
virtual

Implements OutputGenerator.

Definition at line 421 of file mangen.cpp.

422 {
423  if (!firstCol) t << endl;
424  t << ".SS \"";
425  firstCol=FALSE;
427 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
QTextStream & endl(QTextStream &s)
void ManGenerator::startMemberDocList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 110 of file mangen.h.

110 {}
void ManGenerator::startMemberDocName ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 225 of file mangen.h.

225 {}
void ManGenerator::startMemberDocPrefixItem ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 223 of file mangen.h.

223 {}
void ManGenerator::startMemberDocSimple ( )
virtual

Implements OutputGenerator.

Definition at line 765 of file mangen.cpp.

766 {
767  if (!firstCol)
768  {
769  t << endl << ".PP" << endl;
770  }
771  t << "\\fB";
773  t << ":\\fP" << endl;
774  t << ".RS 4" << endl;
775 }
void docify(const char *text)
Definition: mangen.cpp:299
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trCompoundMembers()=0
QTextStream & endl(QTextStream &s)
void ManGenerator::startMemberGroup ( )
virtual

Implements OutputGenerator.

Definition at line 603 of file mangen.cpp.

604 {
605  t << "\n.in +1c";
606 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startMemberGroupDocs ( )
virtual

Implements OutputGenerator.

Definition at line 594 of file mangen.cpp.

595 {
596 }
void ManGenerator::startMemberGroupHeader ( bool  )
virtual

Implements OutputGenerator.

Definition at line 583 of file mangen.cpp.

584 {
585  t << "\n.PP\n.RI \"\\fB";
586 }
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startMemberHeader ( const char *  )
virtual

Implements OutputGenerator.

Definition at line 286 of file mangen.cpp.

287 {
288  if (!firstCol) t << endl;
289  t << ".SS \"";
290 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void ManGenerator::startMemberItem ( const char *  ,
int  ,
const char *   
)
virtual

Implements OutputGenerator.

Definition at line 555 of file mangen.cpp.

556 {
557  if (firstCol && !insideTabbing) t << ".in +1c\n";
558  t << "\n.ti -1c\n.RI \"";
559  firstCol=FALSE;
560 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
bool insideTabbing
Definition: mangen.h:269
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startMemberList ( )
virtual

Implements OutputGenerator.

Definition at line 567 of file mangen.cpp.

568 {
569  if (!insideTabbing)
570  {
571  t << "\n.in +1c"; firstCol=FALSE;
572  }
573 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
bool insideTabbing
Definition: mangen.h:269
FTextStream t
Definition: outputgen.h:486
void ManGenerator::startMemberSections ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 98 of file mangen.h.

98 {}
void ManGenerator::startMemberSubtitle ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 105 of file mangen.h.

105 {}
void ManGenerator::startMemberTemplateParams ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 120 of file mangen.h.

120 {}
void ManGenerator::startPageRef ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 186 of file mangen.h.

186 {}
void ManGenerator::startParagraph ( )
virtual

Starts a new paragraph

Starts a new paragraph

Implements BaseOutputDocInterface.

Definition at line 211 of file mangen.cpp.

212 {
213  if (!paragraph)
214  {
215  if (!firstCol) t << endl;
216  t << ".PP" << endl;
217  firstCol=TRUE;
218  }
219  paragraph=TRUE;
220 }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startParameterList ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 231 of file mangen.h.

231 {}
void ManGenerator::startParameterName ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 229 of file mangen.h.

229 {}
void ManGenerator::startParameterType ( bool  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 227 of file mangen.h.

227 {}
void ManGenerator::startParamList ( ParamListTypes  ,
const char *  title 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 672 of file mangen.cpp.

673 {
674  if (!firstCol)
675  { t << endl << ".PP" << endl;
677  col=0;
678  }
680  startBold();
681  docify(title);
682  endBold();
683  paragraph=TRUE;
684 }
void endBold()
Definition: mangen.h:140
const bool FALSE
Definition: qglobal.h:370
void docify(const char *text)
Definition: mangen.cpp:299
void startBold()
Definition: mangen.h:139
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startProjectNumber ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 56 of file mangen.h.

56 {}
void ManGenerator::startQuickIndices ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 188 of file mangen.h.

188 {}
void ManGenerator::startSection ( const char *  ,
const char *  ,
SectionInfo::SectionType  type 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 614 of file mangen.cpp.

615 {
616  if( !inHeader )
617  {
618  switch(type)
619  {
625  default: ASSERT(0); break;
626  }
627  }
628 }
const bool FALSE
Definition: qglobal.h:370
void startGroupHeader(int)
Definition: mangen.cpp:270
bool inHeader
Definition: mangen.h:270
void startMemberHeader(const char *)
Definition: mangen.cpp:286
#define ASSERT(x)
Definition: qglobal.h:590
void ManGenerator::startSimpleSect ( SectionTypes  ,
const char *  ,
const char *  ,
const char *  title 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 653 of file mangen.cpp.

655 {
656  if (!firstCol)
657  { t << endl << ".PP" << endl;
659  col=0;
660  }
662  startBold();
663  docify(title);
664  endBold();
665  paragraph=TRUE;
666 }
void endBold()
Definition: mangen.h:140
const bool FALSE
Definition: qglobal.h:370
void docify(const char *text)
Definition: mangen.cpp:299
void startBold()
Definition: mangen.h:139
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::startSmall ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 161 of file mangen.h.

161 {}
void ManGenerator::startSubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 470 of file mangen.cpp.

471 {
472  if (!firstCol) t << endl;
473  t << ".SS \"";
474  firstCol=FALSE;
476 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
QTextStream & endl(QTextStream &s)
void ManGenerator::startSubsubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 484 of file mangen.cpp.

485 {
486  if (!firstCol) t << endl;
487  t << "\n.SS \"";
488  firstCol=FALSE;
490 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
QTextStream & endl(QTextStream &s)
void ManGenerator::startTextBlock ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 219 of file mangen.h.

219 {}
void ManGenerator::startTextLink ( const char *  ,
const char *   
)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 90 of file mangen.h.

90 {}
void ManGenerator::startTitle ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 378 of file mangen.cpp.

379 {
380  if (!firstCol) t << endl;
381  t << ".SH \"";
382  firstCol=FALSE;
384 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
QTextStream & endl(QTextStream &s)
void ManGenerator::startTitleHead ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 59 of file mangen.h.

59 {}
void ManGenerator::startTypewriter ( )
inlinevirtual

Changes the text font to fixed size. The section ends with endTypewriter()

Implements BaseOutputDocInterface.

Definition at line 94 of file mangen.h.

94 { t << "\\fC"; firstCol=FALSE; }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
void ManGenerator::writeAnchor ( const char *  ,
const char *   
)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 131 of file mangen.h.

131 {}
void ManGenerator::writeChar ( char  c)
virtual

Writes a single ASCII character to the output. Converts characters that have a special meaning.

Implements BaseOutputDocInterface.

Definition at line 353 of file mangen.cpp.

354 {
355  firstCol=(c=='\n');
356  if (firstCol) col=0; else col++;
357  switch (c)
358  {
359  case '\\': t << "\\\\"; break;
360  case '\"': c = '\''; // no break!
361  default: t << c; break;
362  }
363  //printf("%c",c);fflush(stdout);
365 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
void ManGenerator::writeCodeAnchor ( const char *  name)
inlinevirtual

Write an anchor to a source listing.

Parameters
nameThe name of the anchor.

Implements CodeOutputInterface.

Definition at line 260 of file mangen.h.

260 {}
void ManGenerator::writeCodeLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name,
const char *  tooltip 
)
virtual

Writes a link to an object in a code fragment.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.
tooltipThe tooltip to display when the mouse is on the link.

Implements CodeOutputInterface.

Definition at line 250 of file mangen.cpp.

253 {
254  docify(name);
255 }
static QCString name
Definition: declinfo.cpp:673
void docify(const char *text)
Definition: mangen.cpp:299
void ManGenerator::writeDoc ( DocNode n,
Definition ctx,
MemberDef  
)
virtual

Implements OutputGenerator.

Definition at line 690 of file mangen.cpp.

691 {
692  ManDocVisitor *visitor = new ManDocVisitor(t,*this,ctx?ctx->getDefFileExtension():QCString(""));
693  n->accept(visitor);
694  delete visitor;
695  firstCol=FALSE;
696  paragraph = FALSE;
697 }
const bool FALSE
Definition: qglobal.h:370
QCString getDefFileExtension() const
Concrete visitor implementation for LaTeX output.
Definition: mandocvisitor.h:30
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
virtual void accept(DocVisitor *v)=0
void ManGenerator::writeEndAnnoItem ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 154 of file mangen.h.

154 { t << endl; firstCol=TRUE; }
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::writeFooter ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 49 of file mangen.h.

49 {}
void ManGenerator::writeGraphicalHierarchy ( const DotGfxHierarchyTable )
inlinevirtual

Implements OutputGenerator.

Definition at line 217 of file mangen.h.

217 {}
void ManGenerator::writeInheritedSectionTitle ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 167 of file mangen.h.

168  {}
void ManGenerator::writeLabel ( const char *  l,
bool  isLast 
)
virtual

Implements OutputGenerator.

Definition at line 820 of file mangen.cpp.

821 {
822  t << "\\fC [" << l << "]\\fP";
823  if (!isLast) t << ", ";
824 }
static QStrList * l
Definition: config.cpp:1044
FTextStream t
Definition: outputgen.h:486
void ManGenerator::writeLatexSpacing ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 151 of file mangen.h.

151 {}
void ManGenerator::writeLineNumber ( const char *  ref,
const char *  file,
const char *  anchor,
int  lineNumber 
)
inlinevirtual

Writes the line number of a source listing

Parameters
refExternal reference (when imported from a tag file)
fileThe file part of the URL pointing to the docs.
anchorThe anchor part of the URL pointing to the docs.
lineNumberThe line number to write

Implements CodeOutputInterface.

Definition at line 134 of file mangen.h.

134 { t << l << " "; }
static QStrList * l
Definition: config.cpp:1044
FTextStream t
Definition: outputgen.h:486
void ManGenerator::writeLogo ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 192 of file mangen.h.

192 {}
void ManGenerator::writeNavigationPath ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 191 of file mangen.h.

191 {}
void ManGenerator::writeNonBreakableSpace ( int  n)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 197 of file mangen.h.

197 { int i; for (i=0;i<n;i++) t << " "; }
std::void_t< T > n
FTextStream t
Definition: outputgen.h:486
void ManGenerator::writeObjectLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name 
)
virtual

Writes a link to an object in the documentation.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.

Implements BaseOutputDocInterface.

Definition at line 244 of file mangen.cpp.

246 {
247  startBold(); docify(name); endBold();
248 }
static QCString name
Definition: declinfo.cpp:673
void endBold()
Definition: mangen.h:140
void docify(const char *text)
Definition: mangen.cpp:299
void startBold()
Definition: mangen.h:139
void ManGenerator::writePageLink ( const char *  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 55 of file mangen.h.

55 {}
void ManGenerator::writeQuickLinks ( bool  ,
HighlightedItem  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 193 of file mangen.h.

193 {}
void ManGenerator::writeRuler ( )
inlinevirtual

Writes a horizontal ruler to the output

Implements BaseOutputDocInterface.

Definition at line 130 of file mangen.h.

130 {}
void ManGenerator::writeSearchInfo ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 48 of file mangen.h.

48 {}
void ManGenerator::writeSplitBar ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 190 of file mangen.h.

190 {}
void ManGenerator::writeStartAnnoItem ( const char *  type,
const char *  file,
const char *  path,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 239 of file mangen.cpp.

241 {
242 }
void ManGenerator::writeString ( const char *  text)
virtual

Writes an ASCII string to the output, without converting special characters.

Implements BaseOutputDocInterface.

Definition at line 226 of file mangen.cpp.

227 {
228  docify(text);
229 }
void docify(const char *text)
Definition: mangen.cpp:299
void ManGenerator::writeStyleInfo ( int  )
inlinevirtual

Implements OutputGenerator.

Definition at line 58 of file mangen.h.

58 {}
void ManGenerator::writeSummaryLink ( const char *  ,
const char *  ,
const char *  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 194 of file mangen.h.

194 {}
void ManGenerator::writeSynopsis ( )
virtual

Implements OutputGenerator.

Definition at line 497 of file mangen.cpp.

498 {
499  if (!firstCol) t << endl;
500  t << ".SH SYNOPSIS\n.br\n.PP\n";
501  firstCol=TRUE;
503 }
const bool FALSE
Definition: qglobal.h:370
bool firstCol
Definition: mangen.h:265
FTextStream t
Definition: outputgen.h:486
bool paragraph
Definition: mangen.h:266
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void ManGenerator::writeTooltip ( const char *  id,
const DocLinkInfo docInfo,
const char *  decl,
const char *  desc,
const SourceLinkInfo defInfo,
const SourceLinkInfo declInfo 
)
inlinevirtual

Writes a tool tip definition

Parameters
idunique identifier for the tooltip
docInfoInfo about the symbol's documentation.
declfull declaration of the symbol (for functions)
descbrief description for the symbol
defInfoInfo about the symbol's definition in the source code
declInfoInfo about the symbol's declaration in the source code

Implements CodeOutputInterface.

Definition at line 87 of file mangen.h.

89  {}

Member Data Documentation

int ManGenerator::col
private

Definition at line 267 of file mangen.h.

bool ManGenerator::firstCol
private

Definition at line 265 of file mangen.h.

bool ManGenerator::inHeader
private

Definition at line 270 of file mangen.h.

bool ManGenerator::insideTabbing
private

Definition at line 269 of file mangen.h.

bool ManGenerator::paragraph
private

Definition at line 266 of file mangen.h.

bool ManGenerator::upperCase
private

Definition at line 268 of file mangen.h.


The documentation for this class was generated from the following files: