Patch level : 2.0 nopatch
Files correlati : tutte le stampe Ricompilazione Demo : [ ] Commento : Supportate anche le stampe piu' lunghe di una pagina git-svn-id: svn://10.65.10.50/trunk@10894 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
88027ef32c
commit
33eceba57c
@ -343,25 +343,25 @@ bool TPrintwin::do_print()
|
|||||||
_frlc = 0;
|
_frlc = 0;
|
||||||
_blank_lines_to_print = 0;
|
_blank_lines_to_print = 0;
|
||||||
|
|
||||||
int page = 0;
|
bool finished = FALSE;
|
||||||
bool ok = TRUE;
|
for (int page = 0; !finished && !_aborted; page++)
|
||||||
while (ok && !_aborted)
|
|
||||||
{
|
{
|
||||||
_aborted = xvt_print_open_page(_printrcd) == 0;
|
_aborted = xvt_print_open_page(_printrcd) == 0;
|
||||||
while (!_aborted && ok)
|
if (!_aborted)
|
||||||
{
|
{
|
||||||
const RCT* rct = xvt_print_get_next_band();
|
for (const RCT* rct = xvt_print_get_next_band(); rct != NULL; rct = xvt_print_get_next_band())
|
||||||
ok = rct != NULL;
|
|
||||||
if (ok)
|
|
||||||
{
|
{
|
||||||
set_font(XVT_FFN_SYSTEM, XVT_FS_NONE, _char_size); // ???
|
set_font(XVT_FFN_SYSTEM, XVT_FS_NONE, _char_size); // ???
|
||||||
set_font(printer().fontname(), XVT_FS_NONE, _char_size);
|
set_font(printer().fontname(), XVT_FS_NONE, _char_size);
|
||||||
LEN_SPACES(win(), -1); // Resetta bene le dimensioni font
|
LEN_SPACES(win(), -1); // Resetta bene le dimensioni font
|
||||||
ok = print_band(page, *rct);
|
if (!print_band(page, *rct))
|
||||||
|
{
|
||||||
|
finished = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
_aborted = xvt_print_close_page(_printrcd) == 0;
|
||||||
}
|
}
|
||||||
_aborted |= (xvt_print_close_page(_printrcd) == 0);
|
|
||||||
page++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return !_aborted;
|
return !_aborted;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user