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

#include <src/docbookgen.h>

+ Inheritance diagram for DocbookGenerator:
+ Collaboration diagram for DocbookGenerator:

Public Member Functions

 DocbookGenerator ()
 
 DocbookGenerator (const DocbookGenerator &)
 
DocbookGeneratoroperator= (const DocbookGenerator &)
 
 DocbookGenerator (DocbookGenerator &&)=delete
 
DocbookGeneratoroperator= (DocbookGenerator &&)=delete
 
 ~DocbookGenerator ()
 
OutputType type () const override
 
std::unique_ptr< OutputGenIntfclone () override
 
void addCodeGen (OutputCodeList &list) override
 
void cleanup () override
 
void writeDoc (const IDocNodeAST *node, const Definition *ctx, const MemberDef *md, int id) 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 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 &fileName, const QCString &name) 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 &, const QCString &) override
 
void endIndexItem (const QCString &, const QCString &) override
 
void startItemListItem () override
 
void endItemListItem () override
 
void docify (const QCString &text) override
 
void writeChar (char) override
 
void writeString (const QCString &) override
 
void startParagraph (const QCString &) override
 
void endParagraph () override
 
void writeObjectLink (const QCString &, const QCString &, const QCString &, const QCString &) override
 
void startBold () override
 
void endBold () override
 
void startTypewriter () override
 
void endTypewriter () override
 
void startEmphasis () override
 
void endEmphasis () override
 
void writeRuler () override
 
void startDescForItem () override
 
void endDescForItem () override
 
void startCenter () override
 
void endCenter () override
 
void startSmall () override
 
void endSmall () override
 
void startExamples () override
 
void endExamples () override
 
void writeAnchor (const QCString &, const QCString &) override
 
void startSection (const QCString &, const QCString &, SectionType) override
 
void endSection (const QCString &, SectionType) override
 
void lineBreak (const QCString &) override
 
void addIndexItem (const QCString &, const QCString &) override
 
void writeNonBreakableSpace (int) override
 
void startDescTable (const QCString &title, const bool hasInits) override
 
void endDescTable () override
 
void startDescTableRow () override
 
void endDescTableRow () override
 
void startDescTableTitle () override
 
void endDescTableTitle () override
 
void startDescTableInit () override
 
void endDescTableInit () override
 
void startDescTableData () override
 
void endDescTableData () override
 
void startTextLink (const QCString &, const QCString &) override
 
void endTextLink () override
 
void startPageRef () override
 
void endPageRef (const QCString &, const QCString &) 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 &anchor, int typ) override
 
void endMemberHeader () override
 
void startMemberSubtitle () override
 
void endMemberSubtitle () 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 insertMemberAlign (bool) override
 
void insertMemberAlignLeft (MemberItemType, bool) override
 
void startMemberDoc (const QCString &, const QCString &, const QCString &, const QCString &, int, int, bool) override
 
void endMemberDoc (bool) override
 
void startDoxyAnchor (const QCString &fName, const QCString &manName, const QCString &anchor, const QCString &name, const QCString &args) override
 
void endDoxyAnchor (const QCString &fileName, const QCString &anchor) override
 
void addLabel (const QCString &, const QCString &) override
 
void writeLatexSpacing () override
 
void writeStartAnnoItem (const QCString &, const QCString &, const QCString &, const QCString &) 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 startIndent () override
 
void endIndent () override
 
void writeSynopsis () override
 
void startClassDiagram () override
 
void endClassDiagram (const ClassDiagram &, const QCString &, const QCString &) override
 
void startDotGraph () override
 
void endDotGraph (DotClassGraph &g) override
 
void startInclDepGraph () override
 
void endInclDepGraph (DotInclDepGraph &g) override
 
void startGroupCollaboration () override
 
void endGroupCollaboration (DotGroupCollaboration &g) override
 
void startCallGraph () override
 
void endCallGraph (DotCallGraph &g) override
 
void startDirDepGraph () override
 
void endDirDepGraph (DotDirDeps &g) override
 
void writeGraphicalHierarchy (DotGfxHierarchyTable &) 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 startPageDoc (const QCString &) override
 
void endPageDoc () 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 *sep) 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 &, bool) override
 
void endLabels () override
 
void writeLocalToc (const SectionRefs &sr, const LocalToc &lt) 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 openSection (const QCString &attr=QCString())
 
void closeSection ()
 
void closeAllSections ()
 

Private Attributes

QCString relPath
 
std::unique_ptr< OutputCodeListm_codeList
 
DocbookCodeGeneratorm_codeGen = nullptr
 
bool m_denseText = false
 
bool m_inGroup = false
 
int m_levelListItem = 0
 
std::array< bool, 20 > m_inListItem = { false, }
 
std::array< bool, 20 > m_inSimpleSect = { false, }
 
bool m_descTable = false
 
bool m_simpleTable = false
 
int m_inLevel = -1
 
bool m_firstMember = false
 
int m_openSectionCount = 0
 
QCString m_pageLinks
 

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

Definition at line 103 of file docbookgen.h.

Constructor & Destructor Documentation

◆ DocbookGenerator() [1/3]

DocbookGenerator::DocbookGenerator ( )

Definition at line 319 of file docbookgen.cpp.

320 : OutputGenerator(Config_getString(DOCBOOK_OUTPUT))
321 , m_codeList(std::make_unique<OutputCodeList>())
322{
324 m_codeGen = m_codeList->add<DocbookCodeGenerator>(&m_t);
325}
std::unique_ptr< OutputCodeList > m_codeList
Definition docbookgen.h:325
DocbookCodeGenerator * m_codeGen
Definition docbookgen.h:326
TextStream m_t
Definition outputgen.h:116
#define Config_getString(name)
Definition config.h:32
#define DB_GEN_C

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

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

◆ DocbookGenerator() [2/3]

DocbookGenerator::DocbookGenerator ( const DocbookGenerator & og)

Definition at line 327 of file docbookgen.cpp.

327 : OutputGenerator(og.m_dir), OutputGenIntf()
328{
329 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
330 m_codeGen = m_codeList->get<DocbookCodeGenerator>(OutputType::Docbook);
331 m_codeGen->setTextStream(&m_t);
333 m_inGroup = og.m_inGroup;
339 m_inLevel = og.m_inLevel;
342}
std::array< bool, 20 > m_inSimpleSect
Definition docbookgen.h:331
std::array< bool, 20 > m_inListItem
Definition docbookgen.h:330
QCString m_dir
Definition outputgen.h:117

References Docbook, DocbookGenerator(), m_codeGen, m_codeList, m_denseText, m_descTable, OutputGenerator::m_dir, m_firstMember, m_inGroup, m_inLevel, m_inListItem, m_inSimpleSect, m_levelListItem, m_openSectionCount, m_simpleTable, OutputGenerator::m_t, and OutputGenerator::OutputGenerator().

◆ DocbookGenerator() [3/3]

DocbookGenerator::DocbookGenerator ( DocbookGenerator && )
delete

References DocbookGenerator().

◆ ~DocbookGenerator()

DocbookGenerator::~DocbookGenerator ( )
default

Member Function Documentation

◆ addCodeGen()

void DocbookGenerator::addCodeGen ( OutputCodeList & list)
overridevirtual

Implements OutputGenIntf.

Definition at line 368 of file docbookgen.cpp.

369{
371}
void add(OutputCodeIntfPtr &&p)
Definition outputlist.h:194
OutputCodeDefer< DocbookCodeGenerator > DocbookCodeGeneratorDefer
Definition outputlist.h:105

References OutputCodeList::add(), and m_codeGen.

◆ addIndexItem()

void DocbookGenerator::addIndexItem ( const QCString & prim,
const QCString & sec )
overridevirtual

Implements OutputGenIntf.

Definition at line 1144 of file docbookgen.cpp.

1145{
1147 addIndexTerm(m_t, prim, sec);
1148}
static void addIndexTerm(TextStream &t, QCString prim, QCString sec="")

References addIndexTerm(), DB_GEN_C, and OutputGenerator::m_t.

◆ addLabel()

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

Implements OutputGenIntf.

Definition at line 959 of file docbookgen.cpp.

960{
962}

References DB_GEN_C.

◆ cleanup()

void DocbookGenerator::cleanup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 384 of file docbookgen.cpp.

385{
386 QCString dname = Config_getString(DOCBOOK_OUTPUT);
387 Dir d(dname.str());
388 clearSubDirs(d);
389}
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().

◆ clone()

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

Implements OutputGenIntf.

Definition at line 121 of file docbookgen.h.

121{ return std::make_unique<DocbookGenerator>(*this); }

◆ closeAllSections()

void DocbookGenerator::closeAllSections ( )
private

Definition at line 1398 of file docbookgen.cpp.

1399{
1400 while (m_openSectionCount>0)
1401 {
1402 closeSection();
1403 }
1404}

References closeSection(), and m_openSectionCount.

Referenced by endFile().

◆ closeSection()

void DocbookGenerator::closeSection ( )
private

Definition at line 1392 of file docbookgen.cpp.

1393{
1394 m_t << "</section>\n";
1396}

References m_openSectionCount, and OutputGenerator::m_t.

Referenced by closeAllSections(), endSection(), startDoxyAnchor(), startGroupHeader(), and writeRuler().

◆ docify()

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

Implements OutputGenIntf.

Definition at line 766 of file docbookgen.cpp.

767{
769 m_t << convertToDocBook(str);
770}
QCString convertToDocBook(const QCString &s, const bool retainNewline=false)

References convertToDocBook(), DB_GEN_C, and OutputGenerator::m_t.

Referenced by startConstraintList(), startExamples(), and writeChar().

◆ endAnonTypeScope()

void DocbookGenerator::endAnonTypeScope ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 213 of file docbookgen.h.

#define DB_GEN_EMPTY
Definition docbookgen.h:26

References DB_GEN_EMPTY.

◆ endBold()

void DocbookGenerator::endBold ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 828 of file docbookgen.cpp.

829{
831 m_t << "</emphasis>";
832}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endCallGraph()

void DocbookGenerator::endCallGraph ( DotCallGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 1321 of file docbookgen.cpp.

1322{
1325}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
QCString dir() const
Definition outputgen.cpp:52
QCString fileName() const
Definition outputgen.cpp:57
#define FALSE
Definition qcstring.h:34

References BITMAP, DB_GEN_C, OutputGenerator::dir(), DocBook, FALSE, OutputGenerator::fileName(), OutputGenerator::m_t, relPath, and DotCallGraph::writeGraph().

◆ endCenter()

void DocbookGenerator::endCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 169 of file docbookgen.h.

169{DB_GEN_NEW};
#define DB_GEN_NEW
Definition docbookgen.h:42

References DB_GEN_NEW.

◆ endClassDiagram()

void DocbookGenerator::endClassDiagram ( const ClassDiagram & d,
const QCString & fileName,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 997 of file docbookgen.cpp.

998{
1000 m_t << " <informalfigure>\n";
1001 m_t << " <mediaobject>\n";
1002 m_t << " <imageobject>\n";
1003 m_t << " <imagedata width=\"50%\" align=\"center\" valign=\"middle\" scalefit=\"0\" fileref=\""
1004 << relPath << fileName << ".png\">" << "</imagedata>\n";
1005 m_t << " </imageobject>\n";
1007 m_t << " </mediaobject>\n";
1008 m_t << " </informalfigure>\n";
1009 m_t << "</para>\n";
1010}
void writeImage(TextStream &t, const QCString &path, const QCString &relPath, const QCString &file, bool generateMap=true) const
Definition diagram.cpp:1369

References DB_GEN_C, OutputGenerator::dir(), FALSE, OutputGenerator::fileName(), OutputGenerator::m_t, relPath, and ClassDiagram::writeImage().

◆ endCompoundTemplateParams()

void DocbookGenerator::endCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1045 of file docbookgen.cpp.

1046{
1048 m_t << "</title></simplesect>\n";
1049}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endConstraintDocs()

void DocbookGenerator::endConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1374 of file docbookgen.cpp.

1375{
1377}

References DB_GEN_C.

◆ endConstraintList()

void DocbookGenerator::endConstraintList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1378 of file docbookgen.cpp.

1379{
1381 m_t << "</simplesect>\n";
1382}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endConstraintParam()

void DocbookGenerator::endConstraintParam ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1356 of file docbookgen.cpp.

1357{
1359}

References DB_GEN_C.

◆ endConstraintType()

void DocbookGenerator::endConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1365 of file docbookgen.cpp.

1366{
1368 m_t << "</emphasis></para>\n";
1369}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endContents()

void DocbookGenerator::endContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 270 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endDescForItem()

void DocbookGenerator::endDescForItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 167 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endDescTable()

void DocbookGenerator::endDescTable ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1236 of file docbookgen.cpp.

1237{
1239 m_t << " </tbody>\n";
1240 m_t << " </tgroup>\n";
1241 m_t << "</informaltable>\n";
1243}

References DB_GEN_C, FALSE, m_descTable, and OutputGenerator::m_t.

◆ endDescTableData()

void DocbookGenerator::endDescTableData ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1285 of file docbookgen.cpp.

1286{
1288 m_t << "</entry>";
1289}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endDescTableInit()

void DocbookGenerator::endDescTableInit ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1274 of file docbookgen.cpp.

1275{
1277}

References DB_GEN_C.

◆ endDescTableRow()

void DocbookGenerator::endDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1252 of file docbookgen.cpp.

1253{
1255 m_t << "</row>";
1256}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endDescTableTitle()

void DocbookGenerator::endDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1263 of file docbookgen.cpp.

1264{
1266}

References DB_GEN_C.

◆ endDirDepGraph()

void DocbookGenerator::endDirDepGraph ( DotDirDeps & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 1330 of file docbookgen.cpp.

1331{
1334}
QCString writeGraph(TextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1, bool linkRelations=TRUE)

References BITMAP, DB_GEN_C, OutputGenerator::dir(), DocBook, FALSE, OutputGenerator::fileName(), OutputGenerator::m_t, relPath, and DotDirDeps::writeGraph().

◆ endDotGraph()

void DocbookGenerator::endDotGraph ( DotClassGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 1303 of file docbookgen.cpp.

1304{
1307}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1)
#define TRUE
Definition qcstring.h:37

References BITMAP, DB_GEN_C, OutputGenerator::dir(), DocBook, FALSE, OutputGenerator::fileName(), OutputGenerator::m_t, relPath, TRUE, and DotClassGraph::writeGraph().

◆ endDoxyAnchor()

void DocbookGenerator::endDoxyAnchor ( const QCString & fileName,
const QCString & anchor )
overridevirtual

Implements OutputGenIntf.

Definition at line 955 of file docbookgen.cpp.

956{
958}

References DB_GEN_C.

◆ endEmphasis()

void DocbookGenerator::endEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 164 of file docbookgen.h.

164{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endExamples()

void DocbookGenerator::endExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1035 of file docbookgen.cpp.

1036{
1038 m_t << "</simplesect>\n";
1039}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endFile()

void DocbookGenerator::endFile ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 423 of file docbookgen.cpp.

424{
427 m_inLevel = -1;
429
430 // Write page links only after all sections have been closed to avoid bugs
431 m_t << m_pageLinks;
432
433 QCString fileType="section";
434 QCString fileName= m_codeGen->sourceFileName();
435 if (fileName == "index.xml")
436 {
437 fileType="book";
438 }
439 else if (fileName == "mainpage.xml")
440 {
441 fileType="chapter";
442 }
443 m_t << "</" << fileType << ">\n";
444 endPlainFile();
445 m_codeGen->setSourceFileName("");
446}
void endPlainFile() override
Definition docbookgen.h:317
QCString m_pageLinks
Definition docbookgen.h:337

References closeAllSections(), DB_GEN_C, endPlainFile(), FALSE, OutputGenerator::fileName(), m_codeGen, m_inGroup, m_inLevel, m_pageLinks, and OutputGenerator::m_t.

◆ endGroupCollaboration()

void DocbookGenerator::endGroupCollaboration ( DotGroupCollaboration & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 1294 of file docbookgen.cpp.

1295{
1298}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)

References BITMAP, DB_GEN_C, OutputGenerator::dir(), DocBook, FALSE, OutputGenerator::fileName(), OutputGenerator::m_t, relPath, and DotGroupCollaboration::writeGraph().

◆ endGroupHeader()

void DocbookGenerator::endGroupHeader ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 854 of file docbookgen.cpp.

855{
857 m_t << "</title>\n";
858}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endHeaderSection()

void DocbookGenerator::endHeaderSection ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 201 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endInclDepGraph()

void DocbookGenerator::endInclDepGraph ( DotInclDepGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 1312 of file docbookgen.cpp.

1313{
1316}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)

References BITMAP, DB_GEN_C, OutputGenerator::dir(), DocBook, FALSE, OutputGenerator::fileName(), OutputGenerator::m_t, relPath, and DotInclDepGraph::writeGraph().

◆ endIndent()

void DocbookGenerator::endIndent ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 247 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endIndexItem()

void DocbookGenerator::endIndexItem ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 150 of file docbookgen.h.

150{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endIndexKey()

void DocbookGenerator::endIndexKey ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 143 of file docbookgen.h.

143{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endIndexList()

void DocbookGenerator::endIndexList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 141 of file docbookgen.h.

141{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endIndexListItem()

void DocbookGenerator::endIndexListItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 139 of file docbookgen.h.

139{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endIndexSection()

void DocbookGenerator::endIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 533 of file docbookgen.cpp.

534{
535DB_GEN_C2("IndexSection " << is)
536 switch (is)
537 {
539 break;
541 break;
543 {
545 {
546 writePageLink(QCString("mainpage"), TRUE);
547 }
548 }
549 break;
551 //m_t << "</chapter>\n";
552 break;
554 //m_t << "</chapter>\n";
555 break;
557 //m_t << "<xi:include href=\"dirs.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>";
558 //m_t << "</chapter>\n";
559 break;
561 //m_t << "<xi:include href=\"namespaces.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>";
562 //m_t << "</chapter>\n";
563 break;
565 //m_t << "<xi:include href=\"concepts.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>";
566 //m_t << "</chapter>\n";
567 break;
569 //m_t << "<xi:include href=\"hierarchy.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>";
570 //m_t << "</chapter>\n";
571 break;
573 //m_t << "</chapter>\n";
574 break;
576 //m_t << "<xi:include href=\"files.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>";
577 //m_t << "</chapter>\n";
578 break;
580 //m_t << "<xi:include href=\"pages.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>";
581 //m_t << "</chapter>\n";
582 break;
584 {
585 m_t << "</title>\n";
586 for (const auto &gd : *Doxygen::groupLinkedMap)
587 {
588 if (!gd->isReference() && !gd->isASubGroup())
589 {
590 writePageLink(gd->getOutputFileBase(), TRUE);
591 }
592 }
593 }
594 m_t << "</chapter>\n";
595 break;
597 {
598 m_t << "</title>\n";
599 for (const auto &mod : ModuleManager::instance().modules())
600 {
601 if (!mod->isReference() && mod->isPrimaryInterface())
602 {
603 writePageLink(mod->getOutputFileBase(), TRUE);
604 }
605 }
606 }
607 m_t << "</chapter>\n";
608 break;
609 break;
611 {
612 m_t << "</title>\n";
613 for (const auto &dd : *Doxygen::dirLinkedMap)
614 {
615 if (dd->isLinkableInProject())
616 {
617 m_t << "< xi:include href=\"" << dd->getOutputFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
618 }
619 }
620 }
621 m_t << "</chapter>\n";
622 break;
624 {
625 m_t << "</title>\n";
626 for (const auto &nd : *Doxygen::namespaceLinkedMap)
627 {
628 if (nd->isLinkableInProject() && !nd->isAlias())
629 {
630 m_t << "<xi:include href=\"" << nd->getOutputFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
631 }
632 }
633 }
634 m_t << "</chapter>\n";
635 break;
637 {
638 m_t << "</title>\n";
639 for (const auto &cd : *Doxygen::conceptLinkedMap)
640 {
641 if (cd->isLinkableInProject() && !cd->isAlias())
642 {
643 m_t << "<xi:include href=\"" << cd->getOutputFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
644 }
645 }
646 }
647 m_t << "</chapter>\n";
648 break;
650 {
651 m_t << "</title>\n";
652 for (const auto &cd : *Doxygen::classLinkedMap)
653 {
654 if (cd->isLinkableInProject() &&
655 cd->templateMaster()==nullptr &&
656 !cd->isEmbeddedInOuterScope() &&
657 !cd->isAlias()
658 )
659 {
660 m_t << " <xi:include href=\"" << cd->getOutputFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
661 }
662 }
663 }
664 m_t << "</chapter>\n";
665 break;
667 {
668 m_t << "</title>\n";
669 for (const auto &fn : *Doxygen::inputNameLinkedMap)
670 {
671 for (const auto &fd : *fn)
672 {
673 if (fd->isLinkableInProject())
674 {
675 m_t << " <xi:include href=\"" << fd->getOutputFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
676 }
677 if (fd->generateSourceFile())
678 {
679 m_t << " <xi:include href=\"" << fd->getSourceFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
680 }
681 }
682 }
683 }
684 m_t << "</chapter>\n";
685 break;
687 {
688 m_t << "</title>\n";
689 for (const auto &pd : *Doxygen::exampleLinkedMap)
690 {
691 m_t << " <xi:include href=\"" << pd->getOutputFileBase() << ".xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n";
692 }
693 }
694 m_t << "</chapter>\n";
695 break;
697 for (const auto &pd : *Doxygen::pageLinkedMap)
698 {
699 if (!pd->getGroupDef() && !pd->isReference() && !pd->hasParentPage()
700 && Doxygen::mainPage.get() != pd.get())
701 {
702 writePageLink(pd->getOutputFileBase(), TRUE);
703 }
704 }
705 break;
707 break;
709 m_t << "<index/>\n";
710 break;
711 }
712}
void writePageLink(const QCString &, bool) override
static NamespaceLinkedMap * namespaceLinkedMap
Definition doxygen.h:115
static ConceptLinkedMap * conceptLinkedMap
Definition doxygen.h:98
static std::unique_ptr< PageDef > mainPage
Definition doxygen.h:101
static FileNameLinkedMap * inputNameLinkedMap
Definition doxygen.h:105
static ClassLinkedMap * classLinkedMap
Definition doxygen.h:96
static PageLinkedMap * exampleLinkedMap
Definition doxygen.h:99
static PageLinkedMap * pageLinkedMap
Definition doxygen.h:100
static DirLinkedMap * dirLinkedMap
Definition doxygen.h:129
static GroupLinkedMap * groupLinkedMap
Definition doxygen.h:114
static ModuleManager & instance()
#define DB_GEN_C2(y)
@ isMainPage
Definition index.h:35
@ isTitlePageAuthor
Definition index.h:34
@ isFileIndex
Definition index.h:43
@ isFileDocumentation
Definition index.h:51
@ isPageDocumentation
Definition index.h:53
@ isDirDocumentation
Definition index.h:47
@ isModuleDocumentation
Definition index.h:45
@ isClassHierarchyIndex
Definition index.h:41
@ isModuleIndex
Definition index.h:36
@ isTopicIndex
Definition index.h:37
@ isConceptIndex
Definition index.h:40
@ isExampleDocumentation
Definition index.h:52
@ isClassDocumentation
Definition index.h:49
@ isPageIndex
Definition index.h:44
@ isCompoundIndex
Definition index.h:42
@ isEndIndex
Definition index.h:55
@ isConceptDocumentation
Definition index.h:50
@ isDirIndex
Definition index.h:38
@ isNamespaceIndex
Definition index.h:39
@ isNamespaceDocumentation
Definition index.h:48
@ isTitlePageStart
Definition index.h:33
@ isTopicDocumentation
Definition index.h:46
@ isPageDocumentation2
Definition index.h:54

References Doxygen::classLinkedMap, Doxygen::conceptLinkedMap, DB_GEN_C2, Doxygen::dirLinkedMap, Doxygen::exampleLinkedMap, Doxygen::groupLinkedMap, Doxygen::inputNameLinkedMap, ModuleManager::instance(), isClassDocumentation, isClassHierarchyIndex, isCompoundIndex, isConceptDocumentation, isConceptIndex, isDirDocumentation, isDirIndex, isEndIndex, isExampleDocumentation, isFileDocumentation, isFileIndex, isMainPage, isModuleDocumentation, isModuleIndex, isNamespaceDocumentation, isNamespaceIndex, isPageDocumentation, isPageDocumentation2, isPageIndex, isTitlePageAuthor, isTitlePageStart, isTopicDocumentation, isTopicIndex, OutputGenerator::m_t, Doxygen::mainPage, Doxygen::namespaceLinkedMap, Doxygen::pageLinkedMap, TRUE, and writePageLink().

◆ endIndexValue()

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

Implements OutputGenIntf.

Definition at line 145 of file docbookgen.h.

145{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endInlineHeader()

void DocbookGenerator::endInlineHeader ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 211 of file docbookgen.h.

211{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endInlineMemberDoc()

void DocbookGenerator::endInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1215 of file docbookgen.cpp.

1216{
1218 m_t << "</entry></row>\n";
1219}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endInlineMemberName()

void DocbookGenerator::endInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1203 of file docbookgen.cpp.

1204{
1206 m_t << "</entry>";
1207}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endInlineMemberType()

void DocbookGenerator::endInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1191 of file docbookgen.cpp.

1192{
1194 m_t << "</entry>";
1195}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endItemList()

void DocbookGenerator::endItemList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 147 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endItemListItem()

void DocbookGenerator::endItemListItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 152 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endLabels()

void DocbookGenerator::endLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1023 of file docbookgen.cpp.

1024{
1026}

References DB_GEN_C.

◆ endMemberDeclaration()

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

Implements OutputGenIntf.

Definition at line 242 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endMemberDescription()

void DocbookGenerator::endMemberDescription ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 240 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endMemberDoc()

void DocbookGenerator::endMemberDoc ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 924 of file docbookgen.cpp.

925{
927 m_t << "</computeroutput></para>";
928}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endMemberDocList()

void DocbookGenerator::endMemberDocList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1339 of file docbookgen.cpp.

1340{
1342 m_inGroup = TRUE;
1343}

References DB_GEN_C, m_inGroup, and TRUE.

◆ endMemberDocName()

void DocbookGenerator::endMemberDocName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 968 of file docbookgen.cpp.

969{
971}

References DB_GEN_C.

◆ endMemberDocPrefixItem()

void DocbookGenerator::endMemberDocPrefixItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1063 of file docbookgen.cpp.

1064{
1066 m_t << "</computeroutput>";
1067}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endMemberDocSimple()

void DocbookGenerator::endMemberDocSimple ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 1176 of file docbookgen.cpp.

1177{
1179 m_t << " </tbody>\n";
1180 m_t << " </tgroup>\n";
1181 m_t << "</table>\n";
1182 m_simpleTable = false;
1183}

References DB_GEN_C, m_simpleTable, and OutputGenerator::m_t.

◆ endMemberGroup()

void DocbookGenerator::endMemberGroup ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 986 of file docbookgen.cpp.

987{
989 m_t << "</simplesect>\n";
990}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endMemberGroupDocs()

void DocbookGenerator::endMemberGroupDocs ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 223 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endMemberGroupHeader()

void DocbookGenerator::endMemberGroupHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 977 of file docbookgen.cpp.

978{
980 m_t << "</title>\n";
981}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endMemberHeader()

void DocbookGenerator::endMemberHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 761 of file docbookgen.cpp.

762{
764 m_t << " </title>\n";
765}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endMemberItem()

void DocbookGenerator::endMemberItem ( MemberItemType )
overridevirtual

Implements OutputGenIntf.

Definition at line 818 of file docbookgen.cpp.

819{
821 m_t << "</para>\n";
822}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endMemberList()

void DocbookGenerator::endMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 801 of file docbookgen.cpp.

802{
804 if (m_inListItem[m_levelListItem]) m_t << "</listitem>\n";
806 m_t << " </itemizedlist>\n";
808 if (m_inSimpleSect[m_levelListItem]) m_t << "</simplesect>\n";
810}

References DB_GEN_C, FALSE, m_inListItem, m_inSimpleSect, m_levelListItem, and OutputGenerator::m_t.

◆ endMemberSections()

void DocbookGenerator::endMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 199 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endMemberSubtitle()

void DocbookGenerator::endMemberSubtitle ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 205 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endMemberTemplateParams()

void DocbookGenerator::endMemberTemplateParams ( const QCString & ,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1126 of file docbookgen.cpp.

1127{
1129 m_t << "</para>";
1130 m_t << "<para>";
1131}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endPageDoc()

void DocbookGenerator::endPageDoc ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 272 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endPageRef()

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

Implements OutputGenIntf.

Definition at line 194 of file docbookgen.h.

194{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endParagraph()

void DocbookGenerator::endParagraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 743 of file docbookgen.cpp.

744{
746 m_t << "</para>\n";
747}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endParameterDefVal()

void DocbookGenerator::endParameterDefVal ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1115 of file docbookgen.cpp.

1116{
1118 if (!m_denseText) m_t << "</computeroutput>\n";
1119}

References DB_GEN_C, m_denseText, and OutputGenerator::m_t.

◆ endParameterExtra()

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

Implements OutputGenIntf.

Definition at line 1098 of file docbookgen.cpp.

1099{
1101 if (last && closeBracket)
1102 {
1103 m_t << ")";
1104 }
1105}

References DB_GEN_C, and OutputGenerator::m_t.

◆ endParameterList()

void DocbookGenerator::endParameterList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 865 of file docbookgen.cpp.

866{
868}

References DB_GEN_C.

◆ endParameterName()

void DocbookGenerator::endParameterName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1088 of file docbookgen.cpp.

1089{
1091}

References DB_GEN_C.

◆ endParameterType()

void DocbookGenerator::endParameterType ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 281 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endPlainFile()

void DocbookGenerator::endPlainFile ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 317 of file docbookgen.h.

References OutputGenerator::endPlainFile().

Referenced by endFile().

◆ endProjectNumber()

void DocbookGenerator::endProjectNumber ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 134 of file docbookgen.h.

134{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endQuickIndices()

void DocbookGenerator::endQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 263 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ endSection()

void DocbookGenerator::endSection ( const QCString & ,
SectionType  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1138 of file docbookgen.cpp.

1139{
1141 m_t << "</title>";
1142 closeSection();
1143}

References closeSection(), DB_GEN_C, and OutputGenerator::m_t.

◆ endSmall()

void DocbookGenerator::endSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 171 of file docbookgen.h.

171{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endTextBlock()

void DocbookGenerator::endTextBlock ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 898 of file docbookgen.cpp.

899{
901 if (m_denseText)
902 {
904 m_t << "</programlisting>";
905 }
906}

References DB_GEN_C, FALSE, m_denseText, and OutputGenerator::m_t.

◆ endTextLink()

void DocbookGenerator::endTextLink ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 192 of file docbookgen.h.

192{DB_GEN_NEW};

References DB_GEN_NEW.

◆ endTitleHead()

void DocbookGenerator::endTitleHead ( const QCString & fileName,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 934 of file docbookgen.cpp.

935{
937 m_t << "</title>\n";
938 if (!name.isEmpty()) addIndexTerm(m_t, name);
939}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150

References addIndexTerm(), DB_GEN_C, QCString::isEmpty(), and OutputGenerator::m_t.

◆ endTypewriter()

void DocbookGenerator::endTypewriter ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 884 of file docbookgen.cpp.

885{
887 if (!m_denseText) m_t << "</computeroutput>\n";
888}

References DB_GEN_C, m_denseText, and OutputGenerator::m_t.

◆ exceptionEntry()

void DocbookGenerator::exceptionEntry ( const QCString & prefix,
bool closeBracket )
overridevirtual

Implements OutputGenIntf.

Definition at line 1068 of file docbookgen.cpp.

1069{
1071 if (!prefix.isEmpty())
1072 {
1073 m_t << " " << prefix << "(";
1074 }
1075 else if (closeBracket)
1076 {
1077 m_t << ")";
1078 }
1079 m_t << " ";
1080}
constexpr auto prefix
Definition anchor.cpp:44

References DB_GEN_C, OutputGenerator::m_t, and prefix.

◆ init()

void DocbookGenerator::init ( )
static

Definition at line 373 of file docbookgen.cpp.

374{
375 QCString dir=Config_getString(DOCBOOK_OUTPUT);
376 Dir d(dir.str());
377 if (!d.exists() && !d.mkdir(dir.str()))
378 {
379 term("Could not create output directory %s\n",qPrint(dir));
380 }
381
382 createSubDirs(d);
383}
#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(), OutputGenerator::dir(), Dir::exists(), Dir::mkdir(), qPrint(), and term.

Referenced by generateOutput().

◆ insertMemberAlign()

void DocbookGenerator::insertMemberAlign ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 226 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ insertMemberAlignLeft()

void DocbookGenerator::insertMemberAlignLeft ( MemberItemType ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 227 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ lastIndexPage()

void DocbookGenerator::lastIndexPage ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 275 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ lineBreak()

void DocbookGenerator::lineBreak ( const QCString & )
overridevirtual

Implements OutputGenIntf.

Definition at line 874 of file docbookgen.cpp.

875{
877 m_t << "<?linebreak?>";
878}

References DB_GEN_C, and OutputGenerator::m_t.

◆ openSection()

void DocbookGenerator::openSection ( const QCString & attr = QCString())
private

Definition at line 1384 of file docbookgen.cpp.

1385{
1386 m_t << "<section";
1387 if (!attr.isEmpty()) m_t << " " << attr;
1388 m_t << ">\n";
1390}

References QCString::isEmpty(), m_openSectionCount, and OutputGenerator::m_t.

Referenced by startGroupHeader(), startMemberDoc(), and startSection().

◆ operator=() [1/2]

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

Definition at line 344 of file docbookgen.cpp.

345{
346 if (this!=&og)
347 {
348 m_dir = og.m_dir;
349 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
350 m_codeGen = m_codeList->get<DocbookCodeGenerator>(OutputType::Docbook);
351 m_codeGen->setTextStream(&m_t);
353 m_inGroup = og.m_inGroup;
359 m_inLevel = og.m_inLevel;
362 }
363 return *this;
364}

References Docbook, DocbookGenerator(), m_codeGen, m_codeList, m_denseText, m_descTable, OutputGenerator::m_dir, m_firstMember, m_inGroup, m_inLevel, m_inListItem, m_inSimpleSect, m_levelListItem, m_openSectionCount, m_simpleTable, and OutputGenerator::m_t.

◆ operator=() [2/2]

DocbookGenerator & DocbookGenerator::operator= ( DocbookGenerator && )
delete

References DocbookGenerator().

◆ startAnonTypeScope()

void DocbookGenerator::startAnonTypeScope ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 212 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startBold()

void DocbookGenerator::startBold ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 823 of file docbookgen.cpp.

824{
826 m_t << "<emphasis role=\"strong\">";
827}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startCallGraph()

void DocbookGenerator::startCallGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1317 of file docbookgen.cpp.

1318{
1320}

References DB_GEN_C.

◆ startCenter()

void DocbookGenerator::startCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 168 of file docbookgen.h.

168{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startClassDiagram()

void DocbookGenerator::startClassDiagram ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 991 of file docbookgen.cpp.

992{
994 m_t << "<para>";
995}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startCompoundTemplateParams()

void DocbookGenerator::startCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1040 of file docbookgen.cpp.

1041{
1043 m_t << "<simplesect><title>";
1044}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startConstraintDocs()

void DocbookGenerator::startConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1370 of file docbookgen.cpp.

1371{
1373}

References DB_GEN_C.

◆ startConstraintList()

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

Implements OutputGenIntf.

Definition at line 1344 of file docbookgen.cpp.

1345{
1347 m_t << "<simplesect><title>";
1348 docify(header);
1349 m_t << "</title>\n";
1350}
void docify(const QCString &text) override

References DB_GEN_C, docify(), and OutputGenerator::m_t.

◆ startConstraintParam()

void DocbookGenerator::startConstraintParam ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1351 of file docbookgen.cpp.

1352{
1354 m_t << "<para><emphasis role=\"strong\">";
1355}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startConstraintType()

void DocbookGenerator::startConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1360 of file docbookgen.cpp.

1361{
1363 m_t << ":";
1364}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startContents()

void DocbookGenerator::startContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 269 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startDescForItem()

void DocbookGenerator::startDescForItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 166 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startDescTable()

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

Implements OutputGenIntf.

Definition at line 1221 of file docbookgen.cpp.

1222{
1224 int ncols = (hasInits?3:2);
1225 m_t << "<informaltable frame=\"all\">\n";
1226 if (!title.isEmpty()) m_t << "<title>" << convertToDocBook(title) << "</title>\n";
1227 m_t << " <tgroup cols=\"" << ncols << "\" align=\"left\" colsep=\"1\" rowsep=\"1\">\n";
1228 int i = 1;
1229 m_t << " <colspec colname='c" << i++ << "'/>\n";
1230 if (hasInits) m_t << " <colspec colname='c" << i++ << "' align='right'/>\n";
1231 m_t << " <colspec colname='c" << i++ << "'/>\n";
1232 m_t << "<tbody>\n";
1233 m_descTable = TRUE;
1234}

References convertToDocBook(), DB_GEN_C, QCString::isEmpty(), m_descTable, OutputGenerator::m_t, and TRUE.

◆ startDescTableData()

void DocbookGenerator::startDescTableData ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1279 of file docbookgen.cpp.

1280{
1282 m_t << "</entry><entry>";
1283}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startDescTableInit()

void DocbookGenerator::startDescTableInit ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1268 of file docbookgen.cpp.

1269{
1271 m_t << "</entry><entry>";
1272}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startDescTableRow()

void DocbookGenerator::startDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1245 of file docbookgen.cpp.

1246{
1248 m_t << "<row>";
1249 m_t << "<entry>";
1250}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startDescTableTitle()

void DocbookGenerator::startDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1258 of file docbookgen.cpp.

1259{
1261}

References DB_GEN_C.

◆ startDirDepGraph()

void DocbookGenerator::startDirDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1326 of file docbookgen.cpp.

1327{
1329}

References DB_GEN_C.

◆ startDotGraph()

void DocbookGenerator::startDotGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1299 of file docbookgen.cpp.

1300{
1302}

References DB_GEN_C.

◆ startDoxyAnchor()

void DocbookGenerator::startDoxyAnchor ( const QCString & fName,
const QCString & manName,
const QCString & anchor,
const QCString & name,
const QCString & args )
overridevirtual

Implements OutputGenIntf.

Definition at line 940 of file docbookgen.cpp.

943{
946 {
949 }
950 if (!anchor.isEmpty())
951 {
952 m_t << "<anchor xml:id=\"_" << stripPath(fName) << "_1" << anchor << "\"/>";
953 }
954}
QCString stripPath(const QCString &s)
Definition util.cpp:5292

References closeSection(), DB_GEN_C, FALSE, QCString::isEmpty(), m_descTable, m_firstMember, m_inListItem, m_levelListItem, m_simpleTable, OutputGenerator::m_t, and stripPath().

◆ startEmphasis()

void DocbookGenerator::startEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 163 of file docbookgen.h.

163{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startExamples()

void DocbookGenerator::startExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1027 of file docbookgen.cpp.

1028{
1030 m_t << "<simplesect><title>";
1032 m_t << "</title>";
1033}
virtual QCString trExamples()=0
Translator * theTranslator
Definition language.cpp:71

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

◆ startFile()

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

Implements OutputGenIntf.

Definition at line 392 of file docbookgen.cpp.

393{
395 QCString fileName=name;
396 QCString pageName;
397 QCString fileType="section";
398 if (fileName == "refman")
399 {
400 fileName="index";
401 fileType="book";
402 }
403 else if (fileName == "index")
404 {
405 fileName="mainpage";
406 fileType="chapter";
407 }
408 pageName = fileName;
410 if (!fileName.endsWith(".xml")) fileName+=".xml";
412 m_codeGen->setRelativePath(relPath);
413 m_codeGen->setSourceFileName(stripPath(fileName));
414 m_pageLinks = QCString();
415
416 m_t << "<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n";
417 m_t << "<" << fileType << " xmlns=\"http://docbook.org/ns/docbook\" version=\"5.0\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
418 if (!pageName.isEmpty()) m_t << " xml:id=\"_" << stripPath(pageName) << "\"";
419 m_t << " xml:lang=\"" << theTranslator->trISOLang() << "\"";
420 m_t << ">\n";
421}
void startPlainFile(const QCString &name) override
Definition docbookgen.h:316
virtual QCString trISOLang()=0
QCString relativePathToRoot(const QCString &name)
Definition util.cpp:3933

References DB_GEN_C, OutputGenerator::fileName(), QCString::isEmpty(), m_codeGen, m_pageLinks, OutputGenerator::m_t, relativePathToRoot(), relPath, startPlainFile(), stripPath(), and theTranslator.

◆ startGroupCollaboration()

void DocbookGenerator::startGroupCollaboration ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1290 of file docbookgen.cpp.

1291{
1293}

References DB_GEN_C.

◆ startGroupHeader()

void DocbookGenerator::startGroupHeader ( int extraIndentLevel)
overridevirtual

Implements OutputGenIntf.

Definition at line 833 of file docbookgen.cpp.

834{
835DB_GEN_C2("m_inLevel " << m_inLevel)
836DB_GEN_C2("extraIndentLevel " << extraIndentLevel)
838 if (m_inSimpleSect[m_levelListItem]) m_t << "</simplesect>\n";
840 if (m_inLevel != -1) m_inGroup = TRUE;
841 if (m_inLevel == extraIndentLevel) closeSection();
842 m_inLevel = extraIndentLevel;
843 openSection();
844 m_t << "<title>";
845}
void openSection(const QCString &attr=QCString())

References closeSection(), DB_GEN_C2, FALSE, m_firstMember, m_inGroup, m_inLevel, m_inSimpleSect, m_levelListItem, OutputGenerator::m_t, openSection(), and TRUE.

◆ startHeaderSection()

void DocbookGenerator::startHeaderSection ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 200 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startInclDepGraph()

void DocbookGenerator::startInclDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1308 of file docbookgen.cpp.

1309{
1311}

References DB_GEN_C.

◆ startIndent()

void DocbookGenerator::startIndent ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 246 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startIndexItem()

void DocbookGenerator::startIndexItem ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 149 of file docbookgen.h.

149{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startIndexKey()

void DocbookGenerator::startIndexKey ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 142 of file docbookgen.h.

142{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startIndexList()

void DocbookGenerator::startIndexList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 140 of file docbookgen.h.

140{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startIndexListItem()

void DocbookGenerator::startIndexListItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 138 of file docbookgen.h.

138{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startIndexSection()

void DocbookGenerator::startIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 448 of file docbookgen.cpp.

449{
450DB_GEN_C2("IndexSection " << is)
451 switch (is)
452 {
454 {
455 QCString dbk_projectName = Config_getString(PROJECT_NAME);
456 m_t << " <info>\n";
457 m_t << " <title>" << convertToDocBook(dbk_projectName) << "</title>\n";
458 m_t << " </info>\n";
459 }
460 break;
462 break;
464 break;
466 //Module Index\n"
467 break;
469 //Module Index\n"
470 break;
472 //Directory Index\n"
473 break;
475 //Namespace Index\n"
476 break;
478 //Concept Index\n"
479 break;
481 //Hierarchical Index\n"
482 break;
484 //m_t << "{"; //Class Index}\n"
485 break;
487 //Annotated File Index\n"
488 break;
490 //Annotated Page Index\n"
491 break;
493 m_t << "<chapter>\n";
494 m_t << " <title>";
495 break;
497 m_t << "<chapter>\n";
498 m_t << " <title>";
499 break;
501 m_t << "<chapter>\n";
502 m_t << " <title>";
503 break;
505 m_t << "<chapter>\n";
506 m_t << " <title>";
507 break;
509 m_t << "<chapter>\n";
510 m_t << " <title>";
511 break;
513 m_t << "<chapter>\n";
514 m_t << " <title>";
515 break;
517 m_t << "<chapter>\n";
518 m_t << " <title>";
519 break;
521 m_t << "<chapter>\n";
522 m_t << " <title>";
523 break;
525 break;
527 break;
529 break;
530 }
531}

References Config_getString, convertToDocBook(), DB_GEN_C2, isClassDocumentation, isClassHierarchyIndex, isCompoundIndex, isConceptDocumentation, isConceptIndex, isDirDocumentation, isDirIndex, isEndIndex, isExampleDocumentation, isFileDocumentation, isFileIndex, isMainPage, isModuleDocumentation, isModuleIndex, isNamespaceDocumentation, isNamespaceIndex, isPageDocumentation, isPageDocumentation2, isPageIndex, isTitlePageAuthor, isTitlePageStart, isTopicDocumentation, isTopicIndex, and OutputGenerator::m_t.

◆ startIndexValue()

void DocbookGenerator::startIndexValue ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 144 of file docbookgen.h.

144{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startInlineHeader()

void DocbookGenerator::startInlineHeader ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 210 of file docbookgen.h.

210{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startInlineMemberDoc()

void DocbookGenerator::startInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1209 of file docbookgen.cpp.

1210{
1212 m_t << "<entry>";
1213}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startInlineMemberName()

void DocbookGenerator::startInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1197 of file docbookgen.cpp.

1198{
1200 m_t << "<entry>";
1201}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startInlineMemberType()

void DocbookGenerator::startInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1185 of file docbookgen.cpp.

1186{
1188 m_t << "<row><entry>";
1189}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startItemList()

void DocbookGenerator::startItemList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 146 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startItemListItem()

void DocbookGenerator::startItemListItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 151 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startLabels()

void DocbookGenerator::startLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1011 of file docbookgen.cpp.

1012{
1014}

References DB_GEN_C.

◆ startMemberDeclaration()

void DocbookGenerator::startMemberDeclaration ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 241 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startMemberDescription()

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

Implements OutputGenIntf.

Definition at line 239 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startMemberDoc()

void DocbookGenerator::startMemberDoc ( const QCString & clname,
const QCString & memname,
const QCString & ,
const QCString & title,
int memCount,
int memTotal,
bool  )
overridevirtual

Implements OutputGenIntf.

Definition at line 907 of file docbookgen.cpp.

909{
910DB_GEN_C2("m_inLevel " << m_inLevel)
911 openSection();
912 m_t << " <title>" << convertToDocBook(title);
913 if (memTotal>1)
914 {
915 m_t << "<computeroutput>[" << memCount << "/" << memTotal << "]</computeroutput>";
916 }
917 m_t << "</title>\n";
918 if (!memname.isEmpty() && memname[0]!='@')
919 {
920 addIndexTerm(m_t,memname,clname);
921 addIndexTerm(m_t,clname,memname);
922 }
923}

References addIndexTerm(), convertToDocBook(), DB_GEN_C2, QCString::isEmpty(), m_inLevel, OutputGenerator::m_t, and openSection().

◆ startMemberDocList()

void DocbookGenerator::startMemberDocList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1335 of file docbookgen.cpp.

1336{
1338}

References DB_GEN_C.

◆ startMemberDocName()

void DocbookGenerator::startMemberDocName ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 963 of file docbookgen.cpp.

964{
966 m_t << "<para><computeroutput>";
967}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startMemberDocPrefixItem()

void DocbookGenerator::startMemberDocPrefixItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1058 of file docbookgen.cpp.

1059{
1061 m_t << "<computeroutput>";
1062}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startMemberDocSimple()

void DocbookGenerator::startMemberDocSimple ( bool isEnum)
overridevirtual

Implements OutputGenIntf.

Definition at line 1150 of file docbookgen.cpp.

1151{
1153 int ncols=0;
1154 QCString title;
1155 if (isEnum)
1156 {
1157 ncols = 2;
1159 }
1160 else
1161 {
1162 ncols = 3;
1164 }
1165 m_t << "<table frame=\"all\">\n";
1166 if (!title.isEmpty()) m_t << "<title>" << convertToDocBook(title) << "</title>\n";
1167 m_t << " <tgroup cols=\"" << ncols << "\" align=\"left\" colsep=\"1\" rowsep=\"1\">\n";
1168 for (int i = 0; i < ncols; i++)
1169 {
1170 m_t << " <colspec colname='c" << i+1 << "'/>\n";
1171 }
1172 m_t << "<tbody>\n";
1173 m_simpleTable = true;
1174}
virtual QCString trEnumerationValues()=0
virtual QCString trCompoundMembers()=0

References convertToDocBook(), DB_GEN_C, QCString::isEmpty(), m_simpleTable, OutputGenerator::m_t, and theTranslator.

◆ startMemberGroup()

void DocbookGenerator::startMemberGroup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 982 of file docbookgen.cpp.

983{
985}

References DB_GEN_C.

◆ startMemberGroupDocs()

void DocbookGenerator::startMemberGroupDocs ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 222 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startMemberGroupHeader()

void DocbookGenerator::startMemberGroupHeader ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 972 of file docbookgen.cpp.

973{
975 m_t << "<simplesect><title>";
976}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startMemberHeader()

void DocbookGenerator::startMemberHeader ( const QCString & anchor,
int typ )
overridevirtual

Implements OutputGenIntf.

Definition at line 753 of file docbookgen.cpp.

754{
756 m_t << "<simplesect>\n";
758 m_t << " <title>";
759}

References DB_GEN_C, m_inSimpleSect, m_levelListItem, OutputGenerator::m_t, and TRUE.

◆ startMemberItem()

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

Implements OutputGenIntf.

Definition at line 811 of file docbookgen.cpp.

812{
814 if (m_inListItem[m_levelListItem]) m_t << "</listitem>\n";
815 m_t << " <listitem><para>";
817}

References DB_GEN_C, m_inListItem, m_levelListItem, OutputGenerator::m_t, and TRUE.

◆ startMemberList()

void DocbookGenerator::startMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 795 of file docbookgen.cpp.

796{
798 m_t << " <itemizedlist>\n";
800}

References DB_GEN_C, m_levelListItem, and OutputGenerator::m_t.

◆ startMemberSections()

void DocbookGenerator::startMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 198 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startMemberSubtitle()

void DocbookGenerator::startMemberSubtitle ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 204 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startMemberTemplateParams()

void DocbookGenerator::startMemberTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1121 of file docbookgen.cpp.

1122{
1124}

References DB_GEN_C.

◆ startPageDoc()

void DocbookGenerator::startPageDoc ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 271 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startPageRef()

void DocbookGenerator::startPageRef ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 193 of file docbookgen.h.

193{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startParagraph()

void DocbookGenerator::startParagraph ( const QCString & )
overridevirtual

Implements OutputGenIntf.

Definition at line 737 of file docbookgen.cpp.

738{
740 m_t << "<para>\n";
741}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startParameterDefVal()

void DocbookGenerator::startParameterDefVal ( const char * sep)
overridevirtual

Implements OutputGenIntf.

Definition at line 1108 of file docbookgen.cpp.

1109{
1111 m_t << sep;
1112 if (!m_denseText) m_t << "<computeroutput>";
1113}

References DB_GEN_C, m_denseText, and OutputGenerator::m_t.

◆ startParameterExtra()

void DocbookGenerator::startParameterExtra ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1093 of file docbookgen.cpp.

1094{
1096}

References DB_GEN_C.

◆ startParameterList()

void DocbookGenerator::startParameterList ( bool openBracket)
overridevirtual

Implements OutputGenIntf.

Definition at line 860 of file docbookgen.cpp.

861{
863 if (openBracket) m_t << "(";
864}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startParameterName()

void DocbookGenerator::startParameterName ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 1082 of file docbookgen.cpp.

1083{
1085 m_t << " ";
1086}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startParameterType()

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

Implements OutputGenIntf.

Definition at line 280 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startPlainFile()

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

Implements OutputGenIntf.

Definition at line 316 of file docbookgen.h.

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

References OutputGenerator::startPlainFile().

Referenced by startFile().

◆ startProjectNumber()

void DocbookGenerator::startProjectNumber ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 133 of file docbookgen.h.

133{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startQuickIndices()

void DocbookGenerator::startQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 262 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ startSection()

void DocbookGenerator::startSection ( const QCString & lab,
const QCString & ,
SectionType  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1132 of file docbookgen.cpp.

1133{
1135 openSection("xml:id=\"_" + stripPath(lab) + "\"");
1136 m_t << "<title>";
1137}

References DB_GEN_C, OutputGenerator::m_t, openSection(), and stripPath().

◆ startSmall()

void DocbookGenerator::startSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 170 of file docbookgen.h.

170{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startTextBlock()

void DocbookGenerator::startTextBlock ( bool dense)
overridevirtual

Implements OutputGenIntf.

Definition at line 889 of file docbookgen.cpp.

890{
892 if (dense)
893 {
895 m_t << "<programlisting linenumbering=\"unnumbered\">";
896 }
897}

References DB_GEN_C, m_denseText, OutputGenerator::m_t, and TRUE.

◆ startTextLink()

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

Implements OutputGenIntf.

Definition at line 191 of file docbookgen.h.

191{DB_GEN_NEW};

References DB_GEN_NEW.

◆ startTitleHead()

void DocbookGenerator::startTitleHead ( const QCString & )
overridevirtual

Implements OutputGenIntf.

Definition at line 929 of file docbookgen.cpp.

930{
932 m_t << "<title>";
933}

References DB_GEN_C, and OutputGenerator::m_t.

◆ startTypewriter()

void DocbookGenerator::startTypewriter ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 879 of file docbookgen.cpp.

880{
882 if (!m_denseText) m_t << "<computeroutput>";
883}

References DB_GEN_C, m_denseText, and OutputGenerator::m_t.

◆ type()

OutputType DocbookGenerator::type ( ) const
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 120 of file docbookgen.h.

120{ return OutputType::Docbook; }

References Docbook.

Referenced by writeLocalToc().

◆ writeAnchor()

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

Implements OutputGenIntf.

Definition at line 174 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeChar()

void DocbookGenerator::writeChar ( char c)
overridevirtual

Implements OutputGenIntf.

Definition at line 1050 of file docbookgen.cpp.

1051{
1053 char cs[2];
1054 cs[0]=c;
1055 cs[1]=0;
1056 docify(cs);
1057}

References DB_GEN_C, and docify().

◆ writeDoc()

void DocbookGenerator::writeDoc ( const IDocNodeAST * node,
const Definition * ctx,
const MemberDef * md,
int id )
overridevirtual

Implements OutputGenIntf.

Definition at line 726 of file docbookgen.cpp.

727{
729 auto astImpl = dynamic_cast<const DocNodeAST*>(ast);
730 if (astImpl)
731 {
732 DocbookDocVisitor visitor(m_t,*m_codeList,ctx?ctx->getDefFileExtension():QCString());
733 std::visit(visitor,astImpl->root);
734 }
735}
virtual QCString getDefFileExtension() const =0

References DB_GEN_C, Definition::getDefFileExtension(), m_codeList, and OutputGenerator::m_t.

◆ writeFooter()

void DocbookGenerator::writeFooter ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 129 of file docbookgen.h.

129{DB_GEN_NEW};

References DB_GEN_NEW.

◆ writeGraphicalHierarchy()

void DocbookGenerator::writeGraphicalHierarchy ( DotGfxHierarchyTable & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 261 of file docbookgen.h.

261{DB_GEN_NEW};

References DB_GEN_NEW.

◆ writeInheritedSectionTitle()

void DocbookGenerator::writeInheritedSectionTitle ( const QCString & ,
const QCString & ref,
const QCString & file,
const QCString & anchor,
const QCString & title,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 1406 of file docbookgen.cpp.

1410{
1412 m_t << theTranslator->trInheritedFrom(convertToDocBook(title), objectLinkToString(ref, file, anchor, name));
1413}
virtual QCString trInheritedFrom(const QCString &members, const QCString &what)=0
static QCString objectLinkToString(const QCString &, const QCString &f, const QCString &anchor, const QCString &text)

References convertToDocBook(), DB_GEN_C, OutputGenerator::m_t, objectLinkToString(), and theTranslator.

◆ writeLabel()

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

Implements OutputGenIntf.

Definition at line 1016 of file docbookgen.cpp.

1017{
1019 m_t << "<computeroutput>[" << l << "]</computeroutput>";
1020 if (!isLast) m_t << ", ";
1021}

References DB_GEN_C, and OutputGenerator::m_t.

◆ writeLatexSpacing()

void DocbookGenerator::writeLatexSpacing ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 236 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeLocalToc()

void DocbookGenerator::writeLocalToc ( const SectionRefs & sr,
const LocalToc & lt )
overridevirtual

Implements OutputGenIntf.

Definition at line 1415 of file docbookgen.cpp.

1416{
1417 if (localToc.isDocbookEnabled())
1418 {
1419 m_t << " <toc>\n";
1420 m_t << " <title>" << theTranslator->trRTFTableOfContents() << "</title>\n";
1421 int level=1;
1422 int maxLevel = localToc.docbookLevel();
1423 BoolVector inLi(maxLevel+1,false);
1424 for (const SectionInfo *si : sectionRefs)
1425 {
1426 SectionType type = si->type();
1427 if (type.isSection())
1428 {
1429 //printf(" level=%d title=%s\n",level,qPrint(si->title));
1430 int nextLevel = type.level();
1431 if (nextLevel>level)
1432 {
1433 for (int l=level;l<nextLevel;l++)
1434 {
1435 if (l < maxLevel) m_t << " <tocdiv>\n";
1436 }
1437 }
1438 else if (nextLevel<level)
1439 {
1440 for (int l=level;l>nextLevel;l--)
1441 {
1442 inLi[l]=FALSE;
1443 if (l <= maxLevel) m_t << " </tocdiv>\n";
1444 }
1445 }
1446 if (nextLevel <= maxLevel)
1447 {
1448 QCString titleDoc = convertToDocBook(si->title());
1449 QCString label = convertToDocBook(si->label());
1450 if (titleDoc.isEmpty()) titleDoc = label;
1451 m_t << " <tocentry>" << titleDoc << "</tocentry>\n";
1452 }
1453 inLi[nextLevel]=TRUE;
1454 level = nextLevel;
1455 }
1456 }
1457 if (level > maxLevel) level = maxLevel;
1458 while (level>1 && level <= maxLevel)
1459 {
1460 inLi[level]=FALSE;
1461 m_t << "</tocdiv>\n";
1462 level--;
1463 }
1464 m_t << " </toc>\n";
1465 }
1466}
OutputType type() const override
Definition docbookgen.h:120
virtual QCString trRTFTableOfContents()=0
std::vector< bool > BoolVector
Definition containers.h:36

References convertToDocBook(), LocalToc::docbookLevel(), FALSE, LocalToc::isDocbookEnabled(), QCString::isEmpty(), OutputGenerator::m_t, theTranslator, TRUE, and type().

◆ writeLogo()

void DocbookGenerator::writeLogo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 266 of file docbookgen.h.

266{DB_GEN_NEW};

References DB_GEN_NEW.

◆ writeNavigationPath()

void DocbookGenerator::writeNavigationPath ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 265 of file docbookgen.h.

265{DB_GEN_NEW};

References DB_GEN_NEW.

◆ writeNonBreakableSpace()

void DocbookGenerator::writeNonBreakableSpace ( int n)
overridevirtual

Implements OutputGenIntf.

Definition at line 869 of file docbookgen.cpp.

870{
872 for (int i=0;i<n;i++) m_t << "&#160;";
873}

References DB_GEN_C, and OutputGenerator::m_t.

◆ writeObjectLink()

void DocbookGenerator::writeObjectLink ( const QCString & ref,
const QCString & f,
const QCString & anchor,
const QCString & text )
overridevirtual

Implements OutputGenIntf.

Definition at line 789 of file docbookgen.cpp.

791{
793 m_t << objectLinkToString(ref,f,anchor,text);
794}

References DB_GEN_C, OutputGenerator::m_t, and objectLinkToString().

◆ writePageLink()

void DocbookGenerator::writePageLink ( const QCString & name,
bool first )
overridevirtual

Implements OutputGenIntf.

Definition at line 713 of file docbookgen.cpp.

714{
716 QCString link;
717 link.sprintf(" <xi:include href=\"%s.xml\" xmlns:xi=\"http://www.w3.org/2001/XInclude\"/>\n",
718 name.data());
719 if (first)
720 m_t << link;
721 else
722 // Buffer page links and write them after all sections are closed
723 m_pageLinks += link;
724}
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159

References QCString::data(), DB_GEN_C, m_pageLinks, OutputGenerator::m_t, and QCString::sprintf().

Referenced by endIndexSection().

◆ writeQuickLinks()

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

Implements OutputGenIntf.

Definition at line 267 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeRuler()

void DocbookGenerator::writeRuler ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 846 of file docbookgen.cpp.

847{
848DB_GEN_C2("m_inLevel " << m_inLevel)
849DB_GEN_C2("m_inGroup " << m_inGroup)
850 if (m_inGroup) closeSection();
852}

References closeSection(), DB_GEN_C2, FALSE, m_inGroup, and m_inLevel.

◆ writeSearchInfo()

void DocbookGenerator::writeSearchInfo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 128 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeSplitBar()

void DocbookGenerator::writeSplitBar ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 264 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeStartAnnoItem()

void DocbookGenerator::writeStartAnnoItem ( const QCString & ,
const QCString & ,
const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 237 of file docbookgen.h.

238 {DB_GEN_NEW};

References DB_GEN_NEW.

◆ writeString()

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

Implements OutputGenIntf.

Definition at line 748 of file docbookgen.cpp.

749{
751 m_t << text;
752}

References DB_GEN_C, and OutputGenerator::m_t.

◆ writeStyleInfo()

void DocbookGenerator::writeStyleInfo ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 135 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeSummaryLink()

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

Implements OutputGenIntf.

Definition at line 268 of file docbookgen.h.

References DB_GEN_EMPTY.

◆ writeSynopsis()

void DocbookGenerator::writeSynopsis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 248 of file docbookgen.h.

References DB_GEN_EMPTY.

Member Data Documentation

◆ m_codeGen

DocbookCodeGenerator* DocbookGenerator::m_codeGen = nullptr
private

◆ m_codeList

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

Definition at line 325 of file docbookgen.h.

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

◆ m_denseText

bool DocbookGenerator::m_denseText = false
private

◆ m_descTable

bool DocbookGenerator::m_descTable = false
private

◆ m_firstMember

bool DocbookGenerator::m_firstMember = false
private

Definition at line 335 of file docbookgen.h.

Referenced by DocbookGenerator(), operator=(), startDoxyAnchor(), and startGroupHeader().

◆ m_inGroup

bool DocbookGenerator::m_inGroup = false
private

◆ m_inLevel

int DocbookGenerator::m_inLevel = -1
private

◆ m_inListItem

std::array<bool,20> DocbookGenerator::m_inListItem = { false, }
private

Definition at line 330 of file docbookgen.h.

330{ false, };

Referenced by DocbookGenerator(), endMemberList(), operator=(), startDoxyAnchor(), and startMemberItem().

◆ m_inSimpleSect

std::array<bool,20> DocbookGenerator::m_inSimpleSect = { false, }
private

Definition at line 331 of file docbookgen.h.

331{ false, };

Referenced by DocbookGenerator(), endMemberList(), operator=(), startGroupHeader(), and startMemberHeader().

◆ m_levelListItem

int DocbookGenerator::m_levelListItem = 0
private

◆ m_openSectionCount

int DocbookGenerator::m_openSectionCount = 0
private

◆ m_pageLinks

QCString DocbookGenerator::m_pageLinks
private

Definition at line 337 of file docbookgen.h.

Referenced by endFile(), startFile(), and writePageLink().

◆ m_simpleTable

bool DocbookGenerator::m_simpleTable = false
private

◆ relPath

QCString DocbookGenerator::relPath
private

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