Convocazioni per sezione: salto pagina solo se ho stampato qualcosa

per la sezione
Patch level         :
Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@6274 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 1998-02-26 15:42:50 +00:00
parent fc0690632d
commit 85f420bfaf

View File

@ -55,6 +55,7 @@ class TStampaConvocazioni : public TPrintapp
bool _definitiva;
int _etlarghezza, _etcolonne;
int _contatore;
bool _provastampa;
protected:
virtual bool user_create();
@ -62,6 +63,7 @@ protected:
virtual bool set_print(int m);
virtual void set_page(int file, int cnt);
virtual bool preprocess_page (int file, int counter);
//virtual print_action postprocess_page (int file, int counter);
ts dati_cartoline();
public:
@ -261,6 +263,24 @@ bool TStampaConvocazioni::filter_func_conv (const TRelation* rel)
return FALSE;
}
/*
print_action TStampaConvocazioni::postprocess_page(int file, int counter)
{
if (_tipostampa==cartoline && _provastampa)
{
if (yesno_box("Verificare la posizione di stampa.\nSi puo' procedere con la stampa?"))
{
_provastampa = FALSE;
return NEXT_PAGE;
}
else
return REPEAT_PAGE;
}
else
return NEXT_PAGE;
}
*/
bool TStampaConvocazioni::preprocess_page(int file, int counter)
{
if (_tipostampa==elencocon || _tipostampa==elencorit)
@ -277,6 +297,7 @@ bool TStampaConvocazioni::preprocess_page(int file, int counter)
{
if ((_codsez != "**") && (_contatore > 0))
printer().formfeed();
_contatore = 0;
_codsez = codsez;
_codsot = codsot;
header_sezione(codsez, codsot);
@ -387,6 +408,7 @@ bool TStampaConvocazioni::set_print(int)
_codsez = "**";
_codsot = "**";
_contatore = 0;
_provastampa = TRUE;
reset_files();
add_file(LF_SOGGETTI);
_dataconv = _msk->get(F_DATACONV);