2011-04-29 00:28:19 +02:00
|
|
|
/* See LICENSE file for license and copyright information */
|
|
|
|
|
|
|
|
#ifndef PRINT_H
|
|
|
|
#define PRINT_H
|
|
|
|
|
|
|
|
#include "zathura.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens a print dialog to print the current file
|
|
|
|
*
|
|
|
|
* @param zathura
|
|
|
|
*/
|
|
|
|
void print(zathura_t* zathura);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Callback that is executed for every page that should be printed
|
|
|
|
*
|
|
|
|
* @param print_operation Print operation object
|
|
|
|
* @param context Print context
|
|
|
|
* @param page_number Current page number
|
|
|
|
* @param zathura Zathura object
|
|
|
|
*/
|
|
|
|
void cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext*
|
2011-09-29 12:35:52 +02:00
|
|
|
context, gint page_number, zathura_t* zathura);
|
2011-04-29 00:28:19 +02:00
|
|
|
|
2011-09-29 18:05:15 +02:00
|
|
|
/**
|
|
|
|
* Emitted after all pages have been rendered
|
|
|
|
*
|
|
|
|
* @param print_operation Print operation
|
|
|
|
* @param context Print context
|
|
|
|
* @param zathura Zathura object
|
|
|
|
*/
|
|
|
|
void cb_print_end(GtkPrintOperation* print_operation, GtkPrintContext* context,
|
|
|
|
zathura_t* zathura);
|
|
|
|
|
2011-04-29 00:28:19 +02:00
|
|
|
#endif // PRINT_H
|