Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            : Stampe soggetti: configurazione stampante per etichette


git-svn-id: svn://10.65.10.50/trunk@7696 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 1999-01-26 14:06:50 +00:00
parent d2557814b4
commit a615320d1f
4 changed files with 53 additions and 12 deletions

View File

@ -8,6 +8,7 @@
#include "at2.h" #include "at2.h"
#include "at2200a.h" #include "at2200a.h"
#include "atlib.h"
#define ALIAS_LCP 100 #define ALIAS_LCP 100
#define ALIAS_TCS 200 #define ALIAS_TCS 200
@ -51,6 +52,7 @@ protected:
virtual bool set_print(int m); virtual bool set_print(int m);
virtual void set_page(int file, int cnt); virtual void set_page(int file, int cnt);
virtual bool preprocess_page (int file, int counter); virtual bool preprocess_page (int file, int counter);
virtual print_action postprocess_print(int file, int counter);
public: public:
void crea_intestazione(); void crea_intestazione();
@ -245,20 +247,30 @@ bool TStampaPerEta::preprocess_page(int file, int counter)
return TRUE; return TRUE;
} }
print_action TStampaPerEta::postprocess_print(int file, int counter)
{
printer().formfeed();
return NEXT_PAGE;
}
bool TStampaPerEta::set_print(int m) bool TStampaPerEta::set_print(int m)
{ {
TPrinter& p = printer();
p.read_configuration();
_tipostampa = undefined; _tipostampa = undefined;
KEY tasto; KEY tasto;
tasto = _msk->run(); tasto = _msk->run();
switch (tasto) switch (tasto)
{ {
case F_ELENCO: case F_ELENCO:
{
_tipostampa = elenco; _tipostampa = elenco;
_codsez = "**"; _codsez = "**";
_codsot = "**"; _codsot = "**";
}
break; break;
case F_ETICHETTE: case F_ETICHETTE:
_tipostampa = etichette; _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
break; break;
} }
if (_tipostampa != undefined) if (_tipostampa != undefined)

View File

@ -8,6 +8,7 @@
#include "at2.h" #include "at2.h"
#include "at2300a.h" #include "at2300a.h"
#include "atlib.h"
#define ALIAS_LCP 100 #define ALIAS_LCP 100
#define ALIAS_TCS 200 #define ALIAS_TCS 200
@ -50,6 +51,7 @@ protected:
virtual bool set_print(int m); virtual bool set_print(int m);
virtual void set_page(int file, int cnt); virtual void set_page(int file, int cnt);
virtual bool preprocess_page (int file, int counter); virtual bool preprocess_page (int file, int counter);
virtual print_action postprocess_print(int file, int counter);
public: public:
void crea_intestazione(); void crea_intestazione();
@ -164,6 +166,12 @@ bool TStampaEsclusi::preprocess_page(int file, int counter)
return TRUE; return TRUE;
} }
print_action TStampaEsclusi::postprocess_print(int file, int counter)
{
printer().formfeed();
return NEXT_PAGE;
}
void TStampaEsclusi::header_sezione(const TString16 codsez, const TString16 codsot) void TStampaEsclusi::header_sezione(const TString16 codsez, const TString16 codsot)
{ {
const TString80 densez = current_cursor()->curr(LF_SEZIONI).get(SEZ_DENSEZ); const TString80 densez = current_cursor()->curr(LF_SEZIONI).get(SEZ_DENSEZ);
@ -187,18 +195,22 @@ void TStampaEsclusi::header_sezione(const TString16 codsez, const TString16 cods
bool TStampaEsclusi::set_print(int) bool TStampaEsclusi::set_print(int)
{ {
TPrinter& p = printer();
p.read_configuration();
_tipostampa = undefined; _tipostampa = undefined;
KEY tasto; KEY tasto;
tasto = _msk->run(); tasto = _msk->run();
switch (tasto) switch (tasto)
{ {
case F_ELENCO: case F_ELENCO:
{
_tipostampa = elenco; _tipostampa = elenco;
_codsez = "**"; _codsez = "**";
_codsot = "**"; _codsot = "**";
}
break; break;
case F_ETICHETTE: case F_ETICHETTE:
_tipostampa = etichette; _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
break; break;
} }
if (_tipostampa != undefined) if (_tipostampa != undefined)

View File

@ -8,6 +8,7 @@
#include "at2.h" #include "at2.h"
#include "at2500a.h" #include "at2500a.h"
#include "atlib.h"
#define ALIAS_LCP 100 #define ALIAS_LCP 100
#define ALIAS_TCS 200 #define ALIAS_TCS 200
@ -50,6 +51,7 @@ protected:
virtual bool set_print(int m); virtual bool set_print(int m);
virtual void set_page(int file, int cnt); virtual void set_page(int file, int cnt);
virtual bool preprocess_page(int file, int counter); virtual bool preprocess_page(int file, int counter);
virtual print_action postprocess_print(int file, int counter);
public: public:
void crea_intestazione(); void crea_intestazione();
@ -204,6 +206,12 @@ bool TStampaIdonei::preprocess_page(int file, int counter)
return TRUE; return TRUE;
} }
print_action TStampaIdonei::postprocess_print(int file, int counter)
{
printer().formfeed();
return NEXT_PAGE;
}
void TStampaIdonei::header_sezione(const TString16 codsez, const TString16 codsot) void TStampaIdonei::header_sezione(const TString16 codsez, const TString16 codsot)
{ {
const TString80 densez = current_cursor()->curr(LF_SEZIONI).get(SEZ_DENSEZ); const TString80 densez = current_cursor()->curr(LF_SEZIONI).get(SEZ_DENSEZ);
@ -227,18 +235,22 @@ void TStampaIdonei::header_sezione(const TString16 codsez, const TString16 codso
bool TStampaIdonei::set_print(int m) bool TStampaIdonei::set_print(int m)
{ {
TPrinter& p = printer();
p.read_configuration();
_tipostampa = undefined; _tipostampa = undefined;
KEY tasto; KEY tasto;
tasto = _msk->run(); tasto = _msk->run();
switch (tasto) switch (tasto)
{ {
case F_ELENCO: case F_ELENCO:
{
_tipostampa = elenco; _tipostampa = elenco;
_codsez = "**"; _codsez = "**";
_codsot = "**"; _codsot = "**";
}
break; break;
case F_ETICHETTE: case F_ETICHETTE:
_tipostampa = etichette; _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
break; break;
} }
if (_tipostampa != undefined) if (_tipostampa != undefined)

View File

@ -8,6 +8,7 @@
#include "at2.h" #include "at2.h"
#include "at2600a.h" #include "at2600a.h"
#include "atlib.h"
#define ALIAS_LCP 100 // localita' postali #define ALIAS_LCP 100 // localita' postali
#define ALIAS_CTD 700 // categoria donatori #define ALIAS_CTD 700 // categoria donatori
@ -236,19 +237,23 @@ void TStampaIscritti::header_sezione(const TString16 codsez, const TString16 cod
bool TStampaIscritti::set_print(int m) bool TStampaIscritti::set_print(int m)
{ {
TPrinter& p = printer();
p.read_configuration();
_tipostampa = undefined; _tipostampa = undefined;
KEY tasto; KEY tasto;
tasto = _msk->run(); tasto = _msk->run();
switch (tasto) switch (tasto)
{ {
case F_ELENCO: case F_ELENCO:
{
_tipostampa = elenco; _tipostampa = elenco;
_codsez = "**"; _codsez = "**";
_codsot = "**"; _codsot = "**";
_contatore = 0; _contatore = 0;
}
break; break;
case F_ETICHETTE: case F_ETICHETTE:
_tipostampa = etichette; _tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
break; break;
} }
if (_tipostampa != undefined) if (_tipostampa != undefined)