You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
/*
|
|
* Turbo Vision - Version 2.0
|
|
*
|
|
* Copyright (c) 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
|
|
Modified by Robert H”hne to be used for RHIDE.
|
|
Modified to compile with gcc v3.x by Salvador E. Tropea, with the help of
|
|
Andris Pavenis.
|
|
|
|
*
|
|
*
|
|
*/
|
|
|
|
#if defined( Uses_TTextDevice ) && !defined( __TTextDevice )
|
|
#define __TTextDevice
|
|
|
|
class TRect;
|
|
class TScrollBar;
|
|
|
|
class TTextDevice : public CLY_streambuf, public TScroller
|
|
/* I have changed the order of the baseclasses, because there is a bug in
|
|
the iostream library. The functions in this library call the functions
|
|
if of a streambuf object with a this pointer to the streambuf object,
|
|
and not, when the object has multiple base classes, with the this pointer
|
|
to the real object */
|
|
{
|
|
public:
|
|
TTextDevice( const TRect& bounds,
|
|
TScrollBar *aHScrollBar,
|
|
TScrollBar *aVScrollBar
|
|
);
|
|
|
|
virtual int do_sputn( const char *s, int count ) = 0;
|
|
virtual int overflow( int = EOF );
|
|
};
|
|
|
|
#endif // Uses_TTextDevice
|
|
|