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);
struct _capture_file capture_file
Represents a capture file and its associated metadata.
bool printHeader()
Prints the page header for the current print job.
Definition print_dialog.cpp:140
bool printLine(int indent, const char *line)
Prints a single line of packet data at the given indentation level.
Definition print_dialog.cpp:169
capture_file * cap_file_
Definition print_dialog.h:81
~PrintDialog()
Destroys the Print dialog and releases all associated resources.
Definition print_dialog.cpp:134
virtual void keyPressEvent(QKeyEvent *event) override
Intercepts key press events, e.g. to suppress closing the dialog on Enter.
Definition print_dialog.cpp:211
PrintDialog(QWidget *parent=0, capture_file *cf=NULL, QString selRange=QString())
Constructs the Print dialog.
Definition print_dialog.cpp:68
struct print_stream_ops print_stream_ops_t
Vtable of operations implementing a print stream backend for rendering dissection output.
struct print_stream print_stream_t
Represents an abstract print stream, pairing a backend operations vtable with instance-specific state...
Aggregates all options controlling a single print or export operation.
Definition file.h:476