home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / canvas / vportlog / vportlog.hpp < prev   
Text File  |  1996-10-29  |  1KB  |  53 lines

  1. #ifndef _VPORTLOG_
  2. #define _VPORTLOG_
  3. //*********************************************************
  4. // Canvas - IViewPort with Logically-sized View Window
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //*********************************************************
  10. #include <idrawcv.hpp>
  11. #include <ivport.hpp>
  12.  
  13. class IGList;
  14. class IRectangle;
  15. class IWindowHandle;
  16.  
  17. #pragma pack(4)
  18.  
  19. // Appear to scroll a large view window.
  20. class LogicalSizeViewPort : public IViewPort {
  21. public:
  22.   LogicalSizeViewPort ( unsigned long windowId,
  23.                         IWindow* parentAndOwner,
  24.                         unsigned long scale,
  25.                         Boolean  specialScrolling );
  26. virtual
  27.  ~LogicalSizeViewPort ( );
  28. protected:
  29. virtual LogicalSizeViewPort
  30.  &setupScrollBars     ( ),
  31.  &positionViewWindow  ( const IWindowHandle& viewWindow,
  32.                         const IRectangle& viewRectangle );
  33. private:
  34.   LogicalSizeViewPort ( const LogicalSizeViewPort& );
  35. LogicalSizeViewPort
  36.  &operator=           ( const LogicalSizeViewPort& );
  37.  
  38. LogicalSizeViewPort
  39.  &buildGraphicList    ( ),
  40.  &cleanUpGraphicList  ( );
  41.  
  42. IDrawingCanvas
  43.   clViewWindow;
  44. IGList
  45.  *clGraphicList;
  46. Boolean
  47.   clCustomScrolling;
  48. }; // LogicalSizeViewPort
  49.  
  50. #pragma pack()
  51.  
  52. #endif // _VPORTLOG_
  53.