Update of /cvsroot/boost/boost/tools/quickbook/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10876/detail
Modified Files:
actions.cpp
Log Message:
callouts refinement
Index: actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/actions.cpp,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- actions.cpp 27 Feb 2007 15:22:15 -0000 1.48
+++ actions.cpp 28 Feb 2007 10:20:37 -0000 1.49
@@ -832,18 +832,31 @@
int callout_id = 0;
}
- void cpp_code_snippet_grammar::callout(iterator first, iterator last) const
+ void cpp_code_snippet_grammar::callout(iterator first, iterator last, char
const* role) const
{
using detail::callout_id;
- code += "``'''<co id=\"";
+ code += "``'''";
+ code += std::string("<phrase role=\"") + role + "\">";
+ code += "<co id=\"";
code += doc_id + boost::lexical_cast<std::string>(callout_id +
callouts.size()) + "co\" ";
code += "linkends=\"";
code += doc_id + boost::lexical_cast<std::string>(callout_id +
callouts.size()) + "\" />";
+ code += "</phrase>";
code += "'''``";
callouts.push_back(std::string(first, last));
}
+ void cpp_code_snippet_grammar::inline_callout(iterator first, iterator
last) const
+ {
+ callout(first, last, "callout_bug");
+ }
+
+ void cpp_code_snippet_grammar::line_callout(iterator first, iterator last)
const
+ {
+ callout(first, last, "line_callout_bug");
+ }
+
void cpp_code_snippet_grammar::escaped_comment(iterator first, iterator
last) const
{
if (!code.empty())
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs