Markup substitution through HelpWriterContext.
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 17 Sep 2013 17:49:12 +0000 (20:49 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 30 Oct 2013 15:45:11 +0000 (16:45 +0100)
commit5e4af5d1d5f6b1e687c88984a7d0025d6ad5c068
tree715757dd125a7f5b39aa03584d8773e9e85d180b
parent1725559ffceec5573acd7eda575230efdedefc95
Markup substitution through HelpWriterContext.

Make all calls to process the in-source strings to help output go
through HelpWriterContext.  This makes it easy to implement common
functionality using C++ mechanisms.

Moved all the HTML link processing stuff into HelpWriterContext as well
and cleaned up links.dat.  The generated HTML pages should no longer
contain broken links (but links between program pages are not there
yet).

The markup substitution itself is still done by functions in wman.cpp;
will move those into private functions in helpwritercontext.cpp as a
separate change.

Related to #685 and #969.

Change-Id: I37d45549214e49a6edab82fb64ec7b38b9e72094
13 files changed:
share/top/links.dat
src/gromacs/commandline/cmdlinehelpcontext.cpp
src/gromacs/commandline/cmdlinehelpcontext.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/onlinehelp/helpwritercontext.cpp
src/gromacs/onlinehelp/helpwritercontext.h
src/gromacs/onlinehelp/wman.cpp
src/gromacs/onlinehelp/wman.h
src/gromacs/selection/selectioncollection.cpp
src/gromacs/utility/file.cpp
src/gromacs/utility/file.h
src/gromacs/utility/stringutil.cpp
src/gromacs/utility/stringutil.h