|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54814 - trunk/tools/quickbook/detail
From: daniel_james_at_[hidden]
Date: 2009-07-08 17:40:33
Author: danieljames
Date: 2009-07-08 17:40:33 EDT (Wed, 08 Jul 2009)
New Revision: 54814
URL: http://svn.boost.org/trac/boost/changeset/54814
Log:
Move the code actions a bit later in actions.hpp so they can use 'plain_char_action'.
Text files modified:
trunk/tools/quickbook/detail/actions.hpp | 126 ++++++++++++++++++++--------------------
1 files changed, 63 insertions(+), 63 deletions(-)
Modified: trunk/tools/quickbook/detail/actions.hpp
==============================================================================
--- trunk/tools/quickbook/detail/actions.hpp (original)
+++ trunk/tools/quickbook/detail/actions.hpp 2009-07-08 17:40:33 EDT (Wed, 08 Jul 2009)
@@ -345,6 +345,69 @@
std::string& save;
};
+ struct raw_char_action
+ {
+ // Prints a single raw (unprocessed) char.
+ // Allows '<', '>'... etc.
+
+ raw_char_action(collector& phrase)
+ : phrase(phrase) {}
+
+ void operator()(char ch) const;
+ void operator()(iterator first, iterator /*last*/) const;
+
+ collector& phrase;
+ };
+
+ struct plain_char_action
+ {
+ // Prints a single plain char.
+ // Converts '<' to "<"... etc See utils.hpp
+
+ plain_char_action(collector& phrase)
+ : phrase(phrase) {}
+
+ void operator()(char ch) const;
+ void operator()(iterator first, iterator /*last*/) const;
+
+ collector& phrase;
+ };
+
+ struct image_action
+ {
+ // Handles inline images
+
+ image_action(collector& phrase)
+ : phrase(phrase) {}
+
+ void operator()(iterator first, iterator last) const;
+
+ collector& phrase;
+ };
+
+ struct markup_action
+ {
+ // A generic markup action
+
+ markup_action(collector& phrase, std::string const& str)
+ : phrase(phrase), str(str) {}
+
+ template <typename T>
+ void operator()(T const&) const
+ {
+ phrase << str;
+ }
+
+ template <typename T>
+ void operator()(T const&, T const&) const
+ {
+ phrase << str;
+ }
+
+ collector& phrase;
+ std::string str;
+ };
+
typedef cpp_highlight<
span
, space
@@ -429,69 +492,6 @@
syntax_highlight& syntax_p;
};
- struct raw_char_action
- {
- // Prints a single raw (unprocessed) char.
- // Allows '<', '>'... etc.
-
- raw_char_action(collector& phrase)
- : phrase(phrase) {}
-
- void operator()(char ch) const;
- void operator()(iterator first, iterator /*last*/) const;
-
- collector& phrase;
- };
-
- struct plain_char_action
- {
- // Prints a single plain char.
- // Converts '<' to "<"... etc See utils.hpp
-
- plain_char_action(collector& phrase)
- : phrase(phrase) {}
-
- void operator()(char ch) const;
- void operator()(iterator first, iterator /*last*/) const;
-
- collector& phrase;
- };
-
- struct image_action
- {
- // Handles inline images
-
- image_action(collector& phrase)
- : phrase(phrase) {}
-
- void operator()(iterator first, iterator last) const;
-
- collector& phrase;
- };
-
- struct markup_action
- {
- // A generic markup action
-
- markup_action(collector& phrase, std::string const& str)
- : phrase(phrase), str(str) {}
-
- template <typename T>
- void operator()(T const&) const
- {
- phrase << str;
- }
-
- template <typename T>
- void operator()(T const&, T const&) const
- {
- phrase << str;
- }
-
- collector& phrase;
- std::string str;
- };
-
struct start_varlistitem_action
{
start_varlistitem_action(collector& phrase)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk