summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-14 04:55:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-14 04:55:44 -0400
commit6b515c0cb39670b28a1ee8f98355aecca71dfbf7 (patch)
tree8aaf46513403e0318777ef412eaf5249ad2086a3
parent1933bb2eadf5ee14d526b79fe5492e7ae0b09f19 (diff)
downloadfork-ledger-6b515c0cb39670b28a1ee8f98355aecca71dfbf7.tar.gz
fork-ledger-6b515c0cb39670b28a1ee8f98355aecca71dfbf7.tar.bz2
fork-ledger-6b515c0cb39670b28a1ee8f98355aecca71dfbf7.zip
Added #if 0'd stub code from 2.x's option.cc
-rw-r--r--src/report.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/src/report.h b/src/report.h
index d4e592b8..ccc0e231 100644
--- a/src/report.h
+++ b/src/report.h
@@ -217,7 +217,12 @@ public:
expr = args[0].to_string();
});
- OPTION(report_t, amount_data); // -j
+ OPTION_(report_t, amount_data, DO() {
+#if 0
+ format_string = session.plot_amount_format;
+#endif
+ }); // -j
+
OPTION(report_t, anon);
OPTION(report_t, ansi);
OPTION(report_t, ansi_invert);
@@ -431,9 +436,27 @@ public:
expr = args[0].to_string();
});
- OPTION(report_t, total_data); // -J
+ OPTION_(report_t, total_data, DO() {
+#if 0
+ format_string = session.plot_total_format;
+#endif
+ }); // -J
+
OPTION(report_t, totals);
- OPTION(report_t, truncate_);
+
+ OPTION_(report_t, truncate_, DO_(args) {
+#if 0
+ std::string style(optarg);
+ if (style == "leading")
+ format_t::elision_style = format_t::TRUNCATE_LEADING;
+ else if (style == "middle")
+ format_t::elision_style = format_t::TRUNCATE_MIDDLE;
+ else if (style == "trailing")
+ format_t::elision_style = format_t::TRUNCATE_TRAILING;
+ else if (style == "abbrev")
+ format_t::elision_style = format_t::ABBREVIATE;
+#endif
+ });
OPTION_(report_t, unbudgeted, DO() {
parent->budget_flags = BUDGET_UNBUDGETED;