[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0f885a2 116/156: Define CorpNameAbbrev60 and
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0f885a2 116/156: Define CorpNameAbbrev60 and Insured1Abbrev30 in common code |
Date: |
Tue, 30 Jan 2018 17:22:26 -0500 (EST) |
branch: master
commit 0f885a2917a3c412c4134e5c7211a5eebbd4d0b0
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Define CorpNameAbbrev60 and Insured1Abbrev30 in common code
These variables are not used by the regular illustrations which, for
some reason, abbreviate both strings to 50 characters instead, but the
former is used by 2 other illustration kinds and the latter is used by
all 3 of the remaining ones, so it still seems worth it to define them
in the common code.
---
ledger_pdf_generator_wx.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index efae8c8..85006df 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -786,6 +786,9 @@ class pdf_illustration : protected html_interpolator
auto const& invar = ledger_.GetLedgerInvariant();
+ add_abbreviated_variable("CorpName", 60);
+ add_abbreviated_variable("Insured1", 30);
+
// Define the variables needed by contract_numbers template.
add_variable
("HasMasterContract"
@@ -1787,7 +1790,8 @@ class pdf_illustration_regular : public pdf_illustration
auto const& policy_name = invar.PolicyLegalName;
auto const& state_abbrev = invar.GetStatePostalAbbrev();
- // Define variables specific to this illustration.
+ // Define variables specific to this illustration which doesn't use the
+ // standard 60/30 lengths for whatever reason.
add_abbreviated_variable("CorpName", 50);
add_abbreviated_variable("Insured1", 50);
@@ -2330,9 +2334,6 @@ class pdf_illustration_nasd : public pdf_illustration
auto const& invar = ledger.GetLedgerInvariant();
// Define variables specific to this illustration.
- add_abbreviated_variable("CorpName", 60);
- add_abbreviated_variable("Insured1", 30);
-
if(!invar.ContractName.empty())
{
std::string s = invar.ContractName;
- [lmi-commits] [lmi] master b5fe850 102/156: Add NASD basic illustration page, (continued)
- [lmi-commits] [lmi] master b5fe850 102/156: Add NASD basic illustration page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 4250de9 104/156: Add first variant of NASD supplemental page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 7a1e1e8 025/156: Include the missing <cstring> header, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 8bfb896 109/156: Add NASD illustration first explanatory notes page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master ea20a31 095/156: Make pdf_illustration dtor virtual, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 61fae89 091/156: Reimplement the contract numbers fragment as an external template, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0c55621 085/156: Replace trivial PDF page classes with single standard_page one, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master ea2564b 099/156: Split the NASD header template in the upper and lower parts, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master c1bf4a8 032/156: Adjust position of the right hand side of the header manually, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 89b4674 120/156: Add automatic support for multiline super-headers, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0f885a2 116/156: Define CorpNameAbbrev60 and Insured1Abbrev30 in common code,
Greg Chicares <=
- [lmi-commits] [lmi] master 08559c3 121/156: Factor out base_suffix() and ir_suffix() functions, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 36c84ce 123/156: Add another individual private placement illustration page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 0ecc8ec 036/156: Add support for partials to our ad hoc Mustache parser, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 6f09722 107/156: Add missing words to the narrative summary continuation page, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 6510601 150/156: Rename a mute variable to avoid gcc -Wshadow warning, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 048ae05 093/156: Start NASD PDF illustration class implementation, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 5ea5c86 101/156: Simplify and correct current PDF DC font handling, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master ec490eb 153/156: Revise and extend some comments in PDF generation code, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master 38cab5e 096/156: Make footer template depend on illustration kind, Greg Chicares, 2018/01/30
- [lmi-commits] [lmi] master d1204c2 111/156: Factor out common parts of render_or_measure_fixed_page_part(), Greg Chicares, 2018/01/30