[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 614fb47 135/156: Add supplemental reports pag
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 614fb47 135/156: Add supplemental reports pages to private placement illustrations |
Date: |
Tue, 30 Jan 2018 17:22:32 -0500 (EST) |
branch: master
commit 614fb47baa09cc7bc414a7edded9398b212877f3
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Add supplemental reports pages to private placement illustrations
This is completely straightforward and just reuses the same
supplemental_report_base class.
---
ledger_pdf_generator_wx.cpp | 34 +++++++++++++++++++++++++++
reg_d_group_supplemental_report.mustache | 7 ++++++
reg_d_individual_supplemental_report.mustache | 11 +++++++++
3 files changed, 52 insertions(+)
diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index ae480e8..96baaa2 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -2492,6 +2492,18 @@ class reg_d_group_basic : public
page_with_basic_tabular_report
}
};
+class reg_d_group_supplemental_report : public supplemental_report_base
+{
+ public:
+ using supplemental_report_base::supplemental_report_base;
+
+ private:
+ std::string get_fixed_page_contents() const override
+ {
+ return "{{>reg_d_group_supplemental_report}}";
+ }
+};
+
// Private group placement illustration.
class pdf_illustration_reg_d_group : public pdf_illustration
{
@@ -2516,6 +2528,10 @@ class pdf_illustration_reg_d_group : public
pdf_illustration
add<standard_page>("reg_d_group_column_headings");
add<standard_page>("reg_d_group_narrative_summary");
add<standard_page>("reg_d_group_narrative_summary2");
+ if(invar.SupplementalReport)
+ {
+ add<reg_d_group_supplemental_report>(get_interpolator());
+ }
}
std::string get_upper_footer_template_name() const override
@@ -2762,6 +2778,18 @@ class reg_d_individual_cur : public
page_with_tabular_report
}
};
+class reg_d_individual_supplemental_report : public supplemental_report_base
+{
+ public:
+ using supplemental_report_base::supplemental_report_base;
+
+ private:
+ std::string get_fixed_page_contents() const override
+ {
+ return "{{>reg_d_individual_supplemental_report}}";
+ }
+};
+
// Private individual placement illustration.
class pdf_illustration_reg_d_individual : public pdf_illustration
{
@@ -2772,6 +2800,8 @@ class pdf_illustration_reg_d_individual : public
pdf_illustration
)
:pdf_illustration(ledger, output)
{
+ auto const& invar = ledger.GetLedgerInvariant();
+
// Define variables specific to this illustration.
add_abbreviated_variable("CorpName", 140);
add_abbreviated_variable("Insured1", 140);
@@ -2784,6 +2814,10 @@ class pdf_illustration_reg_d_individual : public
pdf_illustration
add<standard_page>("reg_d_individual_notes1");
add<standard_page>("reg_d_individual_notes2");
add<standard_page>("reg_d_individual_notes3");
+ if(invar.SupplementalReport)
+ {
+ add<reg_d_individual_supplemental_report>(get_interpolator());
+ }
}
std::string get_upper_footer_template_name() const override
diff --git a/reg_d_group_supplemental_report.mustache
b/reg_d_group_supplemental_report.mustache
new file mode 100644
index 0000000..4cf6d6a
--- /dev/null
+++ b/reg_d_group_supplemental_report.mustache
@@ -0,0 +1,7 @@
+{{>reg_d_group_header_upper}}
+<p align="center">{{SupplementalReportTitle}}</p>
+{{>reg_d_group_header_lower}}
+
+{{>dollar_units}}
+
+{{! The supplemental report table itself is generated from C++ code }}
diff --git a/reg_d_individual_supplemental_report.mustache
b/reg_d_individual_supplemental_report.mustache
new file mode 100644
index 0000000..7198dfa
--- /dev/null
+++ b/reg_d_individual_supplemental_report.mustache
@@ -0,0 +1,11 @@
+{{>reg_d_individual_header}}
+
+<font size="-1">
+
+<p align="center">{{SupplementalReportTitle}}</p>
+
+</font>
+
+{{>dollar_units}}
+
+{{! The supplemental report table itself is generated from C++ code }}
- [lmi-commits] [lmi] master acb7aae 049/156: Add numbered_page::get_extra_pages_needed() hook, (continued)
- [lmi-commits] [lmi] master acb7aae 049/156: Add numbered_page::get_extra_pages_needed() hook, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master c0d68e1 122/156: Add rate of return pages of the individual placement illustration, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 875ca7d 039/156: Rename StateIsTX ledger variable to StateIsTexas, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 31048c8 047/156: Make wx_table_generator even more customizable, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 10dd0a9 051/156: Factor enum_output_mode into a separate header to allow its reuse, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 8fa972e 052/156: Add "Tabular Detail, continued" page to the PDF illustration, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master ca6e17c 031/156: Add function generating a standard header and use it, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master c378bc5 064/156: Remove unnecessary value_cast inclusion, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 41de2e2 140/156: Add helper expand_template() method, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 3e8e257 017/156: Add pdf_illustration_regular and narrative_summary_page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 614fb47 135/156: Add supplemental reports pages to private placement illustrations,
Greg Chicares <=
- [lmi-commits] [lmi] master 49cc809 072/156: Remove HTML construction helpers not needed any more, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master efc01fa 046/156: Allow disabling separator lines in wx_table_generator, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master e20544f 018/156: Add check for the ledger type, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master a0a167e 144/156: Rename "compliance_tracking_number" template to "imprimatur", Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 982c9f0 149/156: Remove consecutive blank lines from a Mustache template, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master ec73905 058/156: Add extra pair of braces to std::array<> initializer for clang, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 6a5cd32 079/156: Add "Table Rating" to the header if necessary, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master b01d478 029/156: Resurrect ledger XML IO code as new ledger_evaluator, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 89c676d 009/156: Add pdf_writer_wx::get_page_height() helper, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 8e26a76 004/156: Improve encapsulation by returning only wxDC from pdf_writer_wx, Greg Chicares, 2018/01/30