[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d89b244 6/9: Make cover page the same for all
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d89b244 6/9: Make cover page the same for all formats but one |
Date: |
Tue, 18 Jun 2019 16:43:55 -0400 (EDT) |
branch: master
commit d89b24430e8e3687d86f740f284d8e691b5476c6
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Make cover page the same for all formats but one
Expunged the specialized class for finra cover pages.
---
pdf_command_wx.cpp | 34 +---------------------------------
1 file changed, 1 insertion(+), 33 deletions(-)
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 25e40f1..d4161c3 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -1018,38 +1018,6 @@ class pdf_illustration : protected html_interpolator,
protected pdf_writer_wx
std::vector<std::unique_ptr<logical_page>> pages_;
};
-// Cover page for finra only. PDF !! At the appropriate time, expunge
-// this class altogether, and use class cover_page instead.
-class unnumbered_cover_page : public logical_page
-{
- public:
- using logical_page::logical_page;
-
- void render() override
- {
- int const height_contents = writer_.output_html
- (writer_.get_horz_margin()
- ,writer_.get_vert_margin()
- ,writer_.get_page_width()
- ,interpolator_.expand_template("cover")
- );
-
- // There is no way to draw a border around the page contents in wxHTML
- // currently, so do it manually.
- auto& pdf_dc = writer_.dc();
-
- pdf_dc.SetPen(wxPen(illustration_rule_color, 2));
- pdf_dc.SetBrush(*wxTRANSPARENT_BRUSH);
-
- pdf_dc.DrawRectangle
- (writer_.get_horz_margin()
- ,writer_.get_vert_margin()
- ,writer_.get_page_width()
- ,height_contents
- );
- }
-};
-
// Base class for all pages with a footer and/or header, collectively called
// "marginals".
class page_with_marginals : public logical_page
@@ -2882,8 +2850,8 @@ class pdf_illustration_finra : public pdf_illustration
);
// Add all the pages.
- add<unnumbered_cover_page>();
numbered_page::start_numbering();
+ add<cover_page>();
add<finra_basic>();
add<finra_supplemental>();
add<standard_page>("finra_column_headings");
- [lmi-commits] [lmi] master updated (e019e5b -> 246081b), Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master f5bb23f 1/9: Improve product-verifier control flow, Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master d89b244 6/9: Make cover page the same for all formats but one,
Greg Chicares <=
- [lmi-commits] [lmi] master ba624fe 4/9: Refactor, Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master e90a3d1 2/9: Rename arguments, Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master 8af7bed 5/9: Apply a recent FINRA header change to Reg D formats, Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master 57bee69 3/9: Remove an ugly expedient, Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master b4f5c34 8/9: Present 'AgentPhone' and 'AgentId' on all GUI skins, Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master 246081b 9/9: Use <border> to improve layout of 'skin.xrc', Greg Chicares, 2019/06/18
- [lmi-commits] [lmi] master e030aaa 7/9: Consolidate lower footer templates, Greg Chicares, 2019/06/18