21 #ifndef MM_EX_HTMLBUILDER_H_ 22 #define MM_EX_HTMLBUILDER_H_ 27 #include "html_template.h" 53 void DisplayDateHeading(
const wxDateTime& startDate,
const wxDateTime& endDate,
bool withDateRange =
true,
bool withNoEndDate =
false);
54 void DisplayFooter(
const wxString& footer);
56 void init(
bool simple =
false,
const wxString& extra_style =
"");
65 void addReportHeader(
const wxString&
name,
int startDay = 1,
bool futureIgnored =
false);
66 void addHeader(
int level,
const wxString& header);
68 void addReportCurrency();
70 void addOffsetIndication(
int startDay);
71 void addFutureIgnoredIndication(
bool ignore);
75 void startSortTable();
81 void addTotalRow(
const wxString& caption,
int cols,
double value);
84 void addTotalRow(
const wxString& caption,
int cols,
const std::vector<wxString>& data);
85 void addCurrencyTotalRow(
const wxString& caption,
int cols,
const std::vector<double>& data);
86 void addMoneyTotalRow(
const wxString& caption,
int cols,
const std::vector<double>& data);
90 void addTableHeaderCell(
const wxString& value,
const wxString& css_class =
"",
int cols = 1);
93 void addMoneyCell(
double amount,
int precision = -1);
94 void addTableCellMonth(
int month,
int year = 0);
95 void addColorMarker(
const wxString& color,
bool center =
false);
96 const wxString getColor(
int i);
97 const wxString getFormattedLink(
const wxString& color,
const wxString& href_value,
const wxString& a_value);
98 const wxString getRandomColor(
bool positive);
101 void addTableCellDate(
const wxString& iso_date);
102 void addTableCell(
const wxString& value,
bool numeric =
false,
bool center =
false);
103 void addEmptyTableCell(
const int number = 1);
106 void addTableCellLink(
const wxString& href,
const wxString& value,
bool numeric =
false,
bool center =
false);
108 void end(
bool simple=
false);
113 void addDivContainer(
const wxString& style =
"container");
115 void addDivCol17_67();
116 void addDivCol25_50();
117 void addDivCol8_84();
119 void addEmptyTableRow(
int cols);
120 void startTableRow();
121 void startTableRow(
const wxString& classname);
122 void startTableRowColor(
const wxString& color);
123 void startAltTableRow();
124 void startTotalTableRow();
127 void startSpan(
const wxString& val,
const wxString& style);
131 void addText(
const wxString& text);
136 void addHorizontalLine(
int size = 0);
139 void startTableCell(
const wxString& width =
"");
142 const wxString getHTMLText()
const;
144 void addTableRow(
const wxString& label,
double data);
145 void addTableRowBold(
const wxString& label,
double data);
155 wxString todays_date;
std::vector< wxString > labels
Definition: htmlbuilder.h:42
Definition: htmlbuilder.h:47
std::vector< GraphSeries > series
Definition: htmlbuilder.h:43
std::vector< double > values
Definition: htmlbuilder.h:34
~mmHTMLBuilder()
Definition: htmlbuilder.h:51
GraphType
Definition: htmlbuilder.h:40
wxString title
Definition: htmlbuilder.h:39
std::vector< wxColour > colors
Definition: htmlbuilder.h:44
Definition: htmlbuilder.h:30
void clear()
Clears the current HTML document.
Definition: htmlbuilder.h:59
Definition: htmlbuilder.h:37
static Model_Currency & instance()
Return the static instance address for Model_Currency table Note: Assigning the address to a local va...
Definition: Model_Currency.cpp:70
Definition: htmlbuilder.h:40
wxString name
Definition: htmlbuilder.h:32
wxString type
Definition: htmlbuilder.h:33