19#include <QPrintPreviewWidget>
60 bool printLine(
int indent,
const char *line);
70 Ui::PrintDialog *pd_ui_;
73 QPrinter *cur_printer_;
74 QPainter *cur_painter_;
75 QPrintPreviewWidget *preview_;
76 QPushButton *print_bt_;
95 void printPackets(QPrinter *printer = NULL,
bool in_preview =
false);
102 void paintPreview(QPrinter *printer);
108 void checkValidity();
111 void on_buttonBox_helpRequested();
117 void on_buttonBox_clicked(QAbstractButton *button);
Dialog that provides packet print and print-preview functionality for a live or saved capture file.
Definition print_dialog.h:31
bool printHeader()
Prints the page header for the current print job.
Definition print_dialog.cpp:139
bool printLine(int indent, const char *line)
Prints a single line of packet data at the given indentation level.
Definition print_dialog.cpp:168
capture_file * cap_file_
Definition print_dialog.h:81
~PrintDialog()
Destroys the Print dialog and releases all associated resources.
Definition print_dialog.cpp:133
virtual void keyPressEvent(QKeyEvent *event) override
Intercepts key press events, e.g. to suppress closing the dialog on Enter.
Definition print_dialog.cpp:210
Represents a capture file and its associated metadata.
Definition cfile.h:84
Aggregates all options controlling a single print or export operation.
Definition file.h:476
Vtable of operations implementing a print stream backend for rendering dissection output.
Definition print_stream.h:31
Represents an abstract print stream, pairing a backend operations vtable with instance-specific state...
Definition print_stream.h:95