mirror of
https://github.com/boostorg/quickbook.git
synced 2026-01-27 07:02:15 +00:00
32 lines
881 B
C++
32 lines
881 B
C++
#include "fwd.hpp"
|
|
#include "boostbook.hpp"
|
|
#include "phrase.hpp"
|
|
#include "actions_class.hpp"
|
|
#include "utils.hpp"
|
|
|
|
namespace quickbook
|
|
{
|
|
void output(quickbook::actions& actions, std::string const& x)
|
|
{
|
|
actions.phrase << x;
|
|
}
|
|
|
|
void output(quickbook::actions& actions, anchor const& x) {
|
|
actions.phrase << "<anchor id=\"";
|
|
detail::print_string(x.id, actions.phrase.get());
|
|
actions.phrase << "\" />\n";
|
|
}
|
|
|
|
void output(quickbook::actions& actions, link const& x) {
|
|
actions.phrase << x.type.pre;
|
|
detail::print_string(x.destination, actions.phrase.get());
|
|
actions.phrase << "\">";
|
|
actions.phrase << x.content;
|
|
actions.phrase << x.type.post;
|
|
}
|
|
|
|
void output(quickbook::actions& actions, formatted const& x) {
|
|
actions.phrase << x.type.pre << x.content << x.type.post;
|
|
}
|
|
}
|