[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Group premium quotes--setting PDF file name
From: |
Greg Chicares |
Subject: |
Re: [lmi] Group premium quotes--setting PDF file name |
Date: |
Mon, 17 Aug 2015 14:37:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On 2015-08-16 17:07, Greg Chicares wrote:
> First of all, don't read this before September, especially not if you're
> on vacation.
That prefatory comment applies here, too.
This comment is interesting:
void group_premium_pdf_generator_wx::save(
...
// This is pretty baroque: to specify the name of the file after wxPdfDC
// creation, we need to poke print data stored inside it.
wxPdfDCImpl* const impl = dynamic_cast<wxPdfDCImpl*>(pdf_dc.GetImpl());
LMI_ASSERT(impl);
impl->GetPrintData().SetFilename(output_filename);
This save() function is called only by ledger_emitter::finish(), which
supplies 'output_filename'. But ledger_emitter::initiate() assembles the
same filename string:
case_filepath_.string() + ".quote.pdf"
so it would seem natural to pass it there to
group_premium_pdf_generator::create()
But I'm sure I'm missing something, which I just want to understand.
- Re: [lmi] Group premium quotes, Greg Chicares, 2015/08/12
- [lmi] Group premium quotes, Greg Chicares, 2015/08/16
- [lmi] Number of "eligibles" [Was: Group premium quotes], Greg Chicares, 2015/08/18
- Re: [lmi] Number of "eligibles" [Was: Group premium quotes], Vadim Zeitlin, 2015/08/18
- Re: [lmi] Number of "eligibles" [Was: Group premium quotes], Greg Chicares, 2015/08/26
- Re: [lmi] Number of "eligibles" [Was: Group premium quotes], Vadim Zeitlin, 2015/08/26
- Re: [lmi] Number of "eligibles" [Was: Group premium quotes], Greg Chicares, 2015/08/26
- Re: [lmi] Number of "eligibles" [Was: Group premium quotes], Vadim Zeitlin, 2015/08/27