[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f9ab0c3 5/6: Start numbering with the cover p
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f9ab0c3 5/6: Start numbering with the cover page (excluding mce_finra) |
Date: |
Thu, 25 Apr 2019 16:49:26 -0400 (EDT) |
branch: master
commit f9ab0c38ceb09b651003be2363c162130cf76520
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Start numbering with the cover page (excluding mce_finra)
---
pdf_command_wx.cpp | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 19778f9..d00c4d4 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -1333,14 +1333,19 @@ class numbered_page : public page_with_marginals
};
/// Generic cover page for most ledger types.
+///
+/// See discussion here:
+/// https://lists.nongnu.org/archive/html/lmi/2019-04/msg00024.html
-class cover_page : public logical_page
+class cover_page : public numbered_page
{
public:
- using logical_page::logical_page;
+ using numbered_page::numbered_page;
void render() override
{
+ // Call base-class implementation to render the footer.
+ numbered_page::render();
int const height_contents = writer_.output_html
(writer_.get_horz_margin()
,writer_.get_vert_margin()
@@ -1362,6 +1367,19 @@ class cover_page : public logical_page
,height_contents
);
}
+
+ private:
+ int get_extra_pages_needed() override
+ {
+ return 0;
+ }
+
+ // Only the lower part of the footer is wanted here.
+ std::string get_upper_footer_template_name() const override
+ {
+ return std::string {};
+ }
+
};
// Simplest possible page which is entirely defined by its external template
- [lmi-commits] [lmi] master updated (e3a3984 -> 1344708), Greg Chicares, 2019/04/25
- [lmi-commits] [lmi] master 820fcb7 1/6: Update list of handy commands, Greg Chicares, 2019/04/25
- [lmi-commits] [lmi] master 1a87915 3/6: Default 'git diff.colormoved' to "plain", Greg Chicares, 2019/04/25
- [lmi-commits] [lmi] master 8c87709 4/6: Prepare to number cover pages, Greg Chicares, 2019/04/25
- [lmi-commits] [lmi] master 0cd5be1 2/6: Upgrade to 64-bit cygwin, Greg Chicares, 2019/04/25
- [lmi-commits] [lmi] master f9ab0c3 5/6: Start numbering with the cover page (excluding mce_finra),
Greg Chicares <=
- [lmi-commits] [lmi] master 1344708 6/6: Expunge a misleading comment, Greg Chicares, 2019/04/25