diff options
author | Igor Zhbanov <i.zhbanov@samsung.com> | 2012-10-09 20:43:20 +0400 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-10-10 08:39:14 -0700 |
commit | 03948718c1ffc35860b6663f0d04a15b6c87aaba (patch) | |
tree | e5c4e2b55092a7e7c5fba198423601ad61cf9562 /po | |
parent | 72ff7dfe7222fddf784bc866bfe7f1ec226e407d (diff) |
Adding report generator facility (v2)
This report generator adds the facility to generate correctly parsable
reports in HTML and CSV format. It separates document structure from
text formatting, enhances code readability and simplifies report generating.
Also it makes possible adding other formats such as TXT or XML.
This report generator implements the following document structure:
body
\---> section
|---> header
|---> paragraph
\---> table
\---> table row
\---> table cell
The report body consists of a number of sections (a.k.a. <div>s,
a.k.a. tabs).
Each section can contain headers (<h1>, <h2>, <h3>), paragraphs (<p>)
and tables (<table>).
A header is a single line of text.
Paragraphs can contain only text.
A table consists of table rows. A table row consists of table cells.
A table cell can contain only text.
Each section, table, row or cell could have its own formatting.
To distinguish elements from others of its type, each element could have
an unique identifier (see enums section_type, table_type, row_type and
cell_type below). These identifiers are used in formatter implementations
to produce special formatting.
Example of usage:
report_maker report(REPORT_OFF);
report.set_type(REPORT_HTML);
report.begin_section();
report.add_header("Big report");
report.begin_paragraph("Some text");
report.begin_table();
report.begin_row();
report.begin_cell();
report.add("Something");
report.begin_cell(CELL_SPECIAL);
report.add("Foo bar");
report.finish_report();
const char *result = report.get_result();
Diffstat (limited to 'po')
-rw-r--r-- | po/Makevars | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/po/Makevars b/po/Makevars index f28386a..bbb9ebe 100644 --- a/po/Makevars +++ b/po/Makevars @@ -8,7 +8,7 @@ subdir = po top_builddir = .. # These options get passed to xgettext. -XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=__ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding |