campo-sirio/include/printwin.h
villa 96404663d4 Eliminati errori di allineamento stampe
Eliminato XVT INTERNAL ERROR al Cancel della stampa


git-svn-id: svn://10.65.10.50/trunk@511 c028cbd2-c16b-5b4b-a496-9718f37d4682
1994-11-03 09:03:14 +00:00

54 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 _chary;
int _char_size;
bool _inited;
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