summaryrefslogtreecommitdiffstats
path: root/src/mandocvisitor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into feature/bug_code_langDimitri van Heesch2021-05-021-176/+197
|\
| * Fixed typo, use QCString, and some minor reformatingDimitri van Heesch2021-04-291-2/+2
| |
| * issue #8522 Javadoc: type attribute of ordered lists not preserved (in xml)albert-github2021-04-291-2/+41
| | | | | | | | | | The problem was a bit deeper, it was also valid for other output formats. Implemented the `type` and `start` attribute for all relevant output types.
| * Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the following in relation to string use - The implicit convert from 'QCString' to 'const char *' is removed - Strings parameters use 'const QCString &' as much as possible in favor over 'const char *' - 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())' - data() now always returns a valid C-string and not a 0-pointer. - when passing a string 's' to printf and related functions 'qPrint(s)' is used instead of 's.data()' - for empty string arguments 'QCString()' is used instead of '0' - The copy() operation has been removed - Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and 'qstrcmp(a,b)<0' has been replaced by 'a<b' - Parameters of string type that were default initialized with '= 0' are no initialized with '= QCString()'
| * Refactoring: Add TextStream buffer to improve output writing performanceDimitri van Heesch2021-03-281-1/+1
| | | | | | | | | | - direct use of std::stringstream and std::ostream gave a 30% drop in performance.
| * Refactoring: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-137/+137
| |
| * Refactoring: Replaced QFileInfo with FileInfoDimitri van Heesch2021-03-181-8/+7
| | | | | | | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
| * Refactoring: move Doc*Visitor::push/popEnabledDimitri van Heesch2021-01-221-17/+4
| | | | | | | | New class & name: DocVisitor::push/popHidden
| * Refactoring: modernize docparser and clientsDimitri van Heesch2021-01-221-7/+3
| |
* | Use language name to get code coloringalbert-github2021-01-171-2/+2
|/ | | | | | | | | | | In a `\code` or `~~~` or ` ``` ` environment we can define the language of a code block by specifying an extension. In markdown we see quite often the language name as code block name (especially for `python`) One can specify it by means of an `EXTENSION_MAPPING` but this is quite unnatural as it it not an extension. - see to it that the extension (and thus `EXTENSION_MAPPING`) still has precedence - in case not a known extension, try the language names. Note: with docbook the explicit name usage was missing.
* Refactoring: prepare output generators for multi-threaded useDimitri van Heesch2020-09-271-88/+79
|
* Adding commands `\rtfinclude`, `\docbookinclude`, `\maninclude` and ↵albert-github2020-01-091-0/+6
| | | | | | `\xmlinclude` Adding for consistency with `\*only`, `\htmlincclude` and `\latexinclude` the commands: `\rtfinclude`, `\docbookinclude`, `\maninclude` and `\xmlinclude`
* Merge branch 'feature/bug_html_s' of ↵Dimitri van Heesch2019-12-261-0/+1
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_html_s
| * Adding HTML s tag, XML corrections for other tagsalbert-github2019-08-161-0/+1
| | | | | | | | | | | | Adding the HTML `<s>` tag (https://www.w3schools.com/tags/tag_s.asp). Adding 's' and correcting 'inc' to 'ins' in compound.xsd
* | Split language parser into "outline parser" and "code parser"Dimitri van Heesch2019-12-031-12/+12
| |
* | Reduce the use of QString in favor of the more efficient QCStringDimitri van Heesch2019-09-211-19/+0
|/
* Merge branch 'feature/bug_endblock_msg' of ↵Dimitri van Heesch2019-08-041-1/+1
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_endblock_msg
| * Correction warning messagealbert-github2019-06-011-1/+1
| | | | | | | | Consistency
* | Merge branch 'fetaure/bug_html_ins_del_tag' of ↵Dimitri van Heesch2019-08-031-0/+2
|\ \ | | | | | | | | | https://github.com/albert-github/doxygen into albert-github-fetaure/bug_html_ins_del_tag
| * | Adding HTML tags ins and delalbert-github2019-04-041-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Github does not support the `<u>` tag for underlined text, in HTML there exists the tag `<ins>`. On https://www.w3schools.com/tags/tag_ins.asp is written: The `<ins>` tag defines a text that has been inserted into a document. Browsers will normally strike a line through deleted text and underline inserted text. Most browsers will display the `<ins>` element with the following default values: ``` ins { text-decoration: underline; } ``` analogous there exists the tag `<del>` (https://www.w3schools.com/tags/tag_del.asp): The `<del>` tag defines text that has been deleted from a document. Browsers will normally strike a line through deleted text and underline inserted text. Most browsers will display the `<del>` element with the following default values: ``` del { text-decoration: line-through; } ``` Definitions analogue to the underline and strike through tag the implementation for the other formats has been chosen.
* | issue #7126 Latex output format fixesalbert-github2019-07-281-2/+2
| | | | | | | | Based on the discussion in the proposed pull requests #7126, remove the colon in case it is clear that we have to do with a heading.
* | Remove not used classalbert-github2019-07-071-8/+0
| | | | | | | | | | | | | | As per comment in `docvisitor.h`: ``` class DocCopy; // TODO: no longer generated => remove ```
* | High consequence coverity mesagesalbert-github2019-07-021-1/+1
| | | | | | | | | | - initializing fd (analogous to htmldocvisitor) - always good to close file pointers
* | issue #7033 Syntax highlighting doesn't work when calling \dontinclude from ↵albert-github2019-06-061-2/+4
|/ | | | | | Markdown files Don't use the file name extension of the including file but of the included file. In case of no included filename or no extension, fall back of the file extension of the including file.
* Merge branch 'feature/bug_lineno_split_examples' of ↵Dimitri van Heesch2019-03-091-5/+19
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_lineno_split_examples
| * Show line numbers in "split" examplesalbert-github2019-03-031-1/+16
|/ | | | | | With the commands like `\skip`, `\skipline` it is possible to show parts of a file for further explanation / tutorials. They can be started with `\include` or `\dontinclude` but in case `\include` specifies that the line numbers have to be shown they are only shown in the full example and not in the split up example - show line numbers in split up example in case `lineno` is required - add `lineno` option to `\dontinclude` so here also line numbers can be shown.
* Refactored Definition and derived classes such that they are abstract interfacesDimitri van Heesch2019-02-281-4/+6
|
* Improved robustness of the emoji featureDimitri van Heesch2018-12-231-3/+2
| | | | | | | | Changes: - Use of `@emoji name` instead of `:name:` - Support only GitHub emojis (i.e. without spaces or special characters in the name) - Provided script to download images for LaTeX support. - XML output now has <emoji> tag with name an unicode sequence.
* Merge pull request #6602 from albert-github/feature/bug_tparamDimitri van Heesch2018-12-031-4/+1
|\ | | | | Consistency in headings and layout for template parameters (tparam)
| * Consistency in headings and layout for template parameters (tparam)albert-github2018-11-061-4/+1
| | | | | | | | | | - at some places the translation of the "Template Parameters" was not yet done - layout of the template parameters table in HTML had no default. Should be analogous to the table for normal parameters
* | issue_6517: Emoji supportalbert-github2018-10-011-0/+17
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added issue support for the different output types. - Sources of the emoji - based on the Unicode definition v11.0: - https://unicode.org/emoji/charts/full-emoji-list.html - http://www.unicode.org/emoji/charts/full-emoji-modifiers.html - github definition list: - https://api.github.com/emojis - Input of emoji: :<test>: with the restriction that direct after the opening colon and direct before the closing colon no space is allowed - doctokinizer.l, adding detection of emoji and new command `\:` - doktokinizer.h, adding "word" type TK_EMOJI - docparser.* handling of new "word" type TK_EMOJI (analogous to HTML Entities), handling of new command `\:` - cmdmapper,cpp, cmdmapper.h, adding new command `\:` - htmlentity.cpp, adding new definition required for new command `\:` - Emoji - emoji.cpp, emoji.h, class for handling emoji analogous to HTML Entities, including small directions on how to update the code when a new emoji is defined. Not everything is converted to lowercase for comparison and accents are removed. - doxygen.cpp possibility to create list of supported emoji - handling emoji for output types (analogous to HTML Entities), see documentation for different output types - docparser.h, *docvisitor.* - rtfdocvisitor.* converting output to UTF-16 (based on http://scruss.com/blog/2017/03/12/in-the-unlikely-event-you-need-to-represent-emoji-in-rtf-using-perl/) - latexdocvisitor.*, handling arguments for emoji in output (see also latexgen.cpp for meaning of the arguments of doxygenemoji). - latexgen.cpp, adding new latex command for doxygen (doxygenemoji) and prevent too many open file (code before documentclass) - config.xml, definition of `LATEX_EMOJI_DIRECTORY` with path to images required for LaTeX output - Documentation: - emojisup.doc, user description - commands.doc, description of new command `\:` - index.doc, reference to emoji chapter - xmlcmds.doc, adjust reference to next chapter as a new chapter is added - Doxyfile*, adding emoji chapter Build system - CMakeLists.txt adding new files
* Bug 667993 - HTML tags <u> and </u> not supportedalbert-github2018-07-071-0/+7
| | | | Added underline possibility and strike through possibility for the different output formats insofar it is possible (other similar possibilities are not always possible for all output formats either).
* Bug 770660 - Code snippet always shows line numbers from 1albert-github2016-09-031-0/+27
| | | | | | | | | This patch makes the handling of the \snippet and other commands consistent between the different languages (no line numbers anymore with python) and also introduces analogous to \includelineno the command \snippetlineno. Some non relevant changes: - *code.l Calculation of the end line was incorrect, in case of a snippet the end line was the number of lines of the snippet and not reltive to the start line. - *code.l made consistent over the different laguages, enabling exBlock and inlineFragment - testing/indexpage.xml in test 14 the \snippet command was used with python and giving line numbers, linenumbers are now gone (consistency)
* Warnings from CLANG compileralbert-github2016-08-281-0/+5
| | | | The CLANG compiler gave some warnings after pull request #503 ("Introducing commands includedoc and snippetdoc ") at places that are not / should not be reachable.
* Include command show line number (e.g. LaTeX)albert-github2016-08-241-2/+16
| | | | | Based on the report of Luis Vega (http://doxygen.10944.n7.nabble.com/include-inserts-line-numbers-for-LaTeX-PDF-output-td7683.html) The default setting for parseCode calls was not consistent between the different output formats, resulting in wrong settings of default options (e.g. show line numbers).
* Changed configuration mechanism to directly access options in order to ↵Dimitri van Heesch2016-01-171-2/+2
| | | | improve performance
* Bump copyright yearDimitri van Heesch2015-02-261-1/+1
|
* Bug 731947 - Support for PlantUMLDimitri van Heesch2014-08-101-0/+1
|
* Added \latexinclude command (thanks to Juan Zaratiegui for the patch)Dimitri van Heesch2014-03-271-0/+2
|
* Updated copyrightDimitri van Heesch2014-02-111-1/+1
|
* Restructered html entity handlingDimitri van Heesch2014-02-101-1/+2
|
* Recognize all HTML4 special character entitiesalbert-github2014-02-081-35/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In doxygen a limited number of HTML4 special character entities are recognized, with this patch the full list of HTML4 special character entities (see http://www.w3.org/TR/html4/sgml/entities.html) is supported (as far as they can be represented in the output format). - doxygen_manual.tex - latexgen.cpp Added wasysym package to support per thousand sign (perthousand command from textcomp didn't work properly) Added option for textcomp package so currency symbol would work properly - htmlcmds.doc Adjusted documentation, listing all entities - compound.xsd - xmlgen.cpp Removed in xsd file all references for special HTML4 character entities and placed placeholder so doxygen (in xmlgen.cpp)can automatically add the right element names. - util.cpp - util.h Define all entities with their representation for all output formats. Define access routines to the different representations Mapping (for recognition of the entities) based on running through the list of available entities, after validation of the order of the entities. A few entities contain now besides letters also numbers at the end. - docparser.h Define symbols for all entities as well as a helper struct and enum. The member m_letter is not used anymore and thus removed. All existing symbols were renamed so no confusion (i.e. errors when forgetting to rename some symbols) can occur. Obsolete references to letter removed, all letters with accents etc. are explicitly defined and not through the generic accent name plus an extra letter. - docparser.cpp Adjust used symbols to their new names. Remove references to letter (as used for accents etc.) Replace list of explicitly supported entities with call to symbol code access routine. - docbookvisitor.cpp - htmldocvisitor.cpp - latexdocvisitor.cpp - mandocvisitor.cpp - perlmodgen.cpp - printdocvisitor.h - rtfdocvisitor.cpp - textdocvisitor.cpp - xmldocvisitor.cpp Replace list of explicitly supported entities with call to access routine and use returned value to output.
* Bug 719639 - @xrefitem with empty heading stringalbert-github2013-12-011-2/+2
| | | | | | | Replaced: if (!(x->title().length())) return; by: if (x->title().isEmpty()) return;
* Bug 719639 - @xrefitem with empty heading stringalbert-github2013-12-011-1/+3
| | | | Adjusted documentation and in case the title is the empty string in a DocXRefItem the visitPre and visitPost do nothing.
* Bug 707713 - Add support for dia diagramsDimitri van Heesch2013-10-061-0/+7
|
* Added @parblock and @endparblock commandsDimitri van Heesch2013-09-241-0/+8
|
* Bug 701314 - URLs are not created on C# classes in some casesDimitri van Heesch2013-06-151-4/+17
|
* Release-1.8.3.1-20130402Dimitri van Heesch2013-04-021-1/+1
|
* Release-1.8.3.1-20130209Dimitri van Heesch2013-02-091-1/+2
|
* Release-1.8.3.1Dimitri van Heesch2013-01-201-1/+1
|