From 8ec58236eaaee7594aa3da80adc23b58fdfe3a88 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 2 Aug 2009 18:18:14 +0000 Subject: [PATCH] Pass through more elements in doxygen2boostbook. Refs #3309. [SVN r55370] --- test/doxygen/boost/example.hpp | 42 ++++++++++++++++++++++++++++++- xsl/doxygen/doxygen2boostbook.xsl | 21 ++++++++++++---- 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a/test/doxygen/boost/example.hpp b/test/doxygen/boost/example.hpp index 58086a1..c773f7b 100644 --- a/test/doxygen/boost/example.hpp +++ b/test/doxygen/boost/example.hpp @@ -1,8 +1,20 @@ +/*! + \class example + + \brief Documentation for class example (why isn't this working?) + */ + +/*! + \def EXAMPLE + + \brief Documentation for macro example + */ + int global_integer; static int global_static_integer; const int global_const_integer = 1; static const int global_static_const_integer = 2; -enum global_enum { enumerator }; +enum global_enum { enumerator1 = 1, enumerator2 }; namespace example { @@ -43,7 +55,35 @@ namespace example enum private_class_enum { enumerator3 }; }; + /** + * Test some doxygen markup + * + * Embedded docbook list: + * + * \xmlonly + * 12 + * \endxmlonly + * + * \a Special \b Bold \c Typewriter \e Italics \em emphasis \p parameter + * + * \arg Arg1 first argument. + * \arg Arg2 second argument. + * + * \li First list item. + * \li Second list item + * + * Line 1\n + * Line 2 + * + * \code + * void foo() {} + * \endcode + * + */ + template struct example_template {}; } + +#define EXAMPLE(m) The macro \ No newline at end of file diff --git a/xsl/doxygen/doxygen2boostbook.xsl b/xsl/doxygen/doxygen2boostbook.xsl index 63a949c..4a82f2a 100644 --- a/xsl/doxygen/doxygen2boostbook.xsl +++ b/xsl/doxygen/doxygen2boostbook.xsl @@ -308,7 +308,7 @@ - + @@ -1216,12 +1216,13 @@ - - + + + - + + @@ -1230,6 +1231,10 @@ + + + + @@ -1254,6 +1259,12 @@ + + + + +