Part of stoqlib.reporting.base.template View In Hierarchy
Known subclasses: stoqlib.reporting.base.printing.ReportTemplate
Method | __init__ | The parameters are: |
Method | save | Build and saves the report. Internal use (you don't need to call |
Method | build | Build the report - initialize all the pages and start drawing its |
Method | setup_page_templates | Report initialization. Here we have to initialize report control |
Method | add | Adds a flowable to report. |
Method | start_group | Starts flowables groupping. |
Method | end_group | Finish flowables groupping |
Method | get_usable_width | Returns the horizontal space available for drawing. |
Method | get_usable_height | Returns the vertical space available for drawing. |
Method | set_page_number | Sets the current page. |
Method | get_page_number | Returns the current page number |
Method | add_page_break | Adds a simple page break |
Method | add_document_break | This method adds a document break, starting a new document. |
Method | add_blank_space | Adds a blank space on the current report position. Through |
Method | add_signatures | Adds a signature flowable. |
Method | add_preformatted_text | Adds a given given text to the document, using a given |
Method | add_paragraph | Adds a paragraph to the document, using a given style. |
Method | add_line | Insert a simple line on the report. |
Method | add_title | Adds a title. The title flowable is composed of a text inside two |
Method | add_report_table | Inserts a report table. |
Method | add_column_table | Adds a column table. |
Method | add_object_table | Insert an object table. Its parameters are: |
Method | add_grouping_table | TODO |
Method | add_data_table | Insert a data table on the report. |
Method | paint_page_canvas | This method is called by Reportlab on each time that a page starts |
Method | draw_header | Hook called on report header drawing time. |
Method | draw_footer | Hook called on report footer drawing time. |
Parameters | filename | The filename where the report will saved to (since the package only works with PDF files right now, it is desirable a .pdf extension right after the name) (type: str ) |
report_name | The name used to fill the report footer. (type: str ) | |
pagesize | The pagesize, no secrets here. Defaults to A4. (type: One of the constants available on reportlab.lib.pagesizes module. ) | |
landscape | Define if the report must be drawed in the landscape format. Defaults to False. (type: bool ) | |
do_footer | Must the report footer be drawed? Defaults to False (type: bool ) |
Parameters | number | The new page number. (type: int ) |
Parameters | height | How much vertical space? (type: int/float ) |
width | How much horizontal space? (type: int/float ) |
Parameters | labels | A list of signatures (text). For list greater than 1 the signatures will be put side by side on the report. (type: list ) |
align | Set the signatures group alignment. (type: One of LEFT, CENTER or RIGHT constants defined in the stoqlib reporting flowables module. ) | |
line_width | The signature line width. (type: int/float ) | |
height | How much space before the signature? (type: int/float ) | |
text_align | The signature text alignment. (type: One of LEFT, CENTER or RIGHT constants defined in the stoqlib reporting flowables module. ) | |
style_data | An optional paragraph style for the signature text. (type: One of paragraph styles defined in the default_style method. ) |
Parameters | text | The text. (type: str ) |
style | One of the paragraph style names defined in the default_style module. Defaults to 'Raw' style. (type: str ) |
Parameters | text | The paragraph text. (type: str ) |
style | One of the paragraph style names defined in the default_style module (type: str ) |
Parameters | title | The title text. (type: str ) |
note | The title notes. (type: list ) | |
space_before | How much space (in mm) must be given before the title can be drawed? Defaults to the SPACING constant defined on default_style module (type: float ) | |
style | One of the style names defined on the default_style module. (type: str ) | |
note_style | One of the style names defined on the default_style module (type: str ) |
Parameters | data | A list of lists, where each nested list represents a row (naturally, each column of this nested list is a table column). (type: list ) |
header | A list of string representing the header of each column. (type: list ) | |
style | The table style. @type style TableStyle | |
margins | How much space before and after the table? @type margins float/int | |
align | The table alignment. One of LEFT, RIGHT, CENTER constants defined on stoqlib reporting flowables module. (type: One of LEFT, RIGHT or CENTER ) | |
extra_row | An list of strings to be inserted right after the table. (type: list ) | |
table_line | Define the type of the line that is inserted between the table rows. (type: One of TABLE_LINE or TABLE_LINE_BLANK constants. ) | |
highlight | Sets the table highlight type. (type: One of HIGHLIGHT_ODD, HIGHLIGHT_NEVER or HIGHLIGHT_ODD constants defined on stoqlib reporting tables module. ) |
Parameters | data | A list of lists, where each nested list represents a row (naturally, each column of this nested list is a table column). (type: list ) |
columns | A list of TableColumn instances representing the table columns (type: list ) | |
style | The table style. @type style TableStyle | |
margins | How much space before and after the table? (type: float/int ) | |
align | The table alignment. One of LEFT, RIGHT, CENTER constants defined on stoqlib reporting flowables module. (type: One of LEFT, RIGHT or CENTER ) | |
extra_row | An list of strings to be inserted right after the table. (type: list ) | |
table_line | Define the type of the line that is inserted between the table rows. (type: One of TABLE_LINE or TABLE_LINE_BLANK constants. ) | |
do_header | Must the table header be drawed? Defaults to True (type: bool ) | |
highlight | Sets the table highlight type. (type: One of HIGHLIGHT_ODD, HIGHLIGHT_NEVER or HIGHLIGHT_ODD constants defined on stoqlib reporting tables module. ) |
Parameters | objs | A instance list, where each instance is a table row. (type: list. ) |
cols | A list of ObjectTableColumn, representing the table columns. (type: list ) | |
expand | Must be the columns expanded? Defaults to False. (type: bool ) | |
width | The table width. (type: int ) | |
style | The table style. (type: TableStyle ) | |
margins | How much space before and after the table? (type: int/float ) | |
extra_row | An list of strings to be inserted right after the table. This data is included on the report as a normal data table after this object table. (type: list ) | |
align | The table alignment. (type: One of LEFT, RIGHT or CENTER ) | |
table_line | Define the type of the line that is inserted between the table rows. (type: One of TABLE_LINE or TABLE_LINE_BLANK constants. ) | |
highlight | Sets the table highlight type. | |
highight | (type: One of HIGHLIGHT_ODD, HIGHLIGHT_NEVER or HIGHLIGHT_ODD constants defined on stoqlib reporting tables module. ) |
Parameters | data | The data list. It is composed of list of a lists, where each nested list represents a row. Note that the nested lists must have all the same length. (type: list ) |
style | The table style. (type: TableStyle ) | |
margins | How much space before and after the table? (type: float/int ) | |
align | The table alignment. One of LEFT, RIGHT, CENTER constants defined on stoqlib reporting flowables module. (type: One of LEFT, RIGHT or CENTER ) |