8097b5d8eb
Bottone Fine, Menu Fine, Menu Chiudi o ALT-F4 git-svn-id: svn://10.65.10.50/trunk@229 c028cbd2-c16b-5b4b-a496-9718f37d4682
53 lines
1.0 KiB
C++
Executable File
53 lines
1.0 KiB
C++
Executable File
#ifndef __PRINTWIN_H
|
|
#define __PRINTWIN_H
|
|
|
|
#ifndef __WINDOW_H
|
|
#include <window.h>
|
|
#endif
|
|
|
|
#ifndef __ARRAY_H
|
|
#include <array.h>
|
|
#endif
|
|
|
|
#ifndef __TEXT_H
|
|
#include <text.h>
|
|
#endif
|
|
|
|
class TPrintwin : public TWindow
|
|
{
|
|
|
|
bool _aborted;
|
|
bool _isbackground;
|
|
PRINT_RCD* _printrcd;
|
|
int _formlen;
|
|
int _formwidth;
|
|
TArray* _bg;
|
|
TTextfile& _txt;
|
|
|
|
int _lead, _ascent, _descent;
|
|
int _hofs, _vofs;
|
|
int _charx, _chary;
|
|
int _char_size;
|
|
|
|
void paint_background(long j);
|
|
void paint_row(long j);
|
|
bool print_band(int, RCT&);
|
|
|
|
public:
|
|
|
|
// check if aborted; also returned by do_print
|
|
bool aborted() const { return _aborted; }
|
|
|
|
// inhibits background printing
|
|
void print_background(bool b) { _isbackground = b; }
|
|
|
|
// starts printing; FALSE if aborted
|
|
bool do_print();
|
|
|
|
TPrintwin(PRINT_RCD* pr, TTextfile& txt, int chsize = 12);
|
|
virtual ~TPrintwin();
|
|
};
|
|
|
|
|
|
#endif
|