|
wxMaxima
|
Options that control how a wxListCtrl is rendered into a PDF document. More...
#include <pdflistctrl.h>
Public Member Functions | |
| wxPdfListCtrlOptions () | |
| Default constructor. | |
| void | SetHeaderFont (const wxFont &font) |
| Set the font for the column headers. | |
| wxFont | GetHeaderFont () const |
| Get the font for the column headers. | |
| void | SetBodyFont (const wxFont &font) |
| Set the font for the list items. | |
| wxFont | GetBodyFont () const |
| Get the font for the list items. | |
| void | SetHeaderPdfFont (const wxPdfFont &font) |
| Set the PDF font for the column headers (takes precedence over SetHeaderFont()) | |
| wxPdfFont | GetHeaderPdfFont () const |
| Get the PDF font for the column headers. | |
| void | SetBodyPdfFont (const wxPdfFont &font) |
| Set the PDF font for the list items (takes precedence over SetBodyFont()) | |
| wxPdfFont | GetBodyPdfFont () const |
| Get the PDF font for the list items. | |
| void | SetHeaderBackgroundColour (const wxPdfColour &colour) |
| Set the background colour for the column headers. | |
| wxPdfColour | GetHeaderBackgroundColour () const |
| Get the background colour for the column headers. | |
| void | SetHeaderTextColour (const wxPdfColour &colour) |
| Set the text colour for the column headers. | |
| wxPdfColour | GetHeaderTextColour () const |
| Get the text colour for the column headers. | |
| void | SetAlternateRowBackgroundColour (const wxPdfColour &colour) |
| Set the background colour for alternate rows. | |
| wxPdfColour | GetAlternateRowBackgroundColour () const |
| Get the background colour for alternate rows. | |
| void | SetBorderColour (const wxPdfColour &colour) |
| Set the colour for borders. | |
| wxPdfColour | GetBorderColour () const |
| Get the colour for borders. | |
| void | SetDrawRowBorders (bool draw) |
| Set whether to draw horizontal borders between rows. | |
| bool | GetDrawRowBorders () const |
| Check whether to draw horizontal borders between rows. | |
| void | SetDrawColumnBorders (bool draw) |
| Set whether to draw vertical borders between columns. | |
| bool | GetDrawColumnBorders () const |
| Check whether to draw vertical borders between columns. | |
| void | SetShowContinued (bool show) |
| Set whether to show "Continued on next page" and "(continued)" labels. | |
| bool | GetShowContinued () const |
| Check whether to show "Continued on next page" and "(continued)" labels. | |
| void | SetFitToPage (bool fit) |
| Set whether to stretch the table to the full printable page width. | |
| bool | GetFitToPage () const |
| Check whether the table is stretched to the full printable page width. | |
| void | SetStyle (wxPdfListCtrlStyle style) |
| Set the table rendering style. | |
| wxPdfListCtrlStyle | GetStyle () const |
| Get the table rendering style. | |
| void | SetFromRow (int row) |
| Set the starting row (1-indexed) | |
| int | GetFromRow () const |
| Get the starting row (1-indexed) | |
| void | SetFromColumn (int column) |
| Set the starting column (1-indexed) | |
| int | GetFromColumn () const |
| Get the starting column (1-indexed) | |
| void | SetToRow (int row) |
| Set the ending row (1-indexed, -1 for all) | |
| int | GetToRow () const |
| Get the ending row (1-indexed, -1 for all) | |
| void | SetToColumn (int column) |
| Set the ending column (1-indexed, -1 for all) | |
| int | GetToColumn () const |
| Get the ending column (1-indexed, -1 for all) | |
| void | SetIncludeColumnHeaders (bool include) |
| Set whether column headers should be exported. | |
| bool | GetIncludeColumnHeaders () const |
| Check whether column headers should be exported. | |
| void | SetPageBreakHandler (const std::function< void()> &handler) |
| Set a function to call instead of wxPdfDocument::AddPage() when the table fills a page. | |
| const std::function< void()> & | GetPageBreakHandler () const |
| Get the function that starts each continuation page of the table. | |
Options that control how a wxListCtrl is rendered into a PDF document.
Pass an instance to wxPdfDocument::AddList() or wxPdfDC::DrawList() to configure colours, fonts, borders, and layout behaviour.
|
inline |
Get the background colour for alternate rows.
|
inline |
Get the font for the list items.
|
inline |
Get the PDF font for the list items.
|
inline |
Get the colour for borders.
|
inline |
Check whether to draw vertical borders between columns.
|
inline |
Check whether to draw horizontal borders between rows.
|
inline |
Check whether the table is stretched to the full printable page width.
|
inline |
Get the starting column (1-indexed)
|
inline |
Get the starting row (1-indexed)
|
inline |
Get the background colour for the column headers.
|
inline |
Get the font for the column headers.
|
inline |
Get the PDF font for the column headers.
|
inline |
Get the text colour for the column headers.
|
inline |
Check whether column headers should be exported.
|
inline |
Get the function that starts each continuation page of the table.
|
inline |
Check whether to show "Continued on next page" and "(continued)" labels.
|
inline |
Get the table rendering style.
|
inline |
Get the ending column (1-indexed, -1 for all)
|
inline |
Get the ending row (1-indexed, -1 for all)
|
inline |
Set the background colour for alternate rows.
| colour | The background colour for even rows |
|
inline |
Set the font for the list items.
| font | The font to use for items |
|
inline |
Set the PDF font for the list items (takes precedence over SetBodyFont())
| font | The wxPdfFont to use for items |
|
inline |
Set the colour for borders.
| colour | The border colour |
|
inline |
Set whether to draw vertical borders between columns.
| draw | true to draw column borders |
|
inline |
Set whether to draw horizontal borders between rows.
| draw | true to draw row borders |
|
inline |
Set whether to stretch the table to the full printable page width.
When enabled, all columns are scaled proportionally so that the table fills the available width between the left and right margins, analogous to LaTeX's tabularx or tabular* with \linewidth. Multi-column layout is disabled when this option is active.
| fit | true to stretch to full page width |
|
inline |
Set the starting column (1-indexed)
| column | The starting column |
|
inline |
Set the starting row (1-indexed)
| row | The starting row |
|
inline |
Set the background colour for the column headers.
| colour | The background colour |
|
inline |
Set the font for the column headers.
| font | The font to use for headers |
|
inline |
Set the PDF font for the column headers (takes precedence over SetHeaderFont())
| font | The wxPdfFont to use for headers |
|
inline |
Set the text colour for the column headers.
| colour | The text colour |
|
inline |
Set whether column headers should be exported.
| include | true to include column headers |
|
inline |
Set a function to call instead of wxPdfDocument::AddPage() when the table fills a page.
The handler must start one new page, and may draw on the old and new pages.
| handler | The function to call, or an empty function to use AddPage() |
|
inline |
Set whether to show "Continued on next page" and "(continued)" labels.
| show | true to show the labels |
|
inline |
Set the table rendering style.
wxPDF_LISTCTRL_STYLE_GRID (default) draws full cell borders and honours fill colours. wxPDF_LISTCTRL_STYLE_SIMPLE renders only a top rule, a rule below the header, and a bottom rule with no vertical lines or cell fills, analogous to the LaTeX booktabs package.
| style | The rendering style |
|
inline |
Set the ending column (1-indexed, -1 for all)
| column | The ending column |
|
inline |
Set the ending row (1-indexed, -1 for all)
| row | The ending row |