diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-03-11 19:23:58 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-03-11 19:23:58 (GMT) |
commit | f280bea9dedf210e59b80f486bb016e348a387a6 (patch) | |
tree | f24fc61bb67f6c2a6757d0317c8493af462e5f9d /src/rtfgen.cpp | |
parent | 6b40e3de857d42921d0e6b736d9768d95e948da9 (diff) | |
download | Doxygen-f280bea9dedf210e59b80f486bb016e348a387a6.zip Doxygen-f280bea9dedf210e59b80f486bb016e348a387a6.tar.gz Doxygen-f280bea9dedf210e59b80f486bb016e348a387a6.tar.bz2 |
Release-1.2.6
Diffstat (limited to 'src/rtfgen.cpp')
-rw-r--r-- | src/rtfgen.cpp | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp index 181f1a8..efae422 100644 --- a/src/rtfgen.cpp +++ b/src/rtfgen.cpp @@ -1317,27 +1317,30 @@ void RTFGenerator::writeIndexItem(const char *ref,const char *fn, // t << "}{\\pageref{" << text << "}}" << endl; //} -void RTFGenerator::writeHtmlLink(const char *url,const char *text) +void RTFGenerator::startHtmlLink(const char *url) { - if (url && Config::rtfHyperFlag) + if (Config::rtfHyperFlag) { t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \""; t << url; t << "\" }{}"; t << "}{\\fldrslt {\\cs37\\ul\\cf2 "; + } + else + { + startTypewriter(); + } +} - if (text) - docify(text); - else - docify(url); - +void RTFGenerator::endHtmlLink() +{ + if (Config::rtfHyperFlag) + { t << "}}}" << endl; } else { - startTypewriter(); - docify(text); endTypewriter(); } } @@ -2264,6 +2267,16 @@ void RTFGenerator::writeRing(char c) } } +void RTFGenerator::writeCCedil(char c) +{ + switch(c) + { + case 'C' : t << '\307'; break; + case 'c' : t << '\347'; break; + default: t << '?'; break; + } +} + /** * VERY brittle routine inline RTF's included by other RTF's. * it is recursive and ugly. |