YATiSh
Yet Another TIme SHeet
|
Exports a PDF reflecting the current state of panel #2. More...
#include <yatishPDF.h>
Public Member Functions | |
yatishPDF (const Settings &, const wxListCtrl *, const yatishDBsqlite &, const wxString &="yatish.pdf") | |
Prints a title then calls other member functions for the body of the PDF document. More... | |
~yatishPDF () | |
Writes the PDF document to the file which was given to the constructor. More... | |
Private Member Functions | |
void | Summary (const yatishDBsqlite &) |
A few pieces of information about the data to be shown by [Charts() and] Listing(). More... | |
void | Charts (const wxListCtrl *) |
Draws charts from the timeslot view only (6 columns). More... | |
void | Listing (const wxListCtrl *) |
Writes a table corresponding to the current state of panel #2 (Ctrl-T). More... | |
void | Header () |
Creates the header of the PDF document, according to user preferences (Ctrl-P). More... | |
void | Footer () |
PDF footer (page count). More... | |
void | PieChart (double, double, double, double, const Map4pie &, const wxColour *) |
Modified from charting.cpp in the wxPdfDocument samples. More... | |
void | NoMoreThan6 (Map4pie &) |
Modifies its argument map so that there is no more than six records. More... | |
Private Attributes | |
const Settings & | sttngs |
int | colmax |
int | rowmax |
wxString | whereToWrite |
Exports a PDF reflecting the current state of panel #2.
Definition at line 20 of file yatishPDF.h.
yatishPDF::yatishPDF | ( | const Settings & | s, |
const wxListCtrl * | l, | ||
const yatishDBsqlite & | m, | ||
const wxString & | p = "yatish.pdf" |
||
) |
Prints a title then calls other member functions for the body of the PDF document.
[in] | s | application settings |
[in] | l | data currently shown on panel #2* |
[in] | m | yatish SQLite driver (master) |
[in] | p | path to the (future) PDF file |
Definition at line 19 of file yatishPDF.cpp.
yatishPDF::~yatishPDF | ( | ) |
Writes the PDF document to the file which was given to the constructor.
Definition at line 43 of file yatishPDF.cpp.
|
private |
Draws charts from the timeslot view only (6 columns).
Moreover a maximum of 6 sectors will be drawn.
Definition at line 89 of file yatishPDF.cpp.
|
private |
PDF footer (page count).
Definition at line 180 of file yatishPDF.cpp.
|
private |
Creates the header of the PDF document, according to user preferences (Ctrl-P).
Definition at line 159 of file yatishPDF.cpp.
|
private |
Writes a table corresponding to the current state of panel #2 (Ctrl-T).
Definition at line 132 of file yatishPDF.cpp.
|
private |
Modifies its argument map
so that there is no more than six records.
Creates an others
key if need be, which contains the smallest items.
Definition at line 243 of file yatishPDF.cpp.
|
private |
Modified from charting.cpp
in the wxPdfDocument samples.
Definition at line 188 of file yatishPDF.cpp.
|
private |
A few pieces of information about the data to be shown by [Charts() and] Listing().
Definition at line 48 of file yatishPDF.cpp.
|
private |
Definition at line 27 of file yatishPDF.h.
|
private |
Definition at line 27 of file yatishPDF.h.
|
private |
Definition at line 26 of file yatishPDF.h.
|
private |
Definition at line 28 of file yatishPDF.h.