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.

58 lines
1.2 KiB

8 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. *
  9. *
  10. */
  11. #if defined( Uses_TFileInputLine ) && !defined( __TFileInputLine )
  12. #define __TFileInputLine
  13. class TRect;
  14. struct TEvent;
  15. class TFileInputLine : public TInputLine
  16. {
  17. public:
  18. TFileInputLine( const TRect& bounds, short aMaxLen );
  19. virtual void handleEvent( TEvent& event );
  20. #if !defined( NO_STREAM )
  21. private:
  22. virtual const char *streamableName() const
  23. { return name; }
  24. protected:
  25. TFileInputLine( StreamableInit );
  26. public:
  27. static const char * const name;
  28. static TStreamable *build();
  29. #endif // NO_STREAM
  30. };
  31. #if !defined( NO_STREAM )
  32. inline ipstream& operator >> ( ipstream& is, TFileInputLine& cl )
  33. { return is >> (TStreamable&)cl; }
  34. inline ipstream& operator >> ( ipstream& is, TFileInputLine*& cl )
  35. { return is >> (void *&)cl; }
  36. inline opstream& operator << ( opstream& os, TFileInputLine& cl )
  37. { return os << (TStreamable&)cl; }
  38. inline opstream& operator << ( opstream& os, TFileInputLine* cl )
  39. { return os << (TStreamable *)cl; }
  40. #endif // NO_STREAM
  41. #endif // Uses_TFileInputLine