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

View File

@ -8,6 +8,7 @@
#include "at2.h"
#include "at2300a.h"
#include "atlib.h"
#define ALIAS_LCP 100
#define ALIAS_TCS 200
@ -50,6 +51,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_print(int file, int counter);
public:
void crea_intestazione();
@ -164,6 +166,12 @@ bool TStampaEsclusi::preprocess_page(int file, int counter)
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)
{
const TString80 densez = current_cursor()->curr(LF_SEZIONI).get(SEZ_DENSEZ);
@ -187,19 +195,23 @@ void TStampaEsclusi::header_sezione(const TString16 codsez, const TString16 cods
bool TStampaEsclusi::set_print(int)
{
TPrinter& p = printer();
p.read_configuration();
_tipostampa = undefined;
KEY tasto;
tasto = _msk->run();
switch (tasto)
{
case F_ELENCO:
{
_tipostampa = elenco;
_codsez = "**";
_codsot = "**";
break;
}
break;
case F_ETICHETTE:
_tipostampa = etichette;
break;
_tipostampa = (configura_stampante(p, "AT_ETICHETTE", "etichette")) ? etichette : undefined;
break;
}
if (_tipostampa != undefined)
{

View File

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

View File

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