Doxygen
Loading...
Searching...
No Matches
ManGenerator Class Reference

Generator for Man page output. More...

#include <src/mangen.h>

+ Inheritance diagram for ManGenerator:
+ Collaboration diagram for ManGenerator:

Public Member Functions

 ManGenerator ()
 
 ManGenerator (const ManGenerator &)
 
ManGeneratoroperator= (const ManGenerator &)
 
 ManGenerator (ManGenerator &&)=delete
 
ManGeneratoroperator= (ManGenerator &&)=delete
 
 ~ManGenerator ()
 
void clearBuffer ()
 
void newParagraph ()
 
OutputType type () const override
 
std::unique_ptr< OutputGenIntfclone () override
 
void addCodeGen (OutputCodeList &list) override
 
void cleanup () override
 
void writeDoc (const IDocNodeAST *ast, const Definition *, const MemberDef *, int) override
 
void startFile (const QCString &name, const QCString &manName, const QCString &title, int id, int hierarchyLevel) override
 
void endFile () override
 
void writeSearchInfo () override
 
void writeFooter (const QCString &) override
 
void startPageDoc (const QCString &) override
 
void endPageDoc () override
 
void startIndexSection (IndexSection) override
 
void endIndexSection (IndexSection) override
 
void writePageLink (const QCString &, bool) override
 
void startProjectNumber () override
 
void endProjectNumber () override
 
void writeStyleInfo (int) override
 
void startTitleHead (const QCString &) override
 
void endTitleHead (const QCString &, const QCString &) override
 
void startParagraph (const QCString &classDef) override
 
void endParagraph () override
 
void writeString (const QCString &text) override
 
void startIndexListItem () override
 
void endIndexListItem () override
 
void startIndexList () override
 
void endIndexList () override
 
void startIndexKey () override
 
void endIndexKey () override
 
void startIndexValue (bool) override
 
void endIndexValue (const QCString &, bool) override
 
void startItemList () override
 
void endItemList () override
 
void startIndexItem (const QCString &ref, const QCString &file) override
 
void endIndexItem (const QCString &ref, const QCString &file) override
 
void docify (const QCString &text) override
 
void writeObjectLink (const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name) override
 
void startTextLink (const QCString &, const QCString &) override
 
void endTextLink () override
 
void startTypewriter () override
 
void endTypewriter () override
 
void startGroupHeader (int) override
 
void endGroupHeader (int) override
 
void startMemberSections () override
 
void endMemberSections () override
 
void startHeaderSection () override
 
void endHeaderSection () override
 
void startMemberHeader (const QCString &, int) override
 
void endMemberHeader () override
 
void insertMemberAlign (bool) override
 
void insertMemberAlignLeft (MemberItemType, bool) override
 
void startMemberSubtitle () override
 
void endMemberSubtitle () override
 
void startItemListItem () override
 
void endItemListItem () override
 
void startMemberDocList () override
 
void endMemberDocList () override
 
void startMemberList () override
 
void endMemberList () override
 
void startInlineHeader () override
 
void endInlineHeader () override
 
void startAnonTypeScope (int) override
 
void endAnonTypeScope (int) override
 
void startMemberItem (const QCString &, MemberItemType, const QCString &) override
 
void endMemberItem (MemberItemType) override
 
void startMemberTemplateParams () override
 
void endMemberTemplateParams (const QCString &, const QCString &) override
 
void startCompoundTemplateParams () override
 
void endCompoundTemplateParams () override
 
void startMemberGroupHeader (bool) override
 
void endMemberGroupHeader () override
 
void startMemberGroupDocs () override
 
void endMemberGroupDocs () override
 
void startMemberGroup () override
 
void endMemberGroup (bool) override
 
void writeRuler () override
 
void writeAnchor (const QCString &, const QCString &) override
 
void startEmphasis () override
 
void endEmphasis () override
 
void startBold () override
 
void endBold () override
 
void startBoldEmphasis ()
 
void endBoldEmphasis ()
 
void lineBreak (const QCString &) override
 
void writeChar (char c) override
 
void startMemberDoc (const QCString &, const QCString &, const QCString &, const QCString &, int, int, bool) override
 
void endMemberDoc (bool) override
 
void startDoxyAnchor (const QCString &, const QCString &, const QCString &, const QCString &, const QCString &) override
 
void endDoxyAnchor (const QCString &, const QCString &) override
 
void addLabel (const QCString &, const QCString &) override
 
void writeLatexSpacing () override
 
void writeStartAnnoItem (const QCString &type, const QCString &file, const QCString &path, const QCString &name) override
 
void startCenter () override
 
void endCenter () override
 
void startSmall () override
 
void endSmall () override
 
void startMemberDescription (const QCString &, const QCString &, bool) override
 
void endMemberDescription () override
 
void startMemberDeclaration () override
 
void endMemberDeclaration (const QCString &, const QCString &) override
 
void writeInheritedSectionTitle (const QCString &, const QCString &, const QCString &, const QCString &, const QCString &, const QCString &) override
 
void startExamples () override
 
void endExamples () override
 
void startDescForItem () override
 
void endDescForItem () override
 
void startSection (const QCString &, const QCString &, SectionType) override
 
void endSection (const QCString &, SectionType) override
 
void addIndexItem (const QCString &, const QCString &) override
 
void startIndent () override
 
void endIndent () override
 
void writeSynopsis () override
 
void startClassDiagram () override
 
void endClassDiagram (const ClassDiagram &, const QCString &, const QCString &) override
 
void startPageRef () override
 
void endPageRef (const QCString &, const QCString &) override
 
void startQuickIndices () override
 
void endQuickIndices () override
 
void writeSplitBar (const QCString &) override
 
void writeNavigationPath (const QCString &) override
 
void writeLogo () override
 
void writeQuickLinks (HighlightedItem, const QCString &) override
 
void writeSummaryLink (const QCString &, const QCString &, const QCString &, bool) override
 
void startContents () override
 
void endContents () override
 
void writeNonBreakableSpace (int n) override
 
void startDescTable (const QCString &title, const bool hasInits) override
 
void endDescTable () override
 
void startDescTableTitle () override
 
void endDescTableTitle () override
 
void startDescTableRow () override
 
void endDescTableRow () override
 
void startDescTableInit () override
 
void endDescTableInit () override
 
void startDescTableData () override
 
void endDescTableData () override
 
void startDotGraph () override
 
void endDotGraph (DotClassGraph &) override
 
void startInclDepGraph () override
 
void endInclDepGraph (DotInclDepGraph &) override
 
void startGroupCollaboration () override
 
void endGroupCollaboration (DotGroupCollaboration &) override
 
void startCallGraph () override
 
void endCallGraph (DotCallGraph &) override
 
void startDirDepGraph () override
 
void endDirDepGraph (DotDirDeps &) override
 
void writeGraphicalHierarchy (DotGfxHierarchyTable &) override
 
void startTextBlock (bool) override
 
void endTextBlock (bool) override
 
void lastIndexPage () override
 
void startMemberDocPrefixItem () override
 
void endMemberDocPrefixItem () override
 
void startMemberDocName (bool) override
 
void endMemberDocName () override
 
void startParameterType (bool, const QCString &) override
 
void endParameterType () override
 
void startParameterName (bool) override
 
void endParameterName () override
 
void startParameterExtra () override
 
void endParameterExtra (bool, bool, bool) override
 
void startParameterDefVal (const char *s) override
 
void endParameterDefVal () override
 
void startParameterList (bool) override
 
void endParameterList () override
 
void exceptionEntry (const QCString &, bool) override
 
void startConstraintList (const QCString &) override
 
void startConstraintParam () override
 
void endConstraintParam () override
 
void startConstraintType () override
 
void endConstraintType () override
 
void startConstraintDocs () override
 
void endConstraintDocs () override
 
void endConstraintList () override
 
void startMemberDocSimple (bool) override
 
void endMemberDocSimple (bool) override
 
void startInlineMemberType () override
 
void endInlineMemberType () override
 
void startInlineMemberName () override
 
void endInlineMemberName () override
 
void startInlineMemberDoc () override
 
void endInlineMemberDoc () override
 
void startLabels () override
 
void writeLabel (const QCString &l, bool isLast) override
 
void endLabels () override
 
void writeLocalToc (const SectionRefs &, const LocalToc &) override
 
void startPlainFile (const QCString &name) override
 
void endPlainFile () override
 
- Public Member Functions inherited from OutputGenerator
 OutputGenerator ()
 
 OutputGenerator (const QCString &dir)
 
virtual ~OutputGenerator ()=default
 
QCString dir () const
 
QCString fileName () const
 
void startPlainFile (const QCString &name)
 
void endPlainFile ()
 
- Public Member Functions inherited from OutputGenIntf

Static Public Member Functions

static void init ()
 

Private Member Functions

void startTitle ()
 
void endTitle ()
 

Private Attributes

bool m_firstCol = true
 
int m_col = 0
 
bool m_paragraph = true
 
bool m_upperCase = false
 
bool m_insideTabbing = false
 
bool m_inHeader = false
 
std::unique_ptr< OutputCodeListm_codeList
 
ManCodeGeneratorm_codeGen
 

Additional Inherited Members

- Public Types inherited from OutputGenerator
enum class  ParamListTypes { Param , RetVal , Exception }
 
enum class  MemberItemType { Normal , AnonymousStart , AnonymousEnd , Templated }
 
- Protected Attributes inherited from OutputGenerator
TextStream m_t
 
QCString m_dir
 

Detailed Description

Generator for Man page output.

Definition at line 68 of file mangen.h.

Constructor & Destructor Documentation

◆ ManGenerator() [1/3]

ManGenerator::ManGenerator ( )

Definition at line 227 of file mangen.cpp.

228 : OutputGenerator(Config_getString(MAN_OUTPUT)+"/"+getSubdir())
229 , m_codeList(std::make_unique<OutputCodeList>())
230{
231 m_codeGen = m_codeList->add<ManCodeGenerator>(&m_t);
232}
ManCodeGenerator * m_codeGen
Definition mangen.h:299
std::unique_ptr< OutputCodeList > m_codeList
Definition mangen.h:298
TextStream m_t
Definition outputgen.h:116
#define Config_getString(name)
Definition config.h:32
static QCString getSubdir()
Definition mangen.cpp:69

References Config_getString, getSubdir(), m_codeGen, m_codeList, OutputGenerator::m_t, and OutputGenerator::OutputGenerator().

Referenced by ManGenerator(), ManGenerator(), operator=(), and operator=().

◆ ManGenerator() [2/3]

ManGenerator::ManGenerator ( const ManGenerator & og)

Definition at line 234 of file mangen.cpp.

234 : OutputGenerator(og.m_dir), OutputGenIntf()
235{
236 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
237 m_codeGen = m_codeList->get<ManCodeGenerator>(OutputType::Man);
238 m_codeGen->setTextStream(&m_t);
240 m_col = og.m_col;
245}
bool m_paragraph
Definition mangen.h:294
bool m_inHeader
Definition mangen.h:297
bool m_firstCol
Definition mangen.h:292
bool m_insideTabbing
Definition mangen.h:296
bool m_upperCase
Definition mangen.h:295
QCString m_dir
Definition outputgen.h:117

References m_codeGen, m_codeList, m_col, OutputGenerator::m_dir, m_firstCol, m_inHeader, m_insideTabbing, m_paragraph, OutputGenerator::m_t, m_upperCase, Man, ManGenerator(), and OutputGenerator::OutputGenerator().

◆ ManGenerator() [3/3]

ManGenerator::ManGenerator ( ManGenerator && )
delete

References ManGenerator().

◆ ~ManGenerator()

ManGenerator::~ManGenerator ( )
default

Member Function Documentation

◆ addCodeGen()

void ManGenerator::addCodeGen ( OutputCodeList & list)
overridevirtual

Implements OutputGenIntf.

Definition at line 267 of file mangen.cpp.

268{
270}
void add(OutputCodeIntfPtr &&p)
Definition outputlist.h:194
OutputCodeDefer< ManCodeGenerator > ManCodeGeneratorDefer
Definition outputlist.h:104

References OutputCodeList::add(), and m_codeGen.

◆ addIndexItem()

void ManGenerator::addIndexItem ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 199 of file mangen.h.

199{}

◆ addLabel()

void ManGenerator::addLabel ( const QCString & ,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 563 of file mangen.cpp.

564{
565}

◆ cleanup()

void ManGenerator::cleanup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 289 of file mangen.cpp.

290{
291 QCString dname = Config_getString(MAN_OUTPUT);
292 Dir d(dname.str());
293 clearSubDirs(d);
294}
const std::string & str() const
Definition qcstring.h:537
void clearSubDirs(const Dir &d)
Definition util.cpp:4021

References clearSubDirs(), Config_getString, and QCString::str().

◆ clearBuffer()

void ManGenerator::clearBuffer ( )

◆ clone()

std::unique_ptr< OutputGenIntf > ManGenerator::clone ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 85 of file mangen.h.

85{ return std::make_unique<ManGenerator>(*this); }

◆ docify()

void ManGenerator::docify ( const QCString & text)
overridevirtual

Implements OutputGenIntf.

Definition at line 459 of file mangen.cpp.

460{
461 if (!str.isEmpty())
462 {
463 const char *p=str.data();
464 char c=0;
465 while ((c=*p++))
466 {
467 switch(c)
468 {
469 case '-': m_t << "\\-"; break; // see bug747780
470 case '.': m_t << "\\&."; break; // see bug652277
471 case '\\': m_t << "\\\\"; m_col++; break;
472 case '\n': m_t << "\n"; m_col=0; break;
473 case '\"': c = '\''; // no break!
474 default: m_t << c; m_col++; break;
475 }
476 }
477 m_firstCol=(c=='\n');
478 //printf("%s",str);fflush(stdout);
479 }
481}
#define FALSE
Definition qcstring.h:34

References QCString::data(), FALSE, QCString::isEmpty(), m_col, m_firstCol, m_paragraph, and OutputGenerator::m_t.

Referenced by startConstraintList(), startDescTable(), startExamples(), startMemberDocSimple(), startParameterDefVal(), writeObjectLink(), and writeString().

◆ endAnonTypeScope()

void ManGenerator::endAnonTypeScope ( int indentLevel)
overridevirtual

Implements OutputGenIntf.

Definition at line 614 of file mangen.cpp.

615{
616 if (indentLevel==0)
617 {
619 }
620}

References FALSE, and m_insideTabbing.

◆ endBold()

void ManGenerator::endBold ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 169 of file mangen.h.

169{ m_t << "\\fP"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by startConstraintList(), startDescTable(), startExamples(), and writeObjectLink().

◆ endBoldEmphasis()

void ManGenerator::endBoldEmphasis ( )
inline

Definition at line 171 of file mangen.h.

171{ m_t << "\\fP"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by endDescTableTitle().

◆ endCallGraph()

void ManGenerator::endCallGraph ( DotCallGraph & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 236 of file mangen.h.

236{}

◆ endCenter()

void ManGenerator::endCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 184 of file mangen.h.

184{}

◆ endClassDiagram()

void ManGenerator::endClassDiagram ( const ClassDiagram & ,
const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 204 of file mangen.h.

204{}

◆ endCompoundTemplateParams()

void ManGenerator::endCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 580 of file mangen.cpp.

581{
582 m_t << "\"";
583}

References OutputGenerator::m_t.

◆ endConstraintDocs()

void ManGenerator::endConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 816 of file mangen.cpp.

817{
818 m_t << "\n"; m_firstCol=TRUE;
819}
#define TRUE
Definition qcstring.h:37

References m_firstCol, OutputGenerator::m_t, and TRUE.

◆ endConstraintList()

void ManGenerator::endConstraintList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 821 of file mangen.cpp.

822{
823}

◆ endConstraintParam()

void ManGenerator::endConstraintParam ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 795 of file mangen.cpp.

796{
797 endEmphasis();
799 m_t << " : ";
800}
void endItemListItem() override
Definition mangen.cpp:519
void endEmphasis() override
Definition mangen.h:167

References endEmphasis(), endItemListItem(), and OutputGenerator::m_t.

◆ endConstraintType()

void ManGenerator::endConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 807 of file mangen.cpp.

808{
809 endEmphasis();
810}

References endEmphasis().

◆ endContents()

void ManGenerator::endContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 215 of file mangen.h.

215{}

◆ endDescForItem()

void ManGenerator::endDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 602 of file mangen.cpp.

603{
604}

Referenced by endDescTable().

◆ endDescTable()

void ManGenerator::endDescTable ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 758 of file mangen.cpp.

759{
761}
void endDescForItem() override
Definition mangen.cpp:602

References endDescForItem().

◆ endDescTableData()

void ManGenerator::endDescTableData ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 227 of file mangen.h.

227{}

◆ endDescTableInit()

void ManGenerator::endDescTableInit ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 225 of file mangen.h.

225{};

◆ endDescTableRow()

void ManGenerator::endDescTableRow ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 223 of file mangen.h.

223{}

◆ endDescTableTitle()

void ManGenerator::endDescTableTitle ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 221 of file mangen.h.

221{ endBoldEmphasis(); }
void endBoldEmphasis()
Definition mangen.h:171

References endBoldEmphasis().

◆ endDirDepGraph()

void ManGenerator::endDirDepGraph ( DotDirDeps & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 238 of file mangen.h.

238{}

◆ endDotGraph()

void ManGenerator::endDotGraph ( DotClassGraph & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 230 of file mangen.h.

230{}

◆ endDoxyAnchor()

void ManGenerator::endDoxyAnchor ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 177 of file mangen.h.

177{}

◆ endEmphasis()

void ManGenerator::endEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 167 of file mangen.h.

167{ m_t << "\\fP"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by endConstraintParam(), and endConstraintType().

◆ endExamples()

void ManGenerator::endExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 739 of file mangen.cpp.

740{
741}

◆ endFile()

void ManGenerator::endFile ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 343 of file mangen.cpp.

344{
345 m_t << "\n";
346 endPlainFile();
347}
void endPlainFile() override
Definition mangen.h:286

References endPlainFile(), and OutputGenerator::m_t.

◆ endGroupCollaboration()

void ManGenerator::endGroupCollaboration ( DotGroupCollaboration & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 234 of file mangen.h.

234{}

◆ endGroupHeader()

void ManGenerator::endGroupHeader ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 438 of file mangen.cpp.

439{
440 m_t << "\"\n.PP \n";
444}

References FALSE, m_firstCol, m_paragraph, OutputGenerator::m_t, m_upperCase, and TRUE.

Referenced by endSection().

◆ endHeaderSection()

void ManGenerator::endHeaderSection ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 913 of file mangen.cpp.

914{
915}

◆ endInclDepGraph()

void ManGenerator::endInclDepGraph ( DotInclDepGraph & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 232 of file mangen.h.

232{}

◆ endIndent()

void ManGenerator::endIndent ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 201 of file mangen.h.

201{}

◆ endIndexItem()

void ManGenerator::endIndexItem ( const QCString & ref,
const QCString & file )
overridevirtual

Implements OutputGenIntf.

Definition at line 415 of file mangen.cpp.

416{
417}

◆ endIndexKey()

void ManGenerator::endIndexKey ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 114 of file mangen.h.

114{}

◆ endIndexList()

void ManGenerator::endIndexList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 112 of file mangen.h.

112{ newParagraph(); }
void newParagraph()
Definition mangen.cpp:380

References newParagraph().

◆ endIndexListItem()

void ManGenerator::endIndexListItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 110 of file mangen.h.

110{}

◆ endIndexSection()

void ManGenerator::endIndexSection ( IndexSection )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 98 of file mangen.h.

98{}

◆ endIndexValue()

void ManGenerator::endIndexValue ( const QCString & ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 116 of file mangen.h.

116{}

◆ endInlineHeader()

void ManGenerator::endInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 835 of file mangen.cpp.

836{
837 m_t << "\\fP\"\n" << ".in +1c\n";
839}

References FALSE, m_firstCol, and OutputGenerator::m_t.

◆ endInlineMemberDoc()

void ManGenerator::endInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 891 of file mangen.cpp.

892{
893 if (!m_firstCol) m_t << "\n";
894 m_t << ".br\n";
895 m_t << ".PP\n";
897}

References m_firstCol, OutputGenerator::m_t, and TRUE.

◆ endInlineMemberName()

void ManGenerator::endInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 882 of file mangen.cpp.

883{
884 m_t << "\\fP ";
885}

References OutputGenerator::m_t.

◆ endInlineMemberType()

void ManGenerator::endInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 872 of file mangen.cpp.

873{
874 m_t << " ";
875}

References OutputGenerator::m_t.

◆ endItemList()

void ManGenerator::endItemList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 118 of file mangen.h.

118{ newParagraph(); }

References newParagraph().

◆ endItemListItem()

void ManGenerator::endItemListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 519 of file mangen.cpp.

520{
521}

Referenced by endConstraintParam(), and startDescTableTitle().

◆ endLabels()

void ManGenerator::endLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 909 of file mangen.cpp.

910{
911}

◆ endMemberDeclaration()

void ManGenerator::endMemberDeclaration ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 190 of file mangen.h.

190{}

◆ endMemberDescription()

void ManGenerator::endMemberDescription ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 188 of file mangen.h.

188{ m_t << "\""; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

◆ endMemberDoc()

void ManGenerator::endMemberDoc ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 567 of file mangen.cpp.

568{
569 m_t << "\"\n";
570}

References OutputGenerator::m_t.

◆ endMemberDocList()

void ManGenerator::endMemberDocList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 143 of file mangen.h.

143{}

◆ endMemberDocName()

void ManGenerator::endMemberDocName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 248 of file mangen.h.

248{}

◆ endMemberDocPrefixItem()

void ManGenerator::endMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 246 of file mangen.h.

246{}

◆ endMemberDocSimple()

void ManGenerator::endMemberDocSimple ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 860 of file mangen.cpp.

861{
862 if (!m_firstCol) m_t << "\n";
863 m_t << ".RE\n";
864 m_t << ".PP\n";
866}

References m_firstCol, OutputGenerator::m_t, and TRUE.

◆ endMemberGroup()

void ManGenerator::endMemberGroup ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 676 of file mangen.cpp.

677{
678 m_t << "\n.in -1c";
680}

References FALSE, m_firstCol, and OutputGenerator::m_t.

◆ endMemberGroupDocs()

void ManGenerator::endMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 666 of file mangen.cpp.

667{
668 m_t << "\n.PP";
669}

References OutputGenerator::m_t.

◆ endMemberGroupHeader()

void ManGenerator::endMemberGroupHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 656 of file mangen.cpp.

657{
658 m_t << "\\fP\"\n.br\n";
660}

References m_firstCol, OutputGenerator::m_t, and TRUE.

◆ endMemberHeader()

void ManGenerator::endMemberHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 452 of file mangen.cpp.

453{
454 m_t << "\"\n";
457}

References FALSE, m_firstCol, m_paragraph, OutputGenerator::m_t, and TRUE.

Referenced by endSection().

◆ endMemberItem()

void ManGenerator::endMemberItem ( MemberItemType )
overridevirtual

Implements OutputGenIntf.

Definition at line 630 of file mangen.cpp.

631{
632 m_t << "\"\n.br";
633}

References OutputGenerator::m_t.

◆ endMemberList()

void ManGenerator::endMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 643 of file mangen.cpp.

644{
645 if (!m_insideTabbing)
646 {
647 m_t << "\n.in -1c"; m_firstCol=FALSE;
648 }
649}

References FALSE, m_firstCol, m_insideTabbing, and OutputGenerator::m_t.

◆ endMemberSections()

void ManGenerator::endMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 131 of file mangen.h.

131{}

◆ endMemberSubtitle()

void ManGenerator::endMemberSubtitle ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 139 of file mangen.h.

139{}

◆ endMemberTemplateParams()

void ManGenerator::endMemberTemplateParams ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 153 of file mangen.h.

153{}

◆ endPageDoc()

void ManGenerator::endPageDoc ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 96 of file mangen.h.

96{}

◆ endPageRef()

void ManGenerator::endPageRef ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 206 of file mangen.h.

206{}

◆ endParagraph()

void ManGenerator::endParagraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 402 of file mangen.cpp.

403{
404}

◆ endParameterDefVal()

void ManGenerator::endParameterDefVal ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 256 of file mangen.h.

256{ endTypewriter(); }
void endTypewriter() override
Definition mangen.h:127

References endTypewriter().

◆ endParameterExtra()

void ManGenerator::endParameterExtra ( bool last,
bool ,
bool closeBracket )
overridevirtual

Implements OutputGenIntf.

Definition at line 932 of file mangen.cpp.

933{
934 if (last && closeBracket)
935 {
936 m_t << ")";
937 }
938}

References OutputGenerator::m_t.

◆ endParameterList()

void ManGenerator::endParameterList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 258 of file mangen.h.

258{}

◆ endParameterName()

void ManGenerator::endParameterName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 252 of file mangen.h.

252{}

◆ endParameterType()

void ManGenerator::endParameterType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 939 of file mangen.cpp.

940{
941 m_t << " ";
942}

References OutputGenerator::m_t.

◆ endPlainFile()

void ManGenerator::endPlainFile ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 286 of file mangen.h.

References OutputGenerator::endPlainFile().

Referenced by endFile().

◆ endProjectNumber()

void ManGenerator::endProjectNumber ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 101 of file mangen.h.

101{}

◆ endQuickIndices()

void ManGenerator::endQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 208 of file mangen.h.

208{}

◆ endSection()

void ManGenerator::endSection ( const QCString & ,
SectionType type )
overridevirtual

Implements OutputGenIntf.

Definition at line 700 of file mangen.cpp.

701{
702 if( !m_inHeader )
703 {
704 switch(type.level())
705 {
706 case SectionType::Page: // fall through
707 case SectionType::Section: endGroupHeader(0); break;
708 case SectionType::Subsection: // fall through
709 case SectionType::Subsubsection: // fall through
710 case SectionType::Paragraph: // fall through
711 case SectionType::Subparagraph: // fall through
713 default: ASSERT(0); break;
714 }
715 }
716 else
717 {
718 m_t << "\n.PP\n";
722 }
723}
OutputType type() const override
Definition mangen.h:84
void endGroupHeader(int) override
Definition mangen.cpp:438
void endMemberHeader() override
Definition mangen.cpp:452
static constexpr int Section
Definition section.h:33
static constexpr int Subsection
Definition section.h:34
static constexpr int Subsubsection
Definition section.h:35
static constexpr int Page
Definition section.h:31
static constexpr int Paragraph
Definition section.h:36
static constexpr int Subsubparagraph
Definition section.h:38
static constexpr int Subparagraph
Definition section.h:37
#define ASSERT(x)
Definition qcstring.h:39

References ASSERT, endGroupHeader(), endMemberHeader(), FALSE, m_firstCol, m_inHeader, m_paragraph, OutputGenerator::m_t, SectionType::Page, SectionType::Paragraph, SectionType::Section, SectionType::Subparagraph, SectionType::Subsection, SectionType::Subsubparagraph, SectionType::Subsubsection, TRUE, and type().

◆ endSmall()

void ManGenerator::endSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 186 of file mangen.h.

186{}

◆ endTextBlock()

void ManGenerator::endTextBlock ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 242 of file mangen.h.

242{}

◆ endTextLink()

void ManGenerator::endTextLink ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 125 of file mangen.h.

125{}

◆ endTitle()

void ManGenerator::endTitle ( )
private

Definition at line 505 of file mangen.cpp.

506{
507 m_t << "\"";
508}

References OutputGenerator::m_t.

◆ endTitleHead()

void ManGenerator::endTitleHead ( const QCString & ,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 349 of file mangen.cpp.

350{
351 m_t << ".TH \"" << name << "\" " << getExtension() << " \"";
352 switch (Config_getEnum(TIMESTAMP))
353 {
354 case TIMESTAMP_t::YES:
355 case TIMESTAMP_t::DATETIME:
357 break;
358 case TIMESTAMP_t::DATE:
359 m_t << dateToString(DateTimeType::Date) << "\" \"";
360 break;
361 case TIMESTAMP_t::NO:
362 break;
363 }
364 if (!Config_getString(PROJECT_NUMBER).isEmpty())
365 m_t << "Version " << Config_getString(PROJECT_NUMBER) << "\" \"";
366 if (Config_getString(PROJECT_NAME).isEmpty())
367 m_t << "Doxygen";
368 else
369 m_t << Config_getString(PROJECT_NAME);
370 m_t << "\" \\\" -*- nroff -*-\n";
371 m_t << ".ad l\n";
372 m_t << ".nh\n";
373 m_t << ".SH NAME\n";
374 m_t << name;
378}
#define Config_getEnum(name)
Definition config.h:35
QCString dateToString(DateTimeType includeTime)
Returns the current date, when includeTime is set also the time is provided.
Definition datetime.cpp:63
static QCString getExtension()
Definition mangen.cpp:36

References Config_getEnum, Config_getString, Date, DateTime, dateToString(), FALSE, getExtension(), m_firstCol, m_inHeader, m_paragraph, OutputGenerator::m_t, and TRUE.

◆ endTypewriter()

void ManGenerator::endTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 127 of file mangen.h.

127{ m_t << "\\fP"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by endParameterDefVal().

◆ exceptionEntry()

void ManGenerator::exceptionEntry ( const QCString & ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 259 of file mangen.h.

259{}

◆ init()

void ManGenerator::init ( )
static

Definition at line 272 of file mangen.cpp.

273{
274 QCString manOutput = Config_getString(MAN_OUTPUT);
275
276 Dir d(manOutput.str());
277 if (!d.exists() && !d.mkdir(manOutput.str()))
278 {
279 term("Could not create output directory %s\n",qPrint(manOutput));
280 }
281 std::string manDir = manOutput.str()+"/"+getSubdir().str();
282 if (!d.exists(manDir) && !d.mkdir(manDir))
283 {
284 term("Could not create output directory %s/%s\n",qPrint(manOutput), qPrint(getSubdir()));
285 }
286 createSubDirs(d);
287}
#define term(fmt,...)
Definition message.h:94
const char * qPrint(const char *s)
Definition qcstring.h:672
void createSubDirs(const Dir &d)
Definition util.cpp:3994

References Config_getString, createSubDirs(), Dir::exists(), getSubdir(), Dir::mkdir(), qPrint(), QCString::str(), and term.

Referenced by generateOutput().

◆ insertMemberAlign()

void ManGenerator::insertMemberAlign ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 136 of file mangen.h.

136{}

◆ insertMemberAlignLeft()

void ManGenerator::insertMemberAlignLeft ( MemberItemType ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 137 of file mangen.h.

137{}

◆ lastIndexPage()

void ManGenerator::lastIndexPage ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 243 of file mangen.h.

243{}

◆ lineBreak()

void ManGenerator::lineBreak ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 172 of file mangen.h.

172{ m_t << "\n.br\n"; }

References OutputGenerator::m_t.

◆ newParagraph()

void ManGenerator::newParagraph ( )

Definition at line 380 of file mangen.cpp.

381{
382 if (!m_paragraph)
383 {
384 if (!m_firstCol) m_t << "\n";
385 m_t << ".PP\n";
387 }
389}

References m_firstCol, m_paragraph, OutputGenerator::m_t, and TRUE.

Referenced by endIndexList(), and endItemList().

◆ operator=() [1/2]

ManGenerator & ManGenerator::operator= ( const ManGenerator & og)

Definition at line 247 of file mangen.cpp.

248{
249 if (this!=&og)
250 {
251 m_dir = og.m_dir;
252 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
253 m_codeGen = m_codeList->get<ManCodeGenerator>(OutputType::Man);
254 m_codeGen->setTextStream(&m_t);
256 m_col = og.m_col;
261 }
262 return *this;
263}

References m_codeGen, m_codeList, m_col, OutputGenerator::m_dir, m_firstCol, m_inHeader, m_insideTabbing, m_paragraph, OutputGenerator::m_t, m_upperCase, Man, and ManGenerator().

◆ operator=() [2/2]

ManGenerator & ManGenerator::operator= ( ManGenerator && )
delete

References ManGenerator().

◆ startAnonTypeScope()

void ManGenerator::startAnonTypeScope ( int indentLevel)
overridevirtual

Implements OutputGenIntf.

Definition at line 606 of file mangen.cpp.

607{
608 if (indentLevel==0)
609 {
611 }
612}

References m_insideTabbing, and TRUE.

◆ startBold()

void ManGenerator::startBold ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 168 of file mangen.h.

168{ m_t << "\\fB"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by startConstraintList(), startDescTable(), startExamples(), and writeObjectLink().

◆ startBoldEmphasis()

void ManGenerator::startBoldEmphasis ( )
inline

Definition at line 170 of file mangen.h.

170{ m_t << "\\f(BI"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by startDescTableTitle().

◆ startCallGraph()

void ManGenerator::startCallGraph ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 235 of file mangen.h.

235{}

◆ startCenter()

void ManGenerator::startCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 183 of file mangen.h.

183{}

◆ startClassDiagram()

void ManGenerator::startClassDiagram ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 203 of file mangen.h.

203{}

◆ startCompoundTemplateParams()

void ManGenerator::startCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 572 of file mangen.cpp.

573{
574 if (!m_firstCol) m_t << "\n";
575 m_t << "\n.SS \"";
578}

References FALSE, m_firstCol, m_paragraph, and OutputGenerator::m_t.

◆ startConstraintDocs()

void ManGenerator::startConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 812 of file mangen.cpp.

813{
814}

◆ startConstraintList()

void ManGenerator::startConstraintList ( const QCString & header)
overridevirtual

Implements OutputGenIntf.

Definition at line 775 of file mangen.cpp.

776{
777 if (!m_firstCol)
778 { m_t << "\n.PP\n";
780 m_col=0;
781 }
783 startBold();
784 docify(header);
785 endBold();
787}
void startBold() override
Definition mangen.h:168
void endBold() override
Definition mangen.h:169
void docify(const QCString &text) override
Definition mangen.cpp:459

References docify(), endBold(), FALSE, m_col, m_firstCol, m_paragraph, OutputGenerator::m_t, startBold(), and TRUE.

◆ startConstraintParam()

void ManGenerator::startConstraintParam ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 789 of file mangen.cpp.

790{
793}
void startEmphasis() override
Definition mangen.h:166
void startItemListItem() override
Definition mangen.cpp:510

References startEmphasis(), and startItemListItem().

◆ startConstraintType()

void ManGenerator::startConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 802 of file mangen.cpp.

803{
805}

References startEmphasis().

◆ startContents()

void ManGenerator::startContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 214 of file mangen.h.

214{}

◆ startDescForItem()

void ManGenerator::startDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 592 of file mangen.cpp.

593{
594 if (!m_firstCol) m_t << "\n";
595 if (!m_paragraph) m_t << ".in -1c\n";
596 m_t << ".in +1c\n";
599 m_col=0;
600}

References FALSE, m_col, m_firstCol, m_paragraph, OutputGenerator::m_t, and TRUE.

Referenced by startDescTable().

◆ startDescTable()

void ManGenerator::startDescTable ( const QCString & title,
const bool hasInits )
overridevirtual

Implements OutputGenIntf.

Definition at line 743 of file mangen.cpp.

744{
745 if (!m_firstCol)
746 { m_t << "\n.PP\n";
748 m_col=0;
749 }
751 startBold();
752 docify(title);
753 endBold();
756}
void startDescForItem() override
Definition mangen.cpp:592

References docify(), endBold(), FALSE, m_col, m_firstCol, m_paragraph, OutputGenerator::m_t, startBold(), startDescForItem(), and TRUE.

◆ startDescTableData()

void ManGenerator::startDescTableData ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 226 of file mangen.h.

226{ m_t << "\n"; m_firstCol=TRUE; }

References m_firstCol, OutputGenerator::m_t, and TRUE.

◆ startDescTableInit()

void ManGenerator::startDescTableInit ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 224 of file mangen.h.

224{};

◆ startDescTableRow()

void ManGenerator::startDescTableRow ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 222 of file mangen.h.

222{}

◆ startDescTableTitle()

void ManGenerator::startDescTableTitle ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 220 of file mangen.h.

References endItemListItem(), startBoldEmphasis(), and startItemListItem().

◆ startDirDepGraph()

void ManGenerator::startDirDepGraph ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 237 of file mangen.h.

237{}

◆ startDotGraph()

void ManGenerator::startDotGraph ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 229 of file mangen.h.

229{}

◆ startDoxyAnchor()

void ManGenerator::startDoxyAnchor ( const QCString & ,
const QCString & manName,
const QCString & ,
const QCString & name,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 531 of file mangen.cpp.

534{
535 // something to be done?
536 if( !Config_getBool(MAN_LINKS) )
537 {
538 return; // no
539 }
540
541 // the name of the link file is derived from the name of the anchor:
542 // - truncate after an (optional) ::
543 QCString baseName = name;
544 int i=baseName.findRev("::");
545 if (i!=-1) baseName=baseName.right(baseName.length()-i-2);
546
547 //printf("Converting man link '%s'->'%s'->'%s'\n",
548 // name,qPrint(baseName),qPrint(buildFileName(baseName)));
549
550 // - remove dangerous characters and append suffix, then add dir prefix
551 QCString fileName=dir()+"/"+buildFileName( baseName );
552 FileInfo fi(fileName.str());
553 if (!fi.exists())
554 {
555 std::ofstream linkStream = Portable::openOutputStream(fileName);
556 if (linkStream.is_open())
557 {
558 linkStream << ".so " << getSubdir() << "/" << buildFileName( manName ) << "\n";
559 }
560 }
561}
QCString dir() const
Definition outputgen.cpp:52
QCString fileName() const
Definition outputgen.cpp:57
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:153
QCString right(size_t len) const
Definition qcstring.h:219
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition qcstring.cpp:91
#define Config_getBool(name)
Definition config.h:33
static QCString buildFileName(const QCString &name)
Definition mangen.cpp:296
std::ofstream openOutputStream(const QCString &name, bool append=false)
Definition portable.cpp:665

References buildFileName(), Config_getBool, OutputGenerator::dir(), FileInfo::exists(), OutputGenerator::fileName(), QCString::findRev(), getSubdir(), QCString::length(), Portable::openOutputStream(), and QCString::right().

◆ startEmphasis()

void ManGenerator::startEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 166 of file mangen.h.

166{ m_t << "\\fI"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by startConstraintParam(), and startConstraintType().

◆ startExamples()

void ManGenerator::startExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 725 of file mangen.cpp.

726{
727 if (!m_firstCol)
728 { m_t << "\n" << ".PP\n";
730 m_col=0;
731 }
733 startBold();
735 endBold();
737}
virtual QCString trExamples()=0
Translator * theTranslator
Definition language.cpp:71

References docify(), endBold(), FALSE, m_col, m_firstCol, m_paragraph, OutputGenerator::m_t, startBold(), theTranslator, and TRUE.

◆ startFile()

void ManGenerator::startFile ( const QCString & name,
const QCString & manName,
const QCString & title,
int id,
int hierarchyLevel )
overridevirtual

Implements OutputGenIntf.

Definition at line 337 of file mangen.cpp.

338{
339 startPlainFile( buildFileName( manName ) );
341}
void startPlainFile(const QCString &name) override
Definition mangen.h:285

References buildFileName(), m_firstCol, startPlainFile(), and TRUE.

◆ startGroupCollaboration()

void ManGenerator::startGroupCollaboration ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 233 of file mangen.h.

233{}

◆ startGroupHeader()

void ManGenerator::startGroupHeader ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 430 of file mangen.cpp.

431{
432 if (!m_firstCol) m_t << "\n";
433 m_t << ".SH \"";
436}

References FALSE, m_firstCol, OutputGenerator::m_t, m_upperCase, and TRUE.

Referenced by startSection().

◆ startHeaderSection()

void ManGenerator::startHeaderSection ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 132 of file mangen.h.

132{}

◆ startInclDepGraph()

void ManGenerator::startInclDepGraph ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 231 of file mangen.h.

231{}

◆ startIndent()

void ManGenerator::startIndent ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 200 of file mangen.h.

200{}

◆ startIndexItem()

void ManGenerator::startIndexItem ( const QCString & ref,
const QCString & file )
overridevirtual

Implements OutputGenIntf.

Definition at line 411 of file mangen.cpp.

412{
413}

◆ startIndexKey()

void ManGenerator::startIndexKey ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 113 of file mangen.h.

113{}

◆ startIndexList()

void ManGenerator::startIndexList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 111 of file mangen.h.

111{}

◆ startIndexListItem()

void ManGenerator::startIndexListItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 109 of file mangen.h.

109{}

◆ startIndexSection()

void ManGenerator::startIndexSection ( IndexSection )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 97 of file mangen.h.

97{}

◆ startIndexValue()

void ManGenerator::startIndexValue ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 115 of file mangen.h.

115{}

◆ startInlineHeader()

void ManGenerator::startInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 826 of file mangen.cpp.

827{
828 if (!m_firstCol)
829 {
830 m_t << "\n.PP\n" << ".in -1c\n";
831 }
832 m_t << ".RI \"\\fB";
833}

References m_firstCol, and OutputGenerator::m_t.

◆ startInlineMemberDoc()

void ManGenerator::startInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 887 of file mangen.cpp.

888{
889}

◆ startInlineMemberName()

void ManGenerator::startInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 877 of file mangen.cpp.

878{
879 m_t << "\\fI";
880}

References OutputGenerator::m_t.

◆ startInlineMemberType()

void ManGenerator::startInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 868 of file mangen.cpp.

869{
870}

◆ startItemList()

void ManGenerator::startItemList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 117 of file mangen.h.

117{}

◆ startItemListItem()

void ManGenerator::startItemListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 510 of file mangen.cpp.

511{
512 if (!m_firstCol) m_t << "\n";
513 m_t << ".TP\n";
516 m_col=0;
517}

References FALSE, m_col, m_firstCol, m_paragraph, OutputGenerator::m_t, and TRUE.

Referenced by startConstraintParam(), and startDescTableTitle().

◆ startLabels()

void ManGenerator::startLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 899 of file mangen.cpp.

900{
901}

◆ startMemberDeclaration()

void ManGenerator::startMemberDeclaration ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 189 of file mangen.h.

189{}

◆ startMemberDescription()

void ManGenerator::startMemberDescription ( const QCString & ,
const QCString & ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 187 of file mangen.h.

187{ m_t << "\n.RI \""; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

◆ startMemberDoc()

void ManGenerator::startMemberDoc ( const QCString & ,
const QCString & ,
const QCString & ,
const QCString & ,
int ,
int ,
bool  )
overridevirtual

Implements OutputGenIntf.

Definition at line 523 of file mangen.cpp.

524{
525 if (!m_firstCol) m_t << "\n";
526 m_t << ".SS \"";
529}

References FALSE, m_firstCol, m_paragraph, and OutputGenerator::m_t.

◆ startMemberDocList()

void ManGenerator::startMemberDocList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 142 of file mangen.h.

142{}

◆ startMemberDocName()

void ManGenerator::startMemberDocName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 247 of file mangen.h.

247{}

◆ startMemberDocPrefixItem()

void ManGenerator::startMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 245 of file mangen.h.

245{}

◆ startMemberDocSimple()

void ManGenerator::startMemberDocSimple ( bool isEnum)
overridevirtual

Implements OutputGenIntf.

Definition at line 841 of file mangen.cpp.

842{
843 if (!m_firstCol)
844 {
845 m_t << "\n.PP\n";
846 }
847 m_t << "\\fB";
848 if (isEnum)
849 {
851 }
852 else
853 {
855 }
856 m_t << ":\\fP\n";
857 m_t << ".RS 4\n";
858}
virtual QCString trEnumerationValues()=0
virtual QCString trCompoundMembers()=0

References docify(), m_firstCol, OutputGenerator::m_t, and theTranslator.

◆ startMemberGroup()

void ManGenerator::startMemberGroup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 671 of file mangen.cpp.

672{
673 m_t << "\n.in +1c";
674}

References OutputGenerator::m_t.

◆ startMemberGroupDocs()

void ManGenerator::startMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 662 of file mangen.cpp.

663{
664}

◆ startMemberGroupHeader()

void ManGenerator::startMemberGroupHeader ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 651 of file mangen.cpp.

652{
653 m_t << "\n.PP\n.RI \"\\fB";
654}

References OutputGenerator::m_t.

◆ startMemberHeader()

void ManGenerator::startMemberHeader ( const QCString & ,
int  )
overridevirtual

Implements OutputGenIntf.

Definition at line 446 of file mangen.cpp.

447{
448 if (!m_firstCol) m_t << "\n";
449 m_t << ".SS \"";
450}

References m_firstCol, and OutputGenerator::m_t.

Referenced by startSection().

◆ startMemberItem()

void ManGenerator::startMemberItem ( const QCString & ,
MemberItemType ,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 623 of file mangen.cpp.

624{
625 if (m_firstCol && !m_insideTabbing) m_t << ".in +1c\n";
626 m_t << "\n.ti -1c\n.RI \"";
628}

References FALSE, m_firstCol, m_insideTabbing, and OutputGenerator::m_t.

◆ startMemberList()

void ManGenerator::startMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 635 of file mangen.cpp.

636{
637 if (!m_insideTabbing)
638 {
639 m_t << "\n.in +1c"; m_firstCol=FALSE;
640 }
641}

References FALSE, m_firstCol, m_insideTabbing, and OutputGenerator::m_t.

◆ startMemberSections()

void ManGenerator::startMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 130 of file mangen.h.

130{}

◆ startMemberSubtitle()

void ManGenerator::startMemberSubtitle ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 138 of file mangen.h.

138{}

◆ startMemberTemplateParams()

void ManGenerator::startMemberTemplateParams ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 152 of file mangen.h.

152{}

◆ startPageDoc()

void ManGenerator::startPageDoc ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 95 of file mangen.h.

95{}

◆ startPageRef()

void ManGenerator::startPageRef ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 205 of file mangen.h.

205{}

◆ startParagraph()

void ManGenerator::startParagraph ( const QCString & classDef)
overridevirtual

Implements OutputGenIntf.

Definition at line 391 of file mangen.cpp.

392{
393 if (!m_paragraph)
394 {
395 if (!m_firstCol) m_t << "\n";
396 m_t << ".PP\n";
398 }
400}

References m_firstCol, m_paragraph, OutputGenerator::m_t, and TRUE.

◆ startParameterDefVal()

void ManGenerator::startParameterDefVal ( const char * s)
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 255 of file mangen.h.

255{ docify(s); startTypewriter(); }
void startTypewriter() override
Definition mangen.h:126

References docify(), and startTypewriter().

◆ startParameterExtra()

void ManGenerator::startParameterExtra ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 253 of file mangen.h.

253{}

◆ startParameterList()

void ManGenerator::startParameterList ( bool openBracket)
overridevirtual

Implements OutputGenIntf.

Definition at line 927 of file mangen.cpp.

928{
929 if (openBracket) m_t << "(";
930}

References OutputGenerator::m_t.

◆ startParameterName()

void ManGenerator::startParameterName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 251 of file mangen.h.

251{}

◆ startParameterType()

void ManGenerator::startParameterType ( bool ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 249 of file mangen.h.

249{}

◆ startPlainFile()

void ManGenerator::startPlainFile ( const QCString & name)
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 285 of file mangen.h.

void startPlainFile(const QCString &name)
Definition outputgen.cpp:32

References OutputGenerator::startPlainFile().

Referenced by startFile().

◆ startProjectNumber()

void ManGenerator::startProjectNumber ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 100 of file mangen.h.

100{}

◆ startQuickIndices()

void ManGenerator::startQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 207 of file mangen.h.

207{}

◆ startSection()

void ManGenerator::startSection ( const QCString & ,
const QCString & ,
SectionType type )
overridevirtual

Implements OutputGenIntf.

Definition at line 682 of file mangen.cpp.

683{
684 if( !m_inHeader )
685 {
686 switch(type.level())
687 {
688 case SectionType::Page: // fall through
690 case SectionType::Subsection: // fall through
691 case SectionType::Subsubsection: // fall through
692 case SectionType::Paragraph: // fall through
693 case SectionType::Subparagraph: // fall through
694 case SectionType::Subsubparagraph: startMemberHeader(QCString(), -1); break;
695 default: ASSERT(0); break;
696 }
697 }
698}
void startMemberHeader(const QCString &, int) override
Definition mangen.cpp:446
void startGroupHeader(int) override
Definition mangen.cpp:430

References ASSERT, m_inHeader, SectionType::Page, SectionType::Paragraph, SectionType::Section, startGroupHeader(), startMemberHeader(), SectionType::Subparagraph, SectionType::Subsection, SectionType::Subsubparagraph, SectionType::Subsubsection, and type().

◆ startSmall()

void ManGenerator::startSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 185 of file mangen.h.

185{}

◆ startTextBlock()

void ManGenerator::startTextBlock ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 241 of file mangen.h.

241{}

◆ startTextLink()

void ManGenerator::startTextLink ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 124 of file mangen.h.

124{}

◆ startTitle()

void ManGenerator::startTitle ( )
private

Definition at line 497 of file mangen.cpp.

498{
499 if (!m_firstCol) m_t << "\n";
500 m_t << ".SH \"";
503}

References FALSE, m_firstCol, m_paragraph, and OutputGenerator::m_t.

◆ startTitleHead()

void ManGenerator::startTitleHead ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 103 of file mangen.h.

103{}

◆ startTypewriter()

void ManGenerator::startTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 126 of file mangen.h.

126{ m_t << "\\fR"; m_firstCol=FALSE; }

References FALSE, m_firstCol, and OutputGenerator::m_t.

Referenced by startParameterDefVal().

◆ type()

OutputType ManGenerator::type ( ) const
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 84 of file mangen.h.

84{ return OutputType::Man; }

References Man.

Referenced by endSection(), and startSection().

◆ writeAnchor()

void ManGenerator::writeAnchor ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 165 of file mangen.h.

165{}

◆ writeChar()

void ManGenerator::writeChar ( char c)
overridevirtual

Implements OutputGenIntf.

Definition at line 483 of file mangen.cpp.

484{
485 m_firstCol=(c=='\n');
486 if (m_firstCol) m_col=0; else m_col++;
487 switch (c)
488 {
489 case '\\': m_t << "\\\\"; break;
490 case '\"': c = '\''; // no break!
491 default: m_t << c; break;
492 }
493 //printf("%c",c);fflush(stdout);
495}

References FALSE, m_col, m_firstCol, m_paragraph, and OutputGenerator::m_t.

◆ writeDoc()

void ManGenerator::writeDoc ( const IDocNodeAST * ast,
const Definition * ctx,
const MemberDef * ,
int  )
overridevirtual

Implements OutputGenIntf.

Definition at line 763 of file mangen.cpp.

764{
765 const DocNodeAST *astImpl = dynamic_cast<const DocNodeAST *>(ast);
766 if (astImpl)
767 {
768 ManDocVisitor visitor(m_t,*m_codeList,ctx?ctx->getDefFileExtension():QCString(""));
769 std::visit(visitor,astImpl->root);
770 }
773}
virtual QCString getDefFileExtension() const =0
DocNodeVariant root
Definition docnode.h:1481

References FALSE, Definition::getDefFileExtension(), m_codeList, m_firstCol, m_paragraph, OutputGenerator::m_t, and DocNodeAST::root.

◆ writeFooter()

void ManGenerator::writeFooter ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 93 of file mangen.h.

93{}

◆ writeGraphicalHierarchy()

void ManGenerator::writeGraphicalHierarchy ( DotGfxHierarchyTable & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 239 of file mangen.h.

239{}

◆ writeInheritedSectionTitle()

void ManGenerator::writeInheritedSectionTitle ( const QCString & ,
const QCString & ,
const QCString & ,
const QCString & ,
const QCString & title,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 917 of file mangen.cpp.

921{
922 m_t << "\n\n";
925}
virtual QCString trInheritedFrom(const QCString &members, const QCString &what)=0
static QCString objectLinkToString(const QCString &, const QCString &f, const QCString &anchor, const QCString &text)
static QCString docifyToString(const QCString &str)
Definition mangen.cpp:79

References docifyToString(), FALSE, m_firstCol, OutputGenerator::m_t, objectLinkToString(), and theTranslator.

◆ writeLabel()

void ManGenerator::writeLabel ( const QCString & l,
bool isLast )
overridevirtual

Implements OutputGenIntf.

Definition at line 903 of file mangen.cpp.

904{
905 m_t << "\\fR [" << l << "]\\fP";
906 if (!isLast) m_t << ", ";
907}

References OutputGenerator::m_t.

◆ writeLatexSpacing()

void ManGenerator::writeLatexSpacing ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 179 of file mangen.h.

179{}

◆ writeLocalToc()

void ManGenerator::writeLocalToc ( const SectionRefs & ,
const LocalToc &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 283 of file mangen.h.

283{}

◆ writeLogo()

void ManGenerator::writeLogo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 211 of file mangen.h.

211{}

◆ writeNavigationPath()

void ManGenerator::writeNavigationPath ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 210 of file mangen.h.

210{}

◆ writeNonBreakableSpace()

void ManGenerator::writeNonBreakableSpace ( int n)
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 216 of file mangen.h.

216{ for (int i=0;i<n;i++) m_t << " "; }

References OutputGenerator::m_t.

◆ writeObjectLink()

void ManGenerator::writeObjectLink ( const QCString & ref,
const QCString & file,
const QCString & anchor,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 424 of file mangen.cpp.

426{
427 startBold(); docify(name); endBold();
428}

References docify(), endBold(), and startBold().

◆ writePageLink()

void ManGenerator::writePageLink ( const QCString & ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 99 of file mangen.h.

99{}

◆ writeQuickLinks()

void ManGenerator::writeQuickLinks ( HighlightedItem ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 212 of file mangen.h.

212{}

◆ writeRuler()

void ManGenerator::writeRuler ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 164 of file mangen.h.

164{}

◆ writeSearchInfo()

void ManGenerator::writeSearchInfo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 92 of file mangen.h.

92{}

◆ writeSplitBar()

void ManGenerator::writeSplitBar ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 209 of file mangen.h.

209{}

◆ writeStartAnnoItem()

void ManGenerator::writeStartAnnoItem ( const QCString & type,
const QCString & file,
const QCString & path,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 419 of file mangen.cpp.

421{
422}

◆ writeString()

void ManGenerator::writeString ( const QCString & text)
overridevirtual

Implements OutputGenIntf.

Definition at line 406 of file mangen.cpp.

407{
408 docify(text);
409}

References docify().

◆ writeStyleInfo()

void ManGenerator::writeStyleInfo ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 102 of file mangen.h.

102{}

◆ writeSummaryLink()

void ManGenerator::writeSummaryLink ( const QCString & ,
const QCString & ,
const QCString & ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 213 of file mangen.h.

213{}

◆ writeSynopsis()

void ManGenerator::writeSynopsis ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 584 of file mangen.cpp.

585{
586 if (!m_firstCol) m_t << "\n";
587 m_t << ".SH SYNOPSIS\n.br\n.PP\n";
590}

References FALSE, m_firstCol, m_paragraph, OutputGenerator::m_t, and TRUE.

Member Data Documentation

◆ m_codeGen

ManCodeGenerator* ManGenerator::m_codeGen
private

Definition at line 299 of file mangen.h.

Referenced by addCodeGen(), ManGenerator(), ManGenerator(), and operator=().

◆ m_codeList

std::unique_ptr<OutputCodeList> ManGenerator::m_codeList
private

Definition at line 298 of file mangen.h.

Referenced by ManGenerator(), ManGenerator(), operator=(), and writeDoc().

◆ m_col

int ManGenerator::m_col = 0
private

◆ m_firstCol

◆ m_inHeader

bool ManGenerator::m_inHeader = false
private

Definition at line 297 of file mangen.h.

Referenced by endSection(), endTitleHead(), ManGenerator(), operator=(), and startSection().

◆ m_insideTabbing

bool ManGenerator::m_insideTabbing = false
private

◆ m_paragraph

◆ m_upperCase

bool ManGenerator::m_upperCase = false
private

Definition at line 295 of file mangen.h.

Referenced by endGroupHeader(), ManGenerator(), operator=(), and startGroupHeader().


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