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

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. Modified to compile with gcc v3.x by Salvador E. Tropea, with the help of
  9. Andris Pavenis.
  10. *
  11. *
  12. */
  13. #if defined( Uses_TTextDevice ) && !defined( __TTextDevice )
  14. #define __TTextDevice
  15. class TRect;
  16. class TScrollBar;
  17. class TTextDevice : public CLY_streambuf, public TScroller
  18. /* I have changed the order of the baseclasses, because there is a bug in
  19. the iostream library. The functions in this library call the functions
  20. if of a streambuf object with a this pointer to the streambuf object,
  21. and not, when the object has multiple base classes, with the this pointer
  22. to the real object */
  23. {
  24. public:
  25. TTextDevice( const TRect& bounds,
  26. TScrollBar *aHScrollBar,
  27. TScrollBar *aVScrollBar
  28. );
  29. virtual int do_sputn( const char *s, int count ) = 0;
  30. virtual int overflow( int = EOF );
  31. };
  32. #endif // Uses_TTextDevice