Correzione MI3381. Tolti i metodi get_mode() e mode() di TForm; al loro
posto vi e' ora get_fink_mode() e set_fink_mode() per settare il tipo di fincatura sulla stampante. git-svn-id: svn://10.65.10.50/trunk@4722 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ac65216e6a
commit
94eb35ae2b
@ -4891,8 +4891,8 @@ void TForm::init()
|
|||||||
_fpx= 0;
|
_fpx= 0;
|
||||||
_arrange= TRUE;
|
_arrange= TRUE;
|
||||||
set_fincatura("+++++++++-|");
|
set_fincatura("+++++++++-|");
|
||||||
|
set_fink_mode(TRUE);
|
||||||
_dirty= FALSE;
|
_dirty= FALSE;
|
||||||
_background_mode = printer().isgraphics() ? graphics : testo;
|
|
||||||
_msg_add_enabled = TRUE;
|
_msg_add_enabled = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4994,7 +4994,7 @@ void TForm::read(
|
|||||||
pr.set_offset(_y,_x);
|
pr.set_offset(_y,_x);
|
||||||
pr.set_char_size(_fontsize);
|
pr.set_char_size(_fontsize);
|
||||||
pr.set_fontname(_fontname);
|
pr.set_fontname(_fontname);
|
||||||
set_mode(_background_mode);
|
set_fink_mode(TRUE);
|
||||||
|
|
||||||
main_app().end_wait();
|
main_app().end_wait();
|
||||||
}
|
}
|
||||||
@ -5067,13 +5067,15 @@ void TForm::set_fincatura(const char* s)
|
|||||||
printer().set_fincatura(_fink);
|
printer().set_fincatura(_fink);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TForm::set_mode(bkg_mode b)
|
void TForm::set_fink_mode(bool f)
|
||||||
{
|
{
|
||||||
_background_mode = b;
|
printer().set_fink_mode(f);
|
||||||
if (_background_mode == graphics && printer().is_generic()) _background_mode = testo;
|
|
||||||
printer().set_graphics(_background_mode == graphics ? TRUE : FALSE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TForm::get_fink_mode()
|
||||||
|
{
|
||||||
|
return printer().get_fink_mode();
|
||||||
|
}
|
||||||
|
|
||||||
// @cmember Indica se ignorare il prossimo skip del ciclo sul file
|
// @cmember Indica se ignorare il prossimo skip del ciclo sul file
|
||||||
void TForm::match_result(int file,int val)
|
void TForm::match_result(int file,int val)
|
||||||
|
@ -20,10 +20,6 @@ class TRectype;
|
|||||||
|
|
||||||
#ifndef __RELATION_H
|
#ifndef __RELATION_H
|
||||||
#include <relation.h>
|
#include <relation.h>
|
||||||
/*class TRelation;
|
|
||||||
class TRelation_description;
|
|
||||||
class TCursor;
|
|
||||||
class TSorted_cursor;*/
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __ASSOC_H
|
#ifndef __ASSOC_H
|
||||||
@ -45,12 +41,6 @@ enum pagetype {
|
|||||||
|
|
||||||
// @doc INTERNAL
|
// @doc INTERNAL
|
||||||
|
|
||||||
// @enum bkg_mode | Tipo di background presente nella stampa
|
|
||||||
enum bkg_mode {
|
|
||||||
none, // @emem Nessuno sfondo
|
|
||||||
testo, // @emem Sfondo di tipo testo
|
|
||||||
graphics } ; // @emem Sfondo grafico
|
|
||||||
|
|
||||||
pagetype char2page(char);
|
pagetype char2page(char);
|
||||||
|
|
||||||
class TForm;
|
class TForm;
|
||||||
@ -82,9 +72,6 @@ class TForm : public TObject
|
|||||||
|
|
||||||
// @access:(INTERNAL) Private Member
|
// @access:(INTERNAL) Private Member
|
||||||
|
|
||||||
// @cmember:(INTERNAL) Tipo di sfondo da applicare alla stampa (vedi <t bkg_mode>)
|
|
||||||
bkg_mode _background_mode;
|
|
||||||
|
|
||||||
// @cmember:(INTERNAL) Nome del profilo di stampa
|
// @cmember:(INTERNAL) Nome del profilo di stampa
|
||||||
TString _name;
|
TString _name;
|
||||||
// @cmember:(INTERNAL) Codice del profilo di stampa
|
// @cmember:(INTERNAL) Codice del profilo di stampa
|
||||||
@ -378,10 +365,9 @@ public:
|
|||||||
{ _lastpage = lp; }
|
{ _lastpage = lp; }
|
||||||
|
|
||||||
// @cmember Setta il modo di sfondo (fincatura)
|
// @cmember Setta il modo di sfondo (fincatura)
|
||||||
void set_mode(bkg_mode b);
|
void set_fink_mode(bool f);
|
||||||
// @cmember Ritorna il modo di sfondo (fincatura)
|
// @cmember Ritorna il modo di sfondo (fincatura)
|
||||||
bkg_mode mode()
|
bool get_fink_mode();
|
||||||
{ return _background_mode;}
|
|
||||||
|
|
||||||
// @cmember Costruttore
|
// @cmember Costruttore
|
||||||
TForm();
|
TForm();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user