Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-print-operation.h File Reference
#include <gtk/gtk.h>
#include <glib-object.h>
#include <evince-document.h>
+ Include dependency graph for ev-print-operation.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EV_TYPE_PRINT_OPERATION   (ev_print_operation_get_type())
 
#define EV_PRINT_OPERATION(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PRINT_OPERATION, EvPrintOperation))
 
#define EV_IS_PRINT_OPERATION(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PRINT_OPERATION))
 
#define EV_PRINT_OPERATION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PRINT_OPERATION, EvPrintOperationClass))
 
#define EV_IS_PRINT_OPERATION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_PRINT_OPERATION))
 
#define EV_PRINT_OPERATION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_PRINT_OPERATION, EvPrintOperationClass))
 

Typedefs

typedef typedefG_BEGIN_DECLS
struct _EvPrintOperation 
EvPrintOperation
 
typedef struct
_EvPrintOperationClass 
EvPrintOperationClass
 

Functions

GType ev_print_operation_get_type (void) G_GNUC_CONST
 
gboolean ev_print_operation_exists_for_document (EvDocument *document)
 
EvPrintOperationev_print_operation_new (EvDocument *document)
 
void ev_print_operation_set_current_page (EvPrintOperation *op, gint current_page)
 
void ev_print_operation_set_print_settings (EvPrintOperation *op, GtkPrintSettings *print_settings)
 
GtkPrintSettings * ev_print_operation_get_print_settings (EvPrintOperation *op)
 
void ev_print_operation_set_default_page_setup (EvPrintOperation *op, GtkPageSetup *page_setup)
 
GtkPageSetup * ev_print_operation_get_default_page_setup (EvPrintOperation *op)
 
void ev_print_operation_set_job_name (EvPrintOperation *op, const gchar *job_name)
 
const gchar * ev_print_operation_get_job_name (EvPrintOperation *op)
 
void ev_print_operation_run (EvPrintOperation *op, GtkWindow *parent)
 
void ev_print_operation_cancel (EvPrintOperation *op)
 
void ev_print_operation_get_error (EvPrintOperation *op, GError **error)
 
void ev_print_operation_set_embed_page_setup (EvPrintOperation *op, gboolean embed)
 
gboolean ev_print_operation_get_embed_page_setup (EvPrintOperation *op)
 
const gchar * ev_print_operation_get_status (EvPrintOperation *op)
 
gdouble ev_print_operation_get_progress (EvPrintOperation *op)
 

Macro Definition Documentation

#define EV_IS_PRINT_OPERATION (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PRINT_OPERATION))

Definition at line 39 of file ev-print-operation.h.

#define EV_IS_PRINT_OPERATION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_PRINT_OPERATION))

Definition at line 41 of file ev-print-operation.h.

#define EV_PRINT_OPERATION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PRINT_OPERATION, EvPrintOperation))

Definition at line 38 of file ev-print-operation.h.

#define EV_PRINT_OPERATION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PRINT_OPERATION, EvPrintOperationClass))

Definition at line 40 of file ev-print-operation.h.

#define EV_PRINT_OPERATION_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_PRINT_OPERATION, EvPrintOperationClass))

Definition at line 42 of file ev-print-operation.h.

#define EV_TYPE_PRINT_OPERATION   (ev_print_operation_get_type())

Definition at line 37 of file ev-print-operation.h.

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _EvPrintOperation EvPrintOperation

Definition at line 34 of file ev-print-operation.h.

Definition at line 35 of file ev-print-operation.h.

Function Documentation

void ev_print_operation_cancel ( EvPrintOperation op)

Definition at line 279 of file ev-print-operation.c.

280 {
281  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
282 
283  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
284 
285  class->cancel (op);
286 }

+ Here is the caller graph for this function:

gboolean ev_print_operation_exists_for_document ( EvDocument document)

Definition at line 2122 of file ev-print-operation.c.

2123 {
2124 #if GTKUNIXPRINT_ENABLED
2125  return (EV_IS_FILE_EXPORTER(document) || EV_IS_DOCUMENT_PRINT(document));
2126 #else
2127  return EV_IS_DOCUMENT_PRINT(document);
2128 #endif /* GTKUNIXPRINT_ENABLED */
2129 }

+ Here is the caller graph for this function:

GtkPageSetup* ev_print_operation_get_default_page_setup ( EvPrintOperation op)

ev_print_operation_get_default_page_setup: : an EvPrintOperation

Returns: (transfer none): a #GtkPageSetup

Definition at line 236 of file ev-print-operation.c.

237 {
238  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
239 
240  g_return_val_if_fail (EV_IS_PRINT_OPERATION (op), NULL);
241 
242  return class->get_default_page_setup (op);
243 }

+ Here is the caller graph for this function:

gboolean ev_print_operation_get_embed_page_setup ( EvPrintOperation op)

Definition at line 311 of file ev-print-operation.c.

312 {
313  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
314 
315  g_return_val_if_fail (EV_IS_PRINT_OPERATION (op), FALSE);
316 
317  return class->get_embed_page_setup (op);
318 }

+ Here is the caller graph for this function:

void ev_print_operation_get_error ( EvPrintOperation op,
GError **  error 
)

Definition at line 289 of file ev-print-operation.c.

291 {
292  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
293 
294  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
295 
296  class->get_error (op, error);
297 }

+ Here is the caller graph for this function:

const gchar* ev_print_operation_get_job_name ( EvPrintOperation op)

Definition at line 258 of file ev-print-operation.c.

259 {
260  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
261 
262  g_return_val_if_fail (EV_IS_PRINT_OPERATION (op), NULL);
263 
264  return class->get_job_name (op);
265 }

+ Here is the caller graph for this function:

GtkPrintSettings* ev_print_operation_get_print_settings ( EvPrintOperation op)

ev_print_operation_get_print_settings: : an EvPrintOperation

Returns: (transfer none): a #GtkPrintSettings

Definition at line 208 of file ev-print-operation.c.

209 {
210  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
211 
212  g_return_val_if_fail (EV_IS_PRINT_OPERATION (op), NULL);
213 
214  return class->get_print_settings (op);
215 }

+ Here is the caller graph for this function:

gdouble ev_print_operation_get_progress ( EvPrintOperation op)

Definition at line 329 of file ev-print-operation.c.

330 {
331  g_return_val_if_fail (EV_IS_PRINT_OPERATION (op), 0.0);
332 
333  return op->progress;
334 }

+ Here is the caller graph for this function:

const gchar* ev_print_operation_get_status ( EvPrintOperation op)

Definition at line 321 of file ev-print-operation.c.

322 {
323  g_return_val_if_fail (EV_IS_PRINT_OPERATION (op), NULL);
324 
325  return op->status ? op->status : "";
326 }

+ Here is the caller graph for this function:

GType ev_print_operation_get_type ( void  )
EvPrintOperation* ev_print_operation_new ( EvDocument document)

Definition at line 2133 of file ev-print-operation.c.

2134 {
2135  EvPrintOperation *op = NULL;
2136 
2137  g_return_val_if_fail (ev_print_operation_exists_for_document (document), NULL);
2138 
2139  if (EV_IS_DOCUMENT_PRINT (document))
2141  "document", document, NULL));
2142  else
2143 #if GTKUNIXPRINT_ENABLED
2144  op = EV_PRINT_OPERATION (g_object_new (EV_TYPE_PRINT_OPERATION_EXPORT,
2145  "document", document, NULL));
2146 #else
2147  op = NULL;
2148 #endif
2149  return op;
2150 }

+ Here is the caller graph for this function:

void ev_print_operation_run ( EvPrintOperation op,
GtkWindow *  parent 
)

Definition at line 268 of file ev-print-operation.c.

270 {
271  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
272 
273  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
274 
275  class->run (op, parent);
276 }

+ Here is the caller graph for this function:

void ev_print_operation_set_current_page ( EvPrintOperation op,
gint  current_page 
)

Definition at line 178 of file ev-print-operation.c.

180 {
181  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
182 
183  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
184  g_return_if_fail (current_page >= 0);
185 
186  class->set_current_page (op, current_page);
187 }

+ Here is the caller graph for this function:

void ev_print_operation_set_default_page_setup ( EvPrintOperation op,
GtkPageSetup *  page_setup 
)

Definition at line 218 of file ev-print-operation.c.

220 {
221  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
222 
223  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
224  g_return_if_fail (GTK_IS_PAGE_SETUP (page_setup));
225 
226  class->set_default_page_setup (op, page_setup);
227 }

+ Here is the caller graph for this function:

void ev_print_operation_set_embed_page_setup ( EvPrintOperation op,
gboolean  embed 
)

Definition at line 300 of file ev-print-operation.c.

302 {
303  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
304 
305  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
306 
307  class->set_embed_page_setup (op, embed);
308 }

+ Here is the caller graph for this function:

void ev_print_operation_set_job_name ( EvPrintOperation op,
const gchar *  job_name 
)

Definition at line 246 of file ev-print-operation.c.

248 {
249  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
250 
251  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
252  g_return_if_fail (job_name != NULL);
253 
254  class->set_job_name (op, job_name);
255 }

+ Here is the caller graph for this function:

void ev_print_operation_set_print_settings ( EvPrintOperation op,
GtkPrintSettings *  print_settings 
)

Definition at line 190 of file ev-print-operation.c.

192 {
193  EvPrintOperationClass *class = EV_PRINT_OPERATION_GET_CLASS (op);
194 
195  g_return_if_fail (EV_IS_PRINT_OPERATION (op));
196  g_return_if_fail (GTK_IS_PRINT_SETTINGS (print_settings));
197 
198  class->set_print_settings (op, print_settings);
199 }

+ Here is the caller graph for this function: