Commit 0f4c7eb3 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

==> ChangeLog <==

1999-09-23  Miguel de Icaza  <miguel@gnu.org>

	* src/print.c (print_page): Setup the rotation for each page.

1999-09-23  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Set the spinbox value
	  when we start with a custom zoom factor.

1999-09-22  Jody Goldberg <jgoldberg@home.com>
parent 6f3c2b06
1999-09-23 Miguel de Icaza <miguel@gnu.org>
* src/print.c (print_page): Setup the rotation for each page.
1999-09-23 Jody Goldberg <jgoldberg@home.com>
* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Set the spinbox value
......
1999-09-23 Miguel de Icaza <miguel@gnu.org>
* src/print.c (print_page): Setup the rotation for each page.
1999-09-23 Jody Goldberg <jgoldberg@home.com>
* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Set the spinbox value
......
......@@ -234,6 +234,21 @@ print_footers (PrintJobInfo *pj)
print_hf (pj, pj->pi->footer->right_format, RIGHT_HEADER, y);
}
static void
setup_rotation (PrintJobInfo *pj)
{
double affine [6];
if (pj->pi->orientation == PRINT_ORIENT_VERTICAL)
return;
art_affine_rotate (affine, 90.0);
gnome_print_concat (pj->print_context, affine);
art_affine_translate (affine, 0, -pj->height);
gnome_print_concat (pj->print_context, affine);
}
static void
print_page (Sheet *sheet, int start_col, int start_row, int end_col, int end_row, PrintJobInfo *pj)
{
......@@ -247,6 +262,9 @@ print_page (Sheet *sheet, int start_col, int start_row, int end_col, int end_row
print_height = sheet_row_get_unit_distance (sheet, start_row, end_row+1);
if (pj->pi->orientation == PRINT_ORIENT_HORIZONTAL)
setup_rotation (pj);
if (pj->pi->center_vertically){
if (pj->pi->print_titles)
print_height += sheet->default_row_style.units;
......@@ -558,21 +576,6 @@ print_job_info_destroy (PrintJobInfo *pj)
g_free (pj);
}
static void
setup_rotation (PrintJobInfo *pj)
{
double affine [6];
if (pj->pi->orientation == PRINT_ORIENT_VERTICAL)
return;
art_affine_rotate (affine, 90.0);
gnome_print_concat (pj->print_context, affine);
art_affine_translate (affine, 0, -pj->height);
gnome_print_concat (pj->print_context, affine);
}
void
sheet_print (Sheet *sheet, gboolean preview,
PrintRange default_range)
......@@ -607,9 +610,6 @@ sheet_print (Sheet *sheet, gboolean preview,
printer, gnome_paper_name (pj->pi->paper));
}
if (pj->pi->orientation == PRINT_ORIENT_HORIZONTAL)
setup_rotation (pj);
for (i = 0; i < loop; i++) {
switch (pj->range) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment