summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* bug_765867 Ampersand not rendered correctly in HTML Help indexalbert-github2021-06-101-5/+5
| | | | | | Corresponds to issue #5994 In the index the (index.hhk) the special HTML characters were not escaped (as done for the index.hhc (see HtmlHelp::addContentsItem). This is corrected.
* Fix issues caused by QCString::rawData and QCString::operator[]Dimitri van Heesch2021-04-261-1/+1
| | | | | - methods were marked const but still returned a non-const reference, cause wrongly optimized code for some platforms/compilers
* Fix for crash due to wrong function prototype for portable_iconv_openDimitri van Heesch2021-04-231-1/+1
|
* Refactoring: remove implicit conversion from QCString to const char *Dimitri van Heesch2021-04-221-31/+31
| | | | | | | | | | | | | | | | | 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: replace QFile/FTextStream with fstream/stringstreamDimitri van Heesch2021-03-181-33/+24
|
* Refactoring: Replaced QFileInfo with FileInfoDimitri van Heesch2021-03-181-2/+2
| | | | | - FileInfo is based on ghc::filesystem, a std::filesystem compatible implementation that does not require C++17.
* Problems generating chm documentationalbert-github2021-03-041-1/+9
| | | | | | | Generating doxygen's own manual in chm mode crashed (`qmake doc s_chm`). The problem was introduced during: Refactoring: replace QRegExp by std::regex in htmlhelp.cpp (1d993b03f) Looks like that a std::string cannot add a null pointer to a std::string
* Refactoring: replaced std::regex with own much faster implementationDimitri van Heesch2021-03-021-3/+3
|
* Some performance tweaks + remove setting of global localeDimitri van Heesch2021-02-221-1/+1
|
* Refactoring: replace QRegExp by std::regex in rtfstyle.cppDimitri van Heesch2021-02-201-1/+1
|
* Refactoring: replace QRegExp by std::regex in htmlhelp.cppDimitri van Heesch2021-02-201-5/+7
|
* Refactoring: remove unused IndexFieldSDict classDimitri van Heesch2021-01-021-13/+0
|
* Modernize HtmlHelp classDimitri van Heesch2020-08-031-286/+294
|
* Compiler warning in htmlhelp.cppalbert-github2020-08-011-2/+2
| | | | | | | | We get the warning like: ``` src/htmlhelp.cpp:473:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 473 | char *hhcFile = "\"index.hhc\""; | ^~~~~~~~~~~~~~~ ```
* Merge branch 'feature/bug_chm_tests' of ↵Dimitri van Heesch2020-08-011-25/+34
|\ | | | | | | https://github.com/albert-github/doxygen into albert-github-feature/bug_chm_tests
| * Creating chm files for doxygen testsalbert-github2020-05-301-25/+34
| | | | | | | | | | | | | | By means of `nmake tests TEST_FLAGS="--xhtml --keep --cfg GENERATE_HTMLHELP=YES --cfg HHC_LOCATION=C:/PROGRA~2/HTMLHE~1/hhc.exe --cfg SEARCHENGINE=NO" it is possible to generate for each doxygen test an index.chm, but there are a number of problems: - it is only possible to use extension `.html` so this is now automatically done (configimpl.l) otherwise when opening the file an error is displayed. - it is not [possible to use "empty" hhc / hhk file (i.e. no `<li>` elements), in this case the files are still generated but not used anymore (error like `error: failed to run html help compiler on index.hhp` e.g. for test 1). - a full qualified / absolute is not allowed for e.g msc images (test 37) the files should anyway be on the "html" directory so just using the filename in the "hhp" file (` t << QFileInfo(imageFiles.at(i)).fileName().data() << endl;`)
* | Missing last item in htmlhelp level2 indexalbert-github2020-07-011-4/+3
| | | | | | | | | | At every second level index part the last item is missing. We should not only forward but also backward
* | Incorrect htmlhelp language code for Indonesianalbert-github2020-06-041-1/+1
|/ | | | The language code for Indonesian is `0x421` and not `0x412`, the later is for Korean.
* Removed exitCode parameter as it is always 1Dimitri van Heesch2019-12-221-3/+3
|
* Better termination messagealbert-github2019-11-221-6/+3
| | | | | In case a `WARN_LOGFILE` is used it in this file no clear whether doxygen finished correctly or exited beforehand in case a fatal error. Now a 'Exiting...' is also given in the warning log file in case an error is a fatal error.
* Spelling corrections for src directoryalbert-github2019-11-051-1/+1
| | | | | | | | Spelling corrections as found by codespell and in #561. Some reported problems were already fixed, others are fixed here, with some exceptions (a,o.): - "referenceby" in defgen.cpp as this is in the output and I cannot oversee the consequences (looks like none, but ...) - "HANGEUL_CHARSET" left as is as in some MS documentation is written: 'HANGUL_CHARSET: Also spelled "Hangeul". Specifies the Hangul Korean character set.' (https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/0d0b32ac-a836-4bd2-a112-b6000a1b4fc9).
* Improved const correctness and added support for inline namespacesDimitri van Heesch2019-04-211-2/+2
|
* Multiple addindex commands in HTML with same namealbert-github2018-10-271-3/+3
| | | | | | | | It is possible to specify an addindex multiple times. In HTML this resulted in - a 'a' tag with with the same 'name' attribute - in CHM only one occurrence was shown. this has been corrected. (see e.g. the index of 'flex' in the CHM manual generated ffrom master).
* Fixed for index.hhp output when using template engineDimitri van Heesch2016-05-281-1/+1
|
* Simplified code of fix for Bug 765001Christoph Lipka2016-05-011-10/+1
|
* Merge branch 'master' into fix_765001Christoph Lipka2016-04-271-2/+2
|\
| * Bug 765002 - `@addindex`entries fail to link to the exact location in ↵Christoph Lipka2016-04-261-2/+2
| | | | | | | | Compiled HTML Help.
* | Bug 765001 - Bad character escaping scheme in HTML anchor generation.Christoph Lipka2016-04-271-1/+11
|/
* Changed configuration mechanism to directly access options in order to ↵Dimitri van Heesch2016-01-171-14/+14
| | | | improve performance
* Bump copyright yearDimitri van Heesch2015-02-261-1/+1
|
* Fixed a couple of cases where sharing string data could lead to corruptionDimitri van Heesch2015-01-021-2/+2
| | | | | Also made dangerous string access more visible by introducing rawData(). This replaces data() which will now return a constant string.
* Fixed a number of issues (resource leaks, uninitialized members, etc) found ↵Dimitri van Heesch2014-08-311-0/+1
| | | | by coverity
* Merge pull request #147 from albert-github/feature/bug_chm_multiple_imagesDimitri van Heesch2014-03-231-1/+1
|\ | | | | Chm don't add images multiple times
| * Chm don't add images multiple timesalbert-github2014-03-231-1/+1
| | | | | | | | Don 't add image to list in case it is already present (happened for image extsearch_flow.png in the doxygen manual).
* | Enable Previous and Next buttons in chm output filealbert-github2014-03-231-6/+22
|/ | | | Enables the Previous and Next buttons in case of a binary table of contents in the chm output file (binary toc is a requirement for the Precious and Next buttons).
* Updated copyrightDimitri van Heesch2014-02-111-1/+1
|
* Missing & and chars after " in tree of chm documentationDimitri van Heesch2014-02-041-1/+2
| | | | | | | | In the chm-doxygen manual we see that for: - the command \& the & is missing - commands containing a " all text is missing after this " These are known limitations of the chm format (see e.g. http://www.helpware.net/htmlhelp/hhwreadme.htm)
* Reduced and improved functionality of QListDimitri van Heesch2013-12-301-2/+3
| | | | | | | | | - operations on current index and node (next(), prev(), last(), first()) have been removed. - access to internal nodes has been removed. - old QList has been renamed to QInternalList for use inside qtools only. - added type safe compare, new, and delete operations (compareValues(), newValue(), deleteValue()). - add compareValues also to QDict for consistency. - changed doxygen's implementation to comply with the new QList and QDict interface.
* Esperanto not supported by htmlhelp compilerAlbert2013-10-211-1/+4
| | | | reverting for esperanto to default language (US English)
* Patch regarding generating the rules file for the windows build regarding ↵Albert2013-10-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | languages, some inconsistencies in the (windows) build system, corrections to some spelling. - maintainers.txt Spelling correction - config.xml Added missing languages Extended some descriptions - htmlhelp.cpp Added missing languages Spelling corrections - language.cpp Corrected call in respect to Serbian-Cyrillic - translator_br.h Spelling correction - translator_fa.h Corrected (not used) define in respect to LeftToRight - translator_mk.h Spelling correction - translator_sc.h Corrected in respect to consistency for Serbian-Cyrillic - Doxygen.sln Added project dependency as otherwise there might be a problem with the generation of version.cpp - Doxygen.vcproj Added rules for selecting languages to be used during translation Corrected some incorrect references / directories Corrected names of generated files / directories so they won't overwrite / conflict (especially during parallel builds) Corrected name of genhead <-> gen_head (consistency with rules file) - Doxywizard.vcproj Corrected some incorrect references / directories Corrected names of generated files / directories so they won't overwrite / conflict (especially during parallel builds) Note place of resulting executable has hanged (more consistent now) - Settings.rules Corrected place where configure file can be found - Version.rules Corrected place where configure file can be found - doxyindexer.vcproj Corrected some incorrect references / directories Corrected names of generated files / directories so they won't overwrite / conflict (especially during parallel builds) - doxysearch.vcproj Corrected some incorrect references / directories Corrected names of generated files / directories so they won't overwrite / conflict (especially during parallel builds) - iconv.vcproj Corrected some incorrect references / directories Corrected names of generated files / directories so they won't overwrite / conflict (especially during parallel builds) - qtools.vcproj Corrected some incorrect references / directories Corrected names of generated files / directories so they won't overwrite / conflict (especially during parallel builds) - lang_cfg.py Script to generate the file lang_cfg.h based on the specified languages in the windows GUI or in the configure script. - languages.py Script to generate languages pane in the windows GUI This file has to be called outside visual studio as it generates the rules for the Languages pane in the GUI (command on src directory python languages.py > ..\winbuild\Languages.rules) - Languages.rules Result file from language.py (old file was completely wrong and not used) This file has to be generated outside visual studio as it contains the rules for the Languages pane in the GUI - configure Use lang_cfg.py script (consistency) instead of (internal) perl script.
* Release-1.8.3.1-20130512Dimitri van Heesch2013-05-121-1/+1
|
* Release-1.8.3.1-20130209Dimitri van Heesch2013-02-091-0/+2
|
* Release-1.8.3.1Dimitri van Heesch2013-01-201-2/+2
|
* Release-1.8.3Dimitri van Heesch2012-12-261-47/+0
|
* Release-1.8.2-20121118Dimitri van Heesch2012-11-181-2/+6
|
* Release-1.8.2-20120930Dimitri van Heesch2012-09-301-4/+4
|
* Release-1.8.2Dimitri van Heesch2012-08-111-8/+26
|
* Release-1.8.1.2-20120729Dimitri van Heesch2012-07-291-1/+1
|
* Release-1.8.1.1Dimitri van Heesch2012-06-101-2/+4
|
* Release-1.8.0-20120408Dimitri van Heesch2012-04-081-1/+3
|