diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-06-24 08:57:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-24 08:57:30 (GMT) |
commit | 56c60e84e6dd6d7e4e7774be24d1402782fd3230 (patch) | |
tree | 4341e26d4bf860fec4c5784b042a5c9130ae2da4 /src/translator.h | |
parent | ba30b13cfd4910a5913f080a039fc429ec8a7e3f (diff) | |
parent | 154e877cc2e8b10091d7e0068b6f6d5793cd29f3 (diff) | |
download | Doxygen-56c60e84e6dd6d7e4e7774be24d1402782fd3230.zip Doxygen-56c60e84e6dd6d7e4e7774be24d1402782fd3230.tar.gz Doxygen-56c60e84e6dd6d7e4e7774be24d1402782fd3230.tar.bz2 |
Merge branch 'master' into feature/bug_tableofcontents_latex
Diffstat (limited to 'src/translator.h')
-rw-r--r-- | src/translator.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/translator.h b/src/translator.h index 7092174..9da2317 100644 --- a/src/translator.h +++ b/src/translator.h @@ -19,6 +19,8 @@ #define TRANSLATOR_H #include "classdef.h" +#include "config.h" +#include "vhdldocgen.h" /** Abstract base class for all translatable text fragments. */ class Translator @@ -41,6 +43,36 @@ class Translator virtual QCString idLanguage() = 0; virtual QCString latexLanguageSupportCommand() = 0; + /*! + * Sets the LaTeX font encoding to be used. The default is set to `T1`, + * in case another font encoding has to be used this can be specified with + * this routine. In case no font encoding is required the empty string + * can be returned. + */ + virtual QCString latexFontenc() { return "T1"; } + /*! + * Sets the commands to be insered directly after the `\\begin{document}` + * in the LaTeX document. + */ + virtual QCString latexDocumentPre() { return ""; } + /*! + * Sets the commands to be insered directly before the `\\end{document}` + * in the LaTeX document. + */ + virtual QCString latexDocumentPost() { return ""; } + /*! + * Set the name to be used as latex command. + */ + virtual QCString latexCommandName() + { + QCString latex_command = Config_getString(LATEX_CMD_NAME); + if (latex_command.isEmpty()) latex_command = "latex"; + if (Config_getBool(USE_PDFLATEX)) + { + if (latex_command == "latex") latex_command = "pdflatex"; + } + return latex_command; + } // --- Language translation methods ------------------- @@ -570,6 +602,20 @@ class Translator virtual QCString trSingletonReference(const char *sName) = 0; virtual QCString trServiceGeneratedFromFiles(bool single) = 0; virtual QCString trSingletonGeneratedFromFiles(bool single) = 0; + +////////////////////////////////////////////////////////////////////////// +// new since 1.8.15 +////////////////////////////////////////////////////////////////////////// + + virtual QCString trDesignUnitHierarchy() = 0; + virtual QCString trDesignUnitList() = 0; + virtual QCString trDesignUnitMembers() = 0; + virtual QCString trDesignUnitListDescription() = 0; + virtual QCString trDesignUnitIndex() = 0; + virtual QCString trDesignUnits() = 0; + virtual QCString trFunctionAndProc() = 0; + virtual QCString trVhdlType(uint64 type,bool single) = 0; + virtual QCString trCustomReference(const char *name) = 0; }; #endif |