lmi-commits
[Top][All Lists]
Advanced

[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");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]