+2005-05-18 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * backend/ev-ps-exporter.c: (ev_ps_exporter_begin):
+ * backend/ev-ps-exporter.h:
+ * pdf/ev-poppler.cc:
+ * ps/ps-document.c: (ps_document_ps_export_begin):
+ * shell/ev-print-job.c: (idle_print_handler):
+
+ Adapt to new poppler api
+
2005-05-18 Marco Pesenti Gritti <mpg@redhat.com>
* cut-n-paste/zoom-control/ephy-zoom-control.c:
gone. Maybe there is a better way to cleanup reference handling
in page action though...
+2005-05-10 Juerg Billeter <j@bitron.ch>
+
+ * backend/ev-ps-exporter.c: (ev_ps_exporter_begin):
+ * backend/ev-ps-exporter.h:
+ * pdf/ev-poppler.cc: (pdf_document_ps_exporter_begin):
+ * ps/ps-document.c: (ps_document_ps_export_begin):
+
+ Change api to pass print range to ps_exporter_begin. The pdf backend
+ requires this information.
+
+ * shell/ev-print-job.c: (idle_print_handler):
+
+ Adapt to api change
+
2005-05-10 Juerg Billeter <j@bitron.ch>
* shell/ev-print-job.c: (ev_print_job_use_print_dialog_settings),
}
void
-ev_ps_exporter_begin (EvPSExporter *exporter, const char *filename)
+ev_ps_exporter_begin (EvPSExporter *exporter, const char *filename,
+ int first_page, int last_page)
{
EvPSExporterIface *iface = EV_PS_EXPORTER_GET_IFACE (exporter);
- iface->begin (exporter, filename);
+ iface->begin (exporter, filename, first_page, last_page);
}
void
/* Methods */
void (* begin) (EvPSExporter *exporter,
- const char *filename);
+ const char *filename,
+ int first_page,
+ int last_page);
void (* do_page) (EvPSExporter *exporter,
int page);
void (* end) (EvPSExporter *exporter);
};
GType ev_ps_exporter_get_type (void);
-void ev_ps_exporter_begin (EvPSExporter *exporter, const char *filename);
+void ev_ps_exporter_begin (EvPSExporter *exporter, const char *filename,
+ int first_page, int last_page);
void ev_ps_exporter_do_page (EvPSExporter *exporter, int page);
void ev_ps_exporter_end (EvPSExporter *exporter);
}
static void
-pdf_document_ps_exporter_begin (EvPSExporter *exporter, const char *filename)
+pdf_document_ps_exporter_begin (EvPSExporter *exporter, const char *filename,
+ int first_page, int last_page)
{
PdfDocument *pdf_document = PDF_DOCUMENT (exporter);
- int n_pages;
- n_pages = pdf_document_get_n_pages (EV_DOCUMENT (exporter));
- pdf_document->ps_file = poppler_ps_file_new (pdf_document->document,
- filename, n_pages);
+ pdf_document->ps_file = poppler_ps_file_new (pdf_document->document, filename,
+ first_page, last_page);
}
static void
}
static void
-ps_document_ps_export_begin (EvPSExporter *exporter, const char *filename)
+ps_document_ps_export_begin (EvPSExporter *exporter, const char *filename,
+ int first_page, int last_page)
{
PSDocument *document = PS_DOCUMENT (exporter);
if (!job->printing) {
ev_document_doc_mutex_lock ();
ev_ps_exporter_begin (EV_PS_EXPORTER (job->document),
- job->temp_file);
+ job->temp_file, job->first_page,
+ job->last_page);
ev_document_doc_mutex_unlock ();
job->next_page = job->first_page;
job->printing = TRUE;