12#ifndef _PDF_LISTCTRL_H_
13#define _PDF_LISTCTRL_H_
316 bool m_drawRowBorders;
317 bool m_drawColumnBorders;
318 bool m_showContinued;
325 bool m_includeColumnHeaders;
326 std::function<void()> m_pageBreakHandler;
Class representing wxPdfDocument colours.
Definition: pdfcolour.h:40
Class representing a font providing a basic interface.
Definition: pdffont.h:29
Options that control how a wxListCtrl is rendered into a PDF document.
Definition: pdflistctrl.h:66
void SetFromRow(int row)
Set the starting row (1-indexed)
Definition: pdflistctrl.h:238
void SetBodyPdfFont(const wxPdfFont &font)
Set the PDF font for the list items (takes precedence over SetBodyFont())
Definition: pdflistctrl.h:111
void SetStyle(wxPdfListCtrlStyle style)
Set the table rendering style.
Definition: pdflistctrl.h:226
int GetToRow() const
Get the ending row (1-indexed, -1 for all)
Definition: pdflistctrl.h:268
void SetShowContinued(bool show)
Set whether to show "Continued on next page" and "(continued)" labels.
Definition: pdflistctrl.h:195
bool GetDrawColumnBorders() const
Check whether to draw vertical borders between columns.
Definition: pdflistctrl.h:189
void SetFromColumn(int column)
Set the starting column (1-indexed)
Definition: pdflistctrl.h:250
const std::function< void()> & GetPageBreakHandler() const
Get the function that starts each continuation page of the table.
Definition: pdflistctrl.h:305
int GetFromColumn() const
Get the starting column (1-indexed)
Definition: pdflistctrl.h:256
wxPdfListCtrlOptions()
Default constructor.
void SetHeaderBackgroundColour(const wxPdfColour &colour)
Set the background colour for the column headers.
Definition: pdflistctrl.h:123
wxPdfFont GetBodyPdfFont() const
Get the PDF font for the list items.
Definition: pdflistctrl.h:117
void SetIncludeColumnHeaders(bool include)
Set whether column headers should be exported.
Definition: pdflistctrl.h:286
wxPdfColour GetHeaderTextColour() const
Get the text colour for the column headers.
Definition: pdflistctrl.h:141
bool GetDrawRowBorders() const
Check whether to draw horizontal borders between rows.
Definition: pdflistctrl.h:177
int GetFromRow() const
Get the starting row (1-indexed)
Definition: pdflistctrl.h:244
wxPdfFont GetHeaderPdfFont() const
Get the PDF font for the column headers.
Definition: pdflistctrl.h:105
bool GetIncludeColumnHeaders() const
Check whether column headers should be exported.
Definition: pdflistctrl.h:292
void SetDrawColumnBorders(bool draw)
Set whether to draw vertical borders between columns.
Definition: pdflistctrl.h:183
int GetToColumn() const
Get the ending column (1-indexed, -1 for all)
Definition: pdflistctrl.h:280
wxPdfColour GetHeaderBackgroundColour() const
Get the background colour for the column headers.
Definition: pdflistctrl.h:129
void SetAlternateRowBackgroundColour(const wxPdfColour &colour)
Set the background colour for alternate rows.
Definition: pdflistctrl.h:147
wxPdfColour GetBorderColour() const
Get the colour for borders.
Definition: pdflistctrl.h:165
void SetFitToPage(bool fit)
Set whether to stretch the table to the full printable page width.
Definition: pdflistctrl.h:211
void SetHeaderPdfFont(const wxPdfFont &font)
Set the PDF font for the column headers (takes precedence over SetHeaderFont())
Definition: pdflistctrl.h:99
wxFont GetHeaderFont() const
Get the font for the column headers.
Definition: pdflistctrl.h:81
void SetDrawRowBorders(bool draw)
Set whether to draw horizontal borders between rows.
Definition: pdflistctrl.h:171
void SetBorderColour(const wxPdfColour &colour)
Set the colour for borders.
Definition: pdflistctrl.h:159
void SetToColumn(int column)
Set the ending column (1-indexed, -1 for all)
Definition: pdflistctrl.h:274
wxPdfListCtrlStyle GetStyle() const
Get the table rendering style.
Definition: pdflistctrl.h:232
void SetToRow(int row)
Set the ending row (1-indexed, -1 for all)
Definition: pdflistctrl.h:262
void SetHeaderTextColour(const wxPdfColour &colour)
Set the text colour for the column headers.
Definition: pdflistctrl.h:135
wxFont GetBodyFont() const
Get the font for the list items.
Definition: pdflistctrl.h:93
void SetPageBreakHandler(const std::function< void()> &handler)
Set a function to call instead of wxPdfDocument::AddPage() when the table fills a page.
Definition: pdflistctrl.h:299
bool GetFitToPage() const
Check whether the table is stretched to the full printable page width.
Definition: pdflistctrl.h:217
void SetHeaderFont(const wxFont &font)
Set the font for the column headers.
Definition: pdflistctrl.h:75
wxPdfColour GetAlternateRowBackgroundColour() const
Get the background colour for alternate rows.
Definition: pdflistctrl.h:153
bool GetShowContinued() const
Check whether to show "Continued on next page" and "(continued)" labels.
Definition: pdflistctrl.h:201
void SetBodyFont(const wxFont &font)
Set the font for the list items.
Definition: pdflistctrl.h:87
Interface of the wxPdfColour class.
Compile time switches for the wxPdfDocument component.
Interface of wxPdfFont class.
wxPdfListCtrlStyle
Table rendering style for wxListCtrl export.
Definition: pdflistctrl.h:30
@ wxPDF_LISTCTRL_STYLE_SIMPLE
Horizontal rules only — no vertical lines or cell fills (LaTeX booktabs style)
Definition: pdflistctrl.h:32
@ wxPDF_LISTCTRL_STYLE_GRID
Full grid with borders and optional cell fills (default)
Definition: pdflistctrl.h:31