summaryrefslogtreecommitdiff
path: root/cli/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-08 21:28:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-08 21:28:46 +0200
commit577a38358b295379511ea8bb130ef1dcb7157c0f (patch)
treeb127b18e013c4d09ee1f878ae367f8d83dfd20f6 /cli/context.hxx
parentbe7e864610327863e0c717fdec417ac2dcdaa2e9 (diff)
Implement HTML pages generation
Diffstat (limited to 'cli/context.hxx')
-rw-r--r--cli/context.hxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/cli/context.hxx b/cli/context.hxx
index 194c008..f6d53c3 100644
--- a/cli/context.hxx
+++ b/cli/context.hxx
@@ -63,14 +63,23 @@ public:
string
escape (string const&) const;
- // Format the documentation string.
+ // Translate and format the documentation string. Translate converts
+ // the <arg>-style constructs to \i{arg}. Format converts the string
+ // to the output format.
//
enum output_type
{
- ot_plain
+ ot_plain,
+ ot_html
};
static string
+ translate_arg (string const&, std::set<string>&);
+
+ static string
+ translate (string const&, std::set<string> const&);
+
+ static string
format (string const&, output_type);
public: