Aggiunto metodo per settare _lastpage

git-svn-id: svn://10.65.10.50/trunk@2278 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-12-12 13:35:59 +00:00
parent 5a9ca6285e
commit fb74dc3723
2 changed files with 5 additions and 2 deletions

View File

@ -2554,7 +2554,7 @@ bool TForm::print(long from, long to)
pr.set_fontname(_fontname); // according to current form pr.set_fontname(_fontname); // according to current form
const bool was_open = pr.isopen(); const bool was_open = pr.isopen();
_lastpage = FALSE; // non e' l'ultima pagina set_last_page(FALSE); // non e' l'ultima pagina
set_background(1, TRUE); set_background(1, TRUE);
@ -2584,7 +2584,7 @@ bool TForm::print(long from, long to)
if (i == lastrec) if (i == lastrec)
{ {
if (cursor()) *cursor() = i; if (cursor()) *cursor() = i;
_lastpage = TRUE; set_last_page(TRUE);
set_background(0, TRUE); set_background(0, TRUE);
set_header(0, TRUE); set_header(0, TRUE);
set_body(0, TRUE); set_body(0, TRUE);

View File

@ -216,6 +216,9 @@ public:
char f_centerright() { return _fink.get_char(8); } char f_centerright() { return _fink.get_char(8); }
char f_horizontal() { return _fink.get_char(9); } char f_horizontal() { return _fink.get_char(9); }
char f_vertical() { return _fink.get_char(10); } char f_vertical() { return _fink.get_char(10); }
// Notifica l'inizio di stampa dell'ultima pagina
void set_last_page(bool lp) { _lastpage = lp; }
// if code == NULL it's a base form // if code == NULL it's a base form
// otherwise it's integrated by a file definition // otherwise it's integrated by a file definition