diff --git a/at/at4300.cpp b/at/at4300.cpp index 529c1b654..5245ab823 100755 --- a/at/at4300.cpp +++ b/at/at4300.cpp @@ -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);