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

Concrete visitor implementation for PerlMod output. More...

Inheritance diagram for PerlModDocVisitor:
DocVisitor

Public Member Functions

 PerlModDocVisitor (PerlModOutput &)
 
virtual ~PerlModDocVisitor ()
 
void finish ()
 
void visit (DocWord *)
 
void visit (DocLinkedWord *)
 
void visit (DocWhiteSpace *)
 
void visit (DocSymbol *)
 
void visit (DocURL *)
 
void visit (DocLineBreak *)
 
void visit (DocHorRuler *)
 
void visit (DocStyleChange *)
 
void visit (DocVerbatim *)
 
void visit (DocAnchor *)
 
void visit (DocInclude *)
 
void visit (DocIncOperator *)
 
void visit (DocFormula *)
 
void visit (DocIndexEntry *)
 
void visit (DocSimpleSectSep *)
 
void visit (DocCite *)
 
void visitPre (DocAutoList *)
 
void visitPost (DocAutoList *)
 
void visitPre (DocAutoListItem *)
 
void visitPost (DocAutoListItem *)
 
void visitPre (DocPara *)
 
void visitPost (DocPara *)
 
void visitPre (DocRoot *)
 
void visitPost (DocRoot *)
 
void visitPre (DocSimpleSect *)
 
void visitPost (DocSimpleSect *)
 
void visitPre (DocTitle *)
 
void visitPost (DocTitle *)
 
void visitPre (DocSimpleList *)
 
void visitPost (DocSimpleList *)
 
void visitPre (DocSimpleListItem *)
 
void visitPost (DocSimpleListItem *)
 
void visitPre (DocSection *)
 
void visitPost (DocSection *)
 
void visitPre (DocHtmlList *)
 
void visitPost (DocHtmlList *)
 
void visitPre (DocHtmlListItem *)
 
void visitPost (DocHtmlListItem *)
 
void visitPre (DocHtmlDescList *)
 
void visitPost (DocHtmlDescList *)
 
void visitPre (DocHtmlDescTitle *)
 
void visitPost (DocHtmlDescTitle *)
 
void visitPre (DocHtmlDescData *)
 
void visitPost (DocHtmlDescData *)
 
void visitPre (DocHtmlTable *)
 
void visitPost (DocHtmlTable *)
 
void visitPre (DocHtmlRow *)
 
void visitPost (DocHtmlRow *)
 
void visitPre (DocHtmlCell *)
 
void visitPost (DocHtmlCell *)
 
void visitPre (DocHtmlCaption *)
 
void visitPost (DocHtmlCaption *)
 
void visitPre (DocInternal *)
 
void visitPost (DocInternal *)
 
void visitPre (DocHRef *)
 
void visitPost (DocHRef *)
 
void visitPre (DocHtmlHeader *)
 
void visitPost (DocHtmlHeader *)
 
void visitPre (DocImage *)
 
void visitPost (DocImage *)
 
void visitPre (DocDotFile *)
 
void visitPost (DocDotFile *)
 
void visitPre (DocMscFile *)
 
void visitPost (DocMscFile *)
 
void visitPre (DocDiaFile *)
 
void visitPost (DocDiaFile *)
 
void visitPre (DocLink *)
 
void visitPost (DocLink *)
 
void visitPre (DocRef *)
 
void visitPost (DocRef *)
 
void visitPre (DocSecRefItem *)
 
void visitPost (DocSecRefItem *)
 
void visitPre (DocSecRefList *)
 
void visitPost (DocSecRefList *)
 
void visitPre (DocParamSect *)
 
void visitPost (DocParamSect *)
 
void visitPre (DocParamList *)
 
void visitPost (DocParamList *)
 
void visitPre (DocXRefItem *)
 
void visitPost (DocXRefItem *)
 
void visitPre (DocInternalRef *)
 
void visitPost (DocInternalRef *)
 
void visitPre (DocCopy *)
 
void visitPost (DocCopy *)
 
void visitPre (DocText *)
 
void visitPost (DocText *)
 
void visitPre (DocHtmlBlockQuote *)
 
void visitPost (DocHtmlBlockQuote *)
 
void visitPre (DocVhdlFlow *)
 
void visitPost (DocVhdlFlow *)
 
void visitPre (DocParBlock *)
 
void visitPost (DocParBlock *)
 
- Public Member Functions inherited from DocVisitor
 DocVisitor (int id)
 
virtual ~DocVisitor ()
 
int id () const
 

Private Member Functions

void addLink (const QCString &ref, const QCString &file, const QCString &anchor)
 
void enterText ()
 
void leaveText ()
 
void openItem (const char *)
 
void closeItem ()
 
void singleItem (const char *)
 
void openSubBlock (const char *=0)
 
void closeSubBlock ()
 
void openOther ()
 
void closeOther ()
 

Private Attributes

PerlModOutputm_output
 
bool m_textmode
 
bool m_textblockstart
 
QCString m_other
 

Detailed Description

Concrete visitor implementation for PerlMod output.

Definition at line 286 of file perlmodgen.cpp.

Constructor & Destructor Documentation

PerlModDocVisitor::PerlModDocVisitor ( PerlModOutput output)

Definition at line 430 of file perlmodgen.cpp.

431  : DocVisitor(DocVisitor_Other), m_output(output), m_textmode(false)
432 {
433  m_output.openList("doc");
434 }
PerlModOutput & openList(const char *s=0)
Definition: perlmodgen.cpp:167
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
const int DocVisitor_Other
Definition: docvisitor.h:29
DocVisitor(int id)
Definition: docvisitor.h:94
virtual PerlModDocVisitor::~PerlModDocVisitor ( )
inlinevirtual

Definition at line 290 of file perlmodgen.cpp.

290 { }

Member Function Documentation

void PerlModDocVisitor::addLink ( const QCString ref,
const QCString file,
const QCString anchor 
)
private

Definition at line 443 of file perlmodgen.cpp.

444 {
445  QCString link = file;
446  if (!anchor.isEmpty())
447  (link += "_1") += anchor;
448  m_output.addFieldQuotedString("link", link);
449 }
bool isEmpty() const
Definition: qcstring.h:189
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void PerlModDocVisitor::closeItem ( )
private

Definition at line 457 of file perlmodgen.cpp.

458 {
459  leaveText();
461 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeHash()
Definition: perlmodgen.cpp:170
void PerlModDocVisitor::closeOther ( )
private

Definition at line 511 of file perlmodgen.cpp.

512 {
513  // Using a secondary text stream will corrupt the perl file. Instead of
514  // printing doc => [ data => [] ], it will print doc => [] data => [].
515  /*
516  QCString other;
517  leaveText();
518  m_output.closeSave(other);
519  m_other += other;
520  */
521 }
void PerlModDocVisitor::closeSubBlock ( )
private

Definition at line 495 of file perlmodgen.cpp.

496 {
497  leaveText();
499 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeList()
Definition: perlmodgen.cpp:168
void PerlModDocVisitor::enterText ( )
private

Definition at line 463 of file perlmodgen.cpp.

464 {
465  if (m_textmode)
466  return;
467  openItem("text");
468  m_output.addField("content").add('\'');
469  m_textmode = true;
470 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addField(const char *s)
Definition: perlmodgen.cpp:154
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::finish ( )

Definition at line 436 of file perlmodgen.cpp.

437 {
438  leaveText();
440  .add(m_other);
441 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeList()
Definition: perlmodgen.cpp:168
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::leaveText ( )
private

Definition at line 472 of file perlmodgen.cpp.

473 {
474  if (!m_textmode)
475  return;
476  m_textmode = false;
477  m_output
478  .add('\'')
479  .closeHash();
480 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeHash()
Definition: perlmodgen.cpp:170
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::openItem ( const char *  name)
private

Definition at line 451 of file perlmodgen.cpp.

452 {
453  leaveText();
455 }
static QCString name
Definition: declinfo.cpp:673
PerlModOutput & openHash(const char *s=0)
Definition: perlmodgen.cpp:169
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void PerlModDocVisitor::openOther ( )
private

Definition at line 501 of file perlmodgen.cpp.

502 {
503  // Using a secondary text stream will corrupt the perl file. Instead of
504  // printing doc => [ data => [] ], it will print doc => [] data => [].
505  /*
506  leaveText();
507  m_output.openSave();
508  */
509 }
void PerlModDocVisitor::openSubBlock ( const char *  s = 0)
private

Definition at line 488 of file perlmodgen.cpp.

489 {
490  leaveText();
492  m_textblockstart = true;
493 }
PerlModOutput & openList(const char *s=0)
Definition: perlmodgen.cpp:167
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
static QCString * s
Definition: config.cpp:1042
void PerlModDocVisitor::singleItem ( const char *  name)
private

Definition at line 482 of file perlmodgen.cpp.

483 {
484  openItem(name);
485  closeItem();
486 }
static QCString name
Definition: declinfo.cpp:673
void openItem(const char *)
Definition: perlmodgen.cpp:451
void PerlModDocVisitor::visit ( DocWord w)
virtual

Implements DocVisitor.

Definition at line 523 of file perlmodgen.cpp.

524 {
525  enterText();
526  m_output.addQuoted(w->word());
527 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
QCString word() const
Definition: docparser.h:199
PerlModOutput & addQuoted(const char *s)
Definition: perlmodgen.cpp:140
void PerlModDocVisitor::visit ( DocLinkedWord w)
virtual

Implements DocVisitor.

Definition at line 529 of file perlmodgen.cpp.

530 {
531  openItem("url");
532  addLink(w->ref(), w->file(), w->anchor());
533  m_output.addFieldQuotedString("content", w->word());
534  closeItem();
535 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
QCString ref() const
Definition: docparser.h:219
void addLink(const QCString &ref, const QCString &file, const QCString &anchor)
Definition: perlmodgen.cpp:443
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
QCString word() const
Definition: docparser.h:215
QCString file() const
Definition: docparser.h:217
QCString anchor() const
Definition: docparser.h:220
void PerlModDocVisitor::visit ( DocWhiteSpace )
virtual

Implements DocVisitor.

Definition at line 537 of file perlmodgen.cpp.

538 {
539  enterText();
540  m_output.add(' ');
541 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visit ( DocSymbol sy)
virtual

Implements DocVisitor.

Definition at line 543 of file perlmodgen.cpp.

544 {
546  const char *accent=0;
547  if (res-> symb)
548  {
549  switch (res->type)
550  {
552  enterText();
553  m_output.add(res->symb);
554  break;
556  enterText();
557  m_output.add(res->symb[0]);
558  break;
560  leaveText();
561  openItem("symbol");
562  m_output.addFieldQuotedString("symbol", res->symb);
563  closeItem();
564  break;
565  default:
566  switch(res->type)
567  {
569  accent = "umlaut";
570  break;
572  accent = "acute";
573  break;
575  accent = "grave";
576  break;
578  accent = "circ";
579  break;
581  accent = "slash";
582  break;
584  accent = "tilde";
585  break;
587  accent = "cedilla";
588  break;
590  accent = "ring";
591  break;
592  default:
593  break;
594  }
595  leaveText();
596  if (accent)
597  {
598  openItem("accent");
599  m_output
600  .addFieldQuotedString("accent", accent)
601  .addFieldQuotedChar("letter", res->symb[0]);
602  closeItem();
603  }
604  break;
605  }
606  }
607  else
608  {
609  err("perl: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(sy->symbol(),TRUE));
610  }
611 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
static HtmlEntityMapper * instance()
Definition: htmlentity.cpp:341
const DocSymbol::PerlSymb * perl(DocSymbol::SymType symb) const
Access routine to the perl struct with the perl code of the HTML entity.
Definition: htmlentity.cpp:460
const char * symb
Definition: docparser.h:413
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void err(const char *fmt,...)
Definition: message.cpp:226
PerlModOutput & addFieldQuotedChar(const char *field, char content)
Definition: perlmodgen.cpp:155
SymType symbol() const
Definition: docparser.h:418
const PerlType type
Definition: docparser.h:414
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
const bool TRUE
Definition: qglobal.h:371
void PerlModDocVisitor::visit ( DocURL u)
virtual

Implements DocVisitor.

Definition at line 613 of file perlmodgen.cpp.

614 {
615  openItem("url");
616  m_output.addFieldQuotedString("content", u->url());
617  closeItem();
618 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
QCString url() const
Definition: docparser.h:239
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void PerlModDocVisitor::visit ( DocLineBreak )
virtual

Implements DocVisitor.

Definition at line 620 of file perlmodgen.cpp.

620 { singleItem("linebreak"); }
void singleItem(const char *)
Definition: perlmodgen.cpp:482
void PerlModDocVisitor::visit ( DocHorRuler )
virtual

Implements DocVisitor.

Definition at line 621 of file perlmodgen.cpp.

621 { singleItem("hruler"); }
void singleItem(const char *)
Definition: perlmodgen.cpp:482
void PerlModDocVisitor::visit ( DocStyleChange s)
virtual

Implements DocVisitor.

Definition at line 623 of file perlmodgen.cpp.

624 {
625  const char *style = 0;
626  switch (s->style())
627  {
628  case DocStyleChange::Bold: style = "bold"; break;
629  case DocStyleChange::Italic: style = "italic"; break;
630  case DocStyleChange::Code: style = "code"; break;
631  case DocStyleChange::Subscript: style = "subscript"; break;
632  case DocStyleChange::Superscript: style = "superscript"; break;
633  case DocStyleChange::Center: style = "center"; break;
634  case DocStyleChange::Small: style = "small"; break;
635  case DocStyleChange::Preformatted: style = "preformatted"; break;
636  case DocStyleChange::Div: style = "div"; break;
637  case DocStyleChange::Span: style = "span"; break;
638 
639  }
640  openItem("style");
641  m_output.addFieldQuotedString("style", style)
642  .addFieldBoolean("enable", s->enable());
643  closeItem();
644 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & addFieldBoolean(const char *field, bool content)
Definition: perlmodgen.cpp:163
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
Style style() const
Definition: docparser.h:329
bool enable() const
Definition: docparser.h:331
void PerlModDocVisitor::visit ( DocVerbatim s)
virtual

Implements DocVisitor.

Definition at line 646 of file perlmodgen.cpp.

647 {
648  const char *type = 0;
649  switch (s->type())
650  {
651  case DocVerbatim::Code:
652 #if 0
653  m_output.add("<programlisting>");
654  parseCode(m_ci,s->context(),s->text(),FALSE,0);
655  m_output.add("</programlisting>");
656 #endif
657  return;
658  case DocVerbatim::Verbatim: type = "preformatted"; break;
659  case DocVerbatim::HtmlOnly: type = "htmlonly"; break;
660  case DocVerbatim::RtfOnly: type = "rtfonly"; break;
661  case DocVerbatim::ManOnly: type = "manonly"; break;
662  case DocVerbatim::LatexOnly: type = "latexonly"; break;
663  case DocVerbatim::XmlOnly: type = "xmlonly"; break;
664  case DocVerbatim::DocbookOnly: type = "docbookonly"; break;
665  case DocVerbatim::Dot: type = "dot"; break;
666  case DocVerbatim::Msc: type = "msc"; break;
667  case DocVerbatim::PlantUML: type = "plantuml"; break;
668  }
669  openItem(type);
670  m_output.addFieldQuotedString("content", s->text());
671  closeItem();
672 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
Definition: context.cpp:1266
const bool FALSE
Definition: qglobal.h:370
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
QCString text() const
Definition: docparser.h:450
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
QCString context() const
Definition: docparser.h:451
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
Type type() const
Definition: docparser.h:449
void PerlModDocVisitor::visit ( DocAnchor anc)
virtual

Implements DocVisitor.

Definition at line 674 of file perlmodgen.cpp.

675 {
676  QCString anchor = anc->file() + "_1" + anc->anchor();
677  openItem("anchor");
678  m_output.addFieldQuotedString("id", anchor);
679  closeItem();
680 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
QCString anchor() const
Definition: docparser.h:277
QCString file() const
Definition: docparser.h:278
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void PerlModDocVisitor::visit ( DocInclude inc)
virtual

Implements DocVisitor.

Definition at line 682 of file perlmodgen.cpp.

683 {
684  const char *type = 0;
685  switch(inc->type())
686  {
688  #if 0
689  {
690  m_t << "<div class=\"fragment\"><pre>";
691  QFileInfo cfi( inc->file() );
692  FileDef fd( cfi.dirPath(), cfi.fileName() );
693  parseCode(m_ci,inc->context(),inc->text().latin1(),inc->isExample(),inc->exampleFile(), &fd);
694  m_t << "</pre></div>";
695  }
696  break;
697  #endif
698  return;
699  case DocInclude::Include:
700 #if 0
701  m_output.add("<programlisting>");
702  parseCode(m_ci,inc->context(),inc->text(),FALSE,0);
703  m_output.add("</programlisting>");
704 #endif
705  return;
706  case DocInclude::DontInclude: return;
707  case DocInclude::HtmlInclude: type = "htmlonly"; break;
708  case DocInclude::LatexInclude: type = "latexonly"; break;
709  case DocInclude::VerbInclude: type = "preformatted"; break;
710  case DocInclude::Snippet: return;
711  }
712  openItem(type);
713  m_output.addFieldQuotedString("content", inc->text());
714  closeItem();
715 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
Definition: context.cpp:1266
QCString text() const
Definition: docparser.h:503
const bool FALSE
Definition: qglobal.h:370
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
Type type() const
Definition: docparser.h:502
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
bool isExample() const
Definition: docparser.h:506
QCString file() const
Definition: docparser.h:495
QCString exampleFile() const
Definition: docparser.h:507
QCString context() const
Definition: docparser.h:504
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
The QFileInfo class provides system-independent file information.
Definition: qfileinfo.h:51
void PerlModDocVisitor::visit ( DocIncOperator )
virtual

Implements DocVisitor.

Definition at line 717 of file perlmodgen.cpp.

718 {
719 #if 0
720  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
721  // op->type(),op->isFirst(),op->isLast(),op->text().data());
722  if (op->isFirst())
723  {
724  m_output.add("<programlisting>");
725  }
726  if (op->type()!=DocIncOperator::Skip)
727  {
728  parseCode(m_ci,op->context(),op->text(),FALSE,0);
729  }
730  if (op->isLast())
731  {
732  m_output.add("</programlisting>");
733  }
734  else
735  {
736  m_output.add('\n');
737  }
738 #endif
739 }
static TemplateVariant parseCode(MemberDef *md, const QCString &scopeName, const QCString &relPath, const QCString &code, int startLine=-1, int endLine=-1, bool showLineNumbers=FALSE)
Definition: context.cpp:1266
const bool FALSE
Definition: qglobal.h:370
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visit ( DocFormula f)
virtual

Implements DocVisitor.

Definition at line 741 of file perlmodgen.cpp.

742 {
743  openItem("formula");
744  QCString id;
745  id += f->id();
746  m_output.addFieldQuotedString("id", id).addFieldQuotedString("content", f->text());
747  closeItem();
748 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
QCString text() const
Definition: docparser.h:563
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
int id() const
Definition: docvisitor.h:96
int id() const
Definition: docparser.h:565
void PerlModDocVisitor::visit ( DocIndexEntry )
virtual

Implements DocVisitor.

Definition at line 750 of file perlmodgen.cpp.

751 {
752 #if 0
753  m_output.add("<indexentry>"
754  "<primaryie>");
755  m_output.addQuoted(ie->entry());
756  m_output.add("</primaryie>"
757  "<secondaryie></secondaryie>"
758  "</indexentry>");
759 #endif
760 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addQuoted(const char *s)
Definition: perlmodgen.cpp:140
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visit ( DocSimpleSectSep )
virtual

Implements DocVisitor.

Definition at line 762 of file perlmodgen.cpp.

763 {
764 }
void PerlModDocVisitor::visit ( DocCite cite)
virtual

Implements DocVisitor.

Definition at line 766 of file perlmodgen.cpp.

767 {
768  openItem("cite");
769  m_output.addFieldQuotedString("text", cite->text());
770  closeItem();
771 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
QCString text() const
Definition: docparser.h:296
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void PerlModDocVisitor::visitPost ( DocAutoList )
virtual

Implements DocVisitor.

Definition at line 785 of file perlmodgen.cpp.

786 {
787  closeSubBlock();
788  closeItem();
789 }
void PerlModDocVisitor::visitPost ( DocAutoListItem )
virtual

Implements DocVisitor.

Definition at line 796 of file perlmodgen.cpp.

797 {
798  closeSubBlock();
799 }
void PerlModDocVisitor::visitPost ( DocPara )
virtual

Implements DocVisitor.

Definition at line 813 of file perlmodgen.cpp.

814 {
815  /*
816  closeSubBlock();
817  closeItem();
818  */
819 }
void PerlModDocVisitor::visitPost ( DocRoot )
virtual

Implements DocVisitor.

Definition at line 825 of file perlmodgen.cpp.

826 {
827 }
void PerlModDocVisitor::visitPost ( DocSimpleSect )
virtual

Implements DocVisitor.

Definition at line 861 of file perlmodgen.cpp.

862 {
863  closeSubBlock();
864  closeOther();
866 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeHash()
Definition: perlmodgen.cpp:170
void PerlModDocVisitor::visitPost ( DocTitle )
virtual

Implements DocVisitor.

Definition at line 874 of file perlmodgen.cpp.

875 {
876  closeSubBlock();
877  closeItem();
878 }
void PerlModDocVisitor::visitPost ( DocSimpleList )
virtual

Implements DocVisitor.

Definition at line 887 of file perlmodgen.cpp.

888 {
889  closeSubBlock();
890  closeItem();
891 }
void PerlModDocVisitor::visitPost ( DocSimpleListItem )
virtual

Implements DocVisitor.

Definition at line 894 of file perlmodgen.cpp.

894 { closeSubBlock(); }
void PerlModDocVisitor::visitPost ( DocSection )
virtual

Implements DocVisitor.

Definition at line 903 of file perlmodgen.cpp.

904 {
905  closeSubBlock();
906  closeItem();
907 }
void PerlModDocVisitor::visitPost ( DocHtmlList )
virtual

Implements DocVisitor.

Definition at line 916 of file perlmodgen.cpp.

917 {
918  closeSubBlock();
919  closeItem();
920 }
void PerlModDocVisitor::visitPost ( DocHtmlListItem )
virtual

Implements DocVisitor.

Definition at line 923 of file perlmodgen.cpp.

923 { closeSubBlock(); }
void PerlModDocVisitor::visitPost ( DocHtmlDescList )
virtual

Implements DocVisitor.

Definition at line 946 of file perlmodgen.cpp.

947 {
948 #if 0
949  m_output.add("</variablelist>\n");
950 #endif
951 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlDescTitle )
virtual

Implements DocVisitor.

Definition at line 960 of file perlmodgen.cpp.

961 {
962 #if 0
963  m_output.add("</term></varlistentry>\n");
964 #endif
965 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlDescData )
virtual

Implements DocVisitor.

Definition at line 974 of file perlmodgen.cpp.

975 {
976 #if 0
977  m_output.add("</listitem>\n");
978 #endif
979 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlTable )
virtual

Implements DocVisitor.

Definition at line 989 of file perlmodgen.cpp.

990 {
991 #if 0
992  m_output.add("</table>\n");
993 #endif
994 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlRow )
virtual

Implements DocVisitor.

Definition at line 1003 of file perlmodgen.cpp.

1004 {
1005 #if 0
1006  m_output.add("</row>\n");
1007 #endif
1008 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlCell )
virtual

Implements DocVisitor.

Definition at line 1017 of file perlmodgen.cpp.

1018 {
1019 #if 0
1020  m_output.add("</entry>");
1021 #endif
1022 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlCaption )
virtual

Implements DocVisitor.

Definition at line 1031 of file perlmodgen.cpp.

1032 {
1033 #if 0
1034  m_output.add("</caption>\n");
1035 #endif
1036 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocInternal )
virtual

Implements DocVisitor.

Definition at line 1045 of file perlmodgen.cpp.

1046 {
1047 #if 0
1048  m_output.add("</internal>");
1049 #endif
1050 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHRef )
virtual

Implements DocVisitor.

Definition at line 1059 of file perlmodgen.cpp.

1060 {
1061 #if 0
1062  m_output.add("</ulink>");
1063 #endif
1064 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocHtmlHeader )
virtual

Implements DocVisitor.

Definition at line 1073 of file perlmodgen.cpp.

1074 {
1075 #if 0
1076  m_output.add("</sect"); m_output.add(header->level()); m_output.add(">\n");
1077 #endif
1078 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocImage )
virtual

Implements DocVisitor.

Definition at line 1115 of file perlmodgen.cpp.

1116 {
1117 #if 0
1118  m_output.add("</image>");
1119 #endif
1120 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocDotFile )
virtual

Implements DocVisitor.

Definition at line 1129 of file perlmodgen.cpp.

1130 {
1131 #if 0
1132  m_output.add("</dotfile>");
1133 #endif
1134 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocMscFile )
virtual

Implements DocVisitor.

Definition at line 1142 of file perlmodgen.cpp.

1143 {
1144 #if 0
1145  m_output.add("<mscfile>");
1146 #endif
1147 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocDiaFile )
virtual

Implements DocVisitor.

Definition at line 1156 of file perlmodgen.cpp.

1157 {
1158 #if 0
1159  m_output.add("</diafile>");
1160 #endif
1161 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocLink )
virtual

Implements DocVisitor.

Definition at line 1170 of file perlmodgen.cpp.

1171 {
1172  closeItem();
1173 }
void PerlModDocVisitor::visitPost ( DocRef )
virtual

Implements DocVisitor.

Definition at line 1183 of file perlmodgen.cpp.

1184 {
1185  closeSubBlock();
1186  closeItem();
1187 }
void PerlModDocVisitor::visitPost ( DocSecRefItem )
virtual

Implements DocVisitor.

Definition at line 1196 of file perlmodgen.cpp.

1197 {
1198 #if 0
1199  m_output.add("</tocitem>");
1200 #endif
1201 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocSecRefList )
virtual

Implements DocVisitor.

Definition at line 1210 of file perlmodgen.cpp.

1211 {
1212 #if 0
1213  m_output.add("</toclist>");
1214 #endif
1215 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPost ( DocParamSect )
virtual

Implements DocVisitor.

Definition at line 1246 of file perlmodgen.cpp.

1247 {
1248  closeSubBlock();
1249  closeOther();
1250 }
void PerlModDocVisitor::visitPost ( DocParamList )
virtual

Implements DocVisitor.

Definition at line 1280 of file perlmodgen.cpp.

1281 {
1282  leaveText();
1284  .closeHash();
1285 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeHash()
Definition: perlmodgen.cpp:170
PerlModOutput & closeList()
Definition: perlmodgen.cpp:168
void PerlModDocVisitor::visitPost ( DocXRefItem x)
virtual

Implements DocVisitor.

Definition at line 1303 of file perlmodgen.cpp.

1304 {
1305  if (x->title().isEmpty()) return;
1306  closeSubBlock();
1307  closeItem();
1308 #if 0
1309  m_output.add("</xrefdescription>");
1310  m_output.add("</xrefsect>");
1311 #endif
1312 }
bool isEmpty() const
Definition: qcstring.h:189
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
QCString title() const
Definition: docparser.h:671
void PerlModDocVisitor::visitPost ( DocInternalRef )
virtual

Implements DocVisitor.

Definition at line 1321 of file perlmodgen.cpp.

1322 {
1323  closeSubBlock();
1324  closeItem();
1325 }
void PerlModDocVisitor::visitPost ( DocCopy )
virtual

Implements DocVisitor.

Definition at line 1331 of file perlmodgen.cpp.

1332 {
1333 }
void PerlModDocVisitor::visitPost ( DocText )
virtual

Implements DocVisitor.

Definition at line 1339 of file perlmodgen.cpp.

1340 {
1341 }
void PerlModDocVisitor::visitPost ( DocHtmlBlockQuote )
virtual

Implements DocVisitor.

Definition at line 1349 of file perlmodgen.cpp.

1350 {
1351  closeSubBlock();
1352  closeItem();
1353 }
void PerlModDocVisitor::visitPost ( DocVhdlFlow )
virtual

Implements DocVisitor.

Definition at line 1359 of file perlmodgen.cpp.

1360 {
1361 }
void PerlModDocVisitor::visitPost ( DocParBlock )
virtual

Implements DocVisitor.

Definition at line 1367 of file perlmodgen.cpp.

1368 {
1369 }
void PerlModDocVisitor::visitPre ( DocAutoList l)
virtual

Implements DocVisitor.

Definition at line 778 of file perlmodgen.cpp.

779 {
780  openItem("list");
781  m_output.addFieldQuotedString("style", l->isEnumList() ? "ordered" : "itemized");
782  openSubBlock("content");
783 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
bool isEnumList() const
Definition: docparser.h:621
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocAutoListItem )
virtual

Implements DocVisitor.

Definition at line 791 of file perlmodgen.cpp.

792 {
793  openSubBlock();
794 }
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocPara )
virtual

Implements DocVisitor.

Definition at line 801 of file perlmodgen.cpp.

802 {
803  if (m_textblockstart)
804  m_textblockstart = false;
805  else
806  singleItem("parbreak");
807  /*
808  openItem("para");
809  openSubBlock("content");
810  */
811 }
void singleItem(const char *)
Definition: perlmodgen.cpp:482
void PerlModDocVisitor::visitPre ( DocRoot )
virtual

Implements DocVisitor.

Definition at line 821 of file perlmodgen.cpp.

822 {
823 }
void PerlModDocVisitor::visitPre ( DocSimpleSect s)
virtual

Implements DocVisitor.

Definition at line 829 of file perlmodgen.cpp.

830 {
831  const char *type = 0;
832  switch (s->type())
833  {
834  case DocSimpleSect::See: type = "see"; break;
835  case DocSimpleSect::Return: type = "return"; break;
836  case DocSimpleSect::Author: type = "author"; break;
837  case DocSimpleSect::Authors: type = "authors"; break;
838  case DocSimpleSect::Version: type = "version"; break;
839  case DocSimpleSect::Since: type = "since"; break;
840  case DocSimpleSect::Date: type = "date"; break;
841  case DocSimpleSect::Note: type = "note"; break;
842  case DocSimpleSect::Warning: type = "warning"; break;
843  case DocSimpleSect::Pre: type = "pre"; break;
844  case DocSimpleSect::Post: type = "post"; break;
845  case DocSimpleSect::Copyright: type = "copyright"; break;
846  case DocSimpleSect::Invar: type = "invariant"; break;
847  case DocSimpleSect::Remark: type = "remark"; break;
848  case DocSimpleSect::Attention: type = "attention"; break;
849  case DocSimpleSect::User: type = "par"; break;
850  case DocSimpleSect::Rcs: type = "rcs"; break;
852  err("unknown simple section found\n");
853  break;
854  }
855  leaveText();
856  m_output.openHash();
857  openOther();
858  openSubBlock(type);
859 }
PerlModOutput & openHash(const char *s=0)
Definition: perlmodgen.cpp:169
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
Type type() const
Definition: docparser.h:1057
void err(const char *fmt,...)
Definition: message.cpp:226
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocTitle )
virtual

Implements DocVisitor.

Definition at line 868 of file perlmodgen.cpp.

869 {
870  openItem("title");
871  openSubBlock("content");
872 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocSimpleList )
virtual

Implements DocVisitor.

Definition at line 880 of file perlmodgen.cpp.

881 {
882  openItem("list");
883  m_output.addFieldQuotedString("style", "itemized");
884  openSubBlock("content");
885 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocSimpleListItem )
virtual

Implements DocVisitor.

Definition at line 893 of file perlmodgen.cpp.

893 { openSubBlock(); }
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocSection s)
virtual

Implements DocVisitor.

Definition at line 896 of file perlmodgen.cpp.

897 {
898  QCString sect = QCString().sprintf("sect%d",s->level());
899  openItem(sect);
900  openSubBlock("content");
901 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
int level() const
Definition: docparser.h:942
QCString & sprintf(const char *format,...)
Definition: qcstring.cpp:27
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocHtmlList l)
virtual

Implements DocVisitor.

Definition at line 909 of file perlmodgen.cpp.

910 {
911  openItem("list");
912  m_output.addFieldQuotedString("style", (l->type() == DocHtmlList::Ordered) ? "ordered" : "itemized");
913  openSubBlock("content");
914 }
Type type() const
Definition: docparser.h:1034
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocHtmlListItem )
virtual

Implements DocVisitor.

Definition at line 922 of file perlmodgen.cpp.

922 { openSubBlock(); }
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocHtmlDescList )
virtual

Implements DocVisitor.

Definition at line 939 of file perlmodgen.cpp.

940 {
941 #if 0
942  m_output.add("<variablelist>\n");
943 #endif
944 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlDescTitle )
virtual

Implements DocVisitor.

Definition at line 953 of file perlmodgen.cpp.

954 {
955 #if 0
956  m_output.add("<varlistentry><term>");
957 #endif
958 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlDescData )
virtual

Implements DocVisitor.

Definition at line 967 of file perlmodgen.cpp.

968 {
969 #if 0
970  m_output.add("<listitem>");
971 #endif
972 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlTable )
virtual

Implements DocVisitor.

Definition at line 981 of file perlmodgen.cpp.

982 {
983 #if 0
984  m_output.add("<table rows=\""); m_output.add(t->numRows());
985  m_output.add("\" cols=\""); m_output.add(t->numCols()); m_output.add("\">");
986 #endif
987 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlRow )
virtual

Implements DocVisitor.

Definition at line 996 of file perlmodgen.cpp.

997 {
998 #if 0
999  m_output.add("<row>\n");
1000 #endif
1001 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlCell )
virtual

Implements DocVisitor.

Definition at line 1010 of file perlmodgen.cpp.

1011 {
1012 #if 0
1013  if (c->isHeading()) m_output.add("<entry thead=\"yes\">"); else m_output.add("<entry thead=\"no\">");
1014 #endif
1015 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlCaption )
virtual

Implements DocVisitor.

Definition at line 1024 of file perlmodgen.cpp.

1025 {
1026 #if 0
1027  m_output.add("<caption>");
1028 #endif
1029 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocInternal )
virtual

Implements DocVisitor.

Definition at line 1038 of file perlmodgen.cpp.

1039 {
1040 #if 0
1041  m_output.add("<internal>");
1042 #endif
1043 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHRef )
virtual

Implements DocVisitor.

Definition at line 1052 of file perlmodgen.cpp.

1053 {
1054 #if 0
1055  m_output.add("<ulink url=\""); m_output.add(href->url()); m_output.add("\">");
1056 #endif
1057 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocHtmlHeader )
virtual

Implements DocVisitor.

Definition at line 1066 of file perlmodgen.cpp.

1067 {
1068 #if 0
1069  m_output.add("<sect"); m_output.add(header->level()); m_output.add(">");
1070 #endif
1071 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocImage )
virtual

Implements DocVisitor.

Definition at line 1080 of file perlmodgen.cpp.

1081 {
1082 #if 0
1083  m_output.add("<image type=\"");
1084  switch(img->type())
1085  {
1086  case DocImage::Html: m_output.add("html"); break;
1087  case DocImage::Latex: m_output.add("latex"); break;
1088  case DocImage::Rtf: m_output.add("rtf"); break;
1089  }
1090  m_output.add("\"");
1091 
1092  QCString baseName=img->name();
1093  int i;
1094  if ((i=baseName.findRev('/'))!=-1 || (i=baseName.findRev('\\'))!=-1)
1095  {
1096  baseName=baseName.right(baseName.length()-i-1);
1097  }
1098  m_output.add(" name=\""); m_output.add(baseName); m_output.add("\"");
1099  if (!img->width().isEmpty())
1100  {
1101  m_output.add(" width=\"");
1102  m_output.addQuoted(img->width());
1103  m_output.add("\"");
1104  }
1105  else if (!img->height().isEmpty())
1106  {
1107  m_output.add(" height=\"");
1108  m_output.addQuoted(img->height());
1109  m_output.add("\"");
1110  }
1111  m_output.add(">");
1112 #endif
1113 }
uint length() const
Definition: qcstring.h:195
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:95
QCString right(uint len) const
Definition: qcstring.cpp:231
PerlModOutput & addQuoted(const char *s)
Definition: perlmodgen.cpp:140
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
static QCString baseName
Definition: scanner.cpp:10890
void PerlModDocVisitor::visitPre ( DocDotFile )
virtual

Implements DocVisitor.

Definition at line 1122 of file perlmodgen.cpp.

1123 {
1124 #if 0
1125  m_output.add("<dotfile name=\""); m_output.add(df->file()); m_output.add("\">");
1126 #endif
1127 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocMscFile )
virtual

Implements DocVisitor.

Definition at line 1135 of file perlmodgen.cpp.

1136 {
1137 #if 0
1138  m_output.add("<mscfile name=\""); m_output.add(df->file()); m_output.add("\">");
1139 #endif
1140 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocDiaFile )
virtual

Implements DocVisitor.

Definition at line 1149 of file perlmodgen.cpp.

1150 {
1151 #if 0
1152  m_output.add("<diafile name=\""); m_output.add(df->file()); m_output.add("\">");
1153 #endif
1154 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocLink lnk)
virtual

Implements DocVisitor.

Definition at line 1164 of file perlmodgen.cpp.

1165 {
1166  openItem("link");
1167  addLink(lnk->ref(), lnk->file(), lnk->anchor());
1168 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
void addLink(const QCString &ref, const QCString &file, const QCString &anchor)
Definition: perlmodgen.cpp:443
void PerlModDocVisitor::visitPre ( DocRef ref)
virtual

Implements DocVisitor.

Definition at line 1175 of file perlmodgen.cpp.

1176 {
1177  openItem("ref");
1178  if (!ref->hasLinkText())
1179  m_output.addFieldQuotedString("text", ref->targetTitle());
1180  openSubBlock("content");
1181 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
QCString targetTitle() const
Definition: docparser.h:831
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
bool hasLinkText() const
Definition: docparser.h:832
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocSecRefItem )
virtual

Implements DocVisitor.

Definition at line 1189 of file perlmodgen.cpp.

1190 {
1191 #if 0
1192  m_output.add("<tocitem id=\""); m_output.add(ref->file()); m_output.add("_1"); m_output.add(ref->anchor()); m_output.add("\">");
1193 #endif
1194 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocSecRefList )
virtual

Implements DocVisitor.

Definition at line 1203 of file perlmodgen.cpp.

1204 {
1205 #if 0
1206  m_output.add("<toclist>");
1207 #endif
1208 }
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
void PerlModDocVisitor::visitPre ( DocParamSect s)
virtual

Implements DocVisitor.

Definition at line 1228 of file perlmodgen.cpp.

1229 {
1230  leaveText();
1231  const char *type = 0;
1232  switch(s->type())
1233  {
1234  case DocParamSect::Param: type = "params"; break;
1235  case DocParamSect::RetVal: type = "retvals"; break;
1236  case DocParamSect::Exception: type = "exceptions"; break;
1237  case DocParamSect::TemplateParam: type = "templateparam"; break;
1238  case DocParamSect::Unknown:
1239  err("unknown parameter section found\n");
1240  break;
1241  }
1242  openOther();
1243  openSubBlock(type);
1244 }
Type type() const
Definition: docparser.h:1101
void err(const char *fmt,...)
Definition: message.cpp:226
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocParamList pl)
virtual

Implements DocVisitor.

Definition at line 1252 of file perlmodgen.cpp.

1253 {
1254  leaveText();
1255  m_output.openHash()
1256  .openList("parameters");
1257  //QStrListIterator li(pl->parameters());
1258  //const char *s;
1260  DocNode *param;
1261  for (li.toFirst();(param=li.current());++li)
1262  {
1263  QCString s;
1264  if (param->kind()==DocNode::Kind_Word)
1265  {
1266  s = ((DocWord*)param)->word();
1267  }
1268  else if (param->kind()==DocNode::Kind_LinkedWord)
1269  {
1270  s = ((DocLinkedWord*)param)->word();
1271  }
1272  m_output.openHash()
1273  .addFieldQuotedString("name", s)
1274  .closeHash();
1275  }
1277  .openList("doc");
1278 }
PerlModOutput & openHash(const char *s=0)
Definition: perlmodgen.cpp:169
PerlModOutput & openList(const char *s=0)
Definition: perlmodgen.cpp:167
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
PerlModOutput & closeHash()
Definition: perlmodgen.cpp:170
PerlModOutput & closeList()
Definition: perlmodgen.cpp:168
PerlModOutput & addFieldQuotedString(const char *field, const char *content)
Definition: perlmodgen.cpp:159
type * current() const
Definition: qlist.h:146
const QList< DocNode > & parameters()
Definition: docparser.h:1169
static QCString * s
Definition: config.cpp:1042
void PerlModDocVisitor::visitPre ( DocXRefItem x)
virtual

Implements DocVisitor.

Definition at line 1287 of file perlmodgen.cpp.

1288 {
1289 #if 0
1290  m_output.add("<xrefsect id=\"");
1291  m_output.add(x->file()); m_output.add("_1"); m_output.add(x->anchor());
1292  m_output.add("\">");
1293  m_output.add("<xreftitle>");
1294  m_output.addQuoted(x->title());
1295  m_output.add("</xreftitle>");
1296  m_output.add("<xrefdescription>");
1297 #endif
1298  if (x->title().isEmpty()) return;
1299  openItem("xrefitem");
1300  openSubBlock("content");
1301 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
bool isEmpty() const
Definition: qcstring.h:189
PerlModOutput & m_output
Definition: perlmodgen.cpp:424
QCString anchor() const
Definition: docparser.h:670
PerlModOutput & addQuoted(const char *s)
Definition: perlmodgen.cpp:140
QCString file() const
Definition: docparser.h:669
PerlModOutput & add(char c)
Definition: perlmodgen.cpp:134
QCString title() const
Definition: docparser.h:671
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocInternalRef ref)
virtual

Implements DocVisitor.

Definition at line 1314 of file perlmodgen.cpp.

1315 {
1316  openItem("ref");
1317  addLink(0,ref->file(),ref->anchor());
1318  openSubBlock("content");
1319 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
void addLink(const QCString &ref, const QCString &file, const QCString &anchor)
Definition: perlmodgen.cpp:443
QCString anchor() const
Definition: docparser.h:859
QCString file() const
Definition: docparser.h:857
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocCopy )
virtual

Implements DocVisitor.

Definition at line 1327 of file perlmodgen.cpp.

1328 {
1329 }
void PerlModDocVisitor::visitPre ( DocText )
virtual

Implements DocVisitor.

Definition at line 1335 of file perlmodgen.cpp.

1336 {
1337 }
void PerlModDocVisitor::visitPre ( DocHtmlBlockQuote )
virtual

Implements DocVisitor.

Definition at line 1343 of file perlmodgen.cpp.

1344 {
1345  openItem("blockquote");
1346  openSubBlock("content");
1347 }
void openItem(const char *)
Definition: perlmodgen.cpp:451
void openSubBlock(const char *=0)
Definition: perlmodgen.cpp:488
void PerlModDocVisitor::visitPre ( DocVhdlFlow )
virtual

Implements DocVisitor.

Definition at line 1355 of file perlmodgen.cpp.

1356 {
1357 }
void PerlModDocVisitor::visitPre ( DocParBlock )
virtual

Implements DocVisitor.

Definition at line 1363 of file perlmodgen.cpp.

1364 {
1365 }

Member Data Documentation

QCString PerlModDocVisitor::m_other
private

Definition at line 427 of file perlmodgen.cpp.

PerlModOutput& PerlModDocVisitor::m_output
private

Definition at line 424 of file perlmodgen.cpp.

bool PerlModDocVisitor::m_textblockstart
private

Definition at line 426 of file perlmodgen.cpp.

bool PerlModDocVisitor::m_textmode
private

Definition at line 425 of file perlmodgen.cpp.


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